Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix: fix publish-engine-size workflow failing on main #5072

Closed
wants to merge 1 commit into from

Conversation

aqrln
Copy link
Member

@aqrln aqrln commented Dec 2, 2024

Update wasm-bindgen and related packages to 0.2.95 to match the
wasm-bindgen-cli version installed globally after updating the flake.

Update `wasm-bindgen` and related packages to 0.2.95 to match the
`wasm-bindgen-cli` version installed globally after updating the flake.
@aqrln aqrln requested a review from a team as a code owner December 2, 2024 14:06
@aqrln aqrln requested review from jkomyno and removed request for a team December 2, 2024 14:06
@aqrln aqrln added this to the 6.1.0 milestone Dec 2, 2024
Copy link

codspeed-hq bot commented Dec 2, 2024

CodSpeed Performance Report

Merging #5072 will not alter performance

Comparing fix-publish-size (8753261) with main (c74f897)

Summary

✅ 11 untouched benchmarks

Copy link
Contributor

github-actions bot commented Dec 2, 2024

WASM Query Engine file Size

Engine This PR Base branch Diff
Postgres 2.052MiB 2.050MiB 2.972KiB
Postgres (gzip) 824.800KiB 822.045KiB 2.755KiB
Mysql 2.014MiB 2.013MiB 964.000B
Mysql (gzip) 809.791KiB 807.892KiB 1.899KiB
Sqlite 1.911MiB 1.911MiB -89.000B
Sqlite (gzip) 768.939KiB 768.001KiB 960.000B

@aqrln aqrln marked this pull request as draft December 2, 2024 14:28
@aqrln aqrln modified the milestones: 6.1.0, 6.2.0 Dec 18, 2024
aqrln added a commit that referenced this pull request Dec 19, 2024
Due to the lack of Nix buy-in from the team and with most of Nix users
leaving, and given the increased overhead of keeping multiple separate
build systems and workflows in sync after the introduction of the
WebAssembly tooling and difficulties in making changes in Nix code for
team members who don't use it, it was previously decided to decrease our
reliance on Nix and stop using it on CI, leaving it as optional and only
for local development, which mostly happened [in
February](#4713). However,
the engines size dashboard was still powered by Nix because we ran out
of the allocated time for the tech debt task.

After the Nix flake was updated last time, the workflow was broken
because `wasm-bindgen-cli` in the flake was at 0.2.95 while we are
currently pinned to 0.2.93 and are blocked from upgrading to a newer
version at the moment. Rather than pinning `wasm-bindgen-cli` to 0.2.93
in the flake by taking it from a different nixpkgs commit, it's a good
opportunity to start using the same infrastructure we use for other
GitHub Actions jobs instead.

With that, and given the fact that our workflows and build scripts are
heavily dependent on rustup and we even used rustup within the dev shell
instead of the toolchain from `rust-overlay`, there's not much benefit
for the local dev shell for Nix users to be a flake, a classic
`shell.nix` is more appropriate: pinning the state of the environment in
`flake.lock` is no longer useful and only gets in the way. As an added
bonus, classic Nix doesn't require copying the sources to the store,
which makes the shell startup a bit faster.

Fixes: prisma/team-orm#1444
Closes: #5072
aqrln added a commit that referenced this pull request Dec 19, 2024
Due to the lack of Nix buy-in from the team and with most of Nix users
leaving, and given the increased overhead of keeping multiple separate
build systems and workflows in sync after the introduction of the
WebAssembly tooling and difficulties in making changes in Nix code for
team members who don't use it, it was previously decided to decrease our
reliance on Nix and stop using it on CI, leaving it as optional and only
for local development, which mostly happened [in
February](#4713). However,
the engines size dashboard was still powered by Nix because we ran out
of the allocated time for the tech debt task.

After the Nix flake was updated last time, the workflow was broken
because `wasm-bindgen-cli` in the flake was at 0.2.95 while we are
currently pinned to 0.2.93 and are blocked from upgrading to a newer
version at the moment. Rather than pinning `wasm-bindgen-cli` to 0.2.93
in the flake by taking it from a different nixpkgs commit, it's a good
opportunity to start using the same infrastructure we use for other
GitHub Actions jobs instead.

With that, and given the fact that our workflows and build scripts are
heavily dependent on rustup and we even used rustup within the dev shell
instead of the toolchain from `rust-overlay`, there's not much benefit
for the local dev shell for Nix users to be a flake, a classic
`shell.nix` is more appropriate: pinning the state of the environment in
`flake.lock` is no longer useful and only gets in the way. As an added
bonus, classic Nix doesn't require copying the sources to the store,
which makes the shell startup a bit faster.

Fixes: prisma/team-orm#1444
Closes: #5072
aqrln added a commit that referenced this pull request Dec 19, 2024
Due to the lack of Nix buy-in from the team and with most of Nix users
leaving, and given the increased overhead of keeping multiple separate
build systems and workflows in sync after the introduction of the
WebAssembly tooling and difficulties in making changes in Nix code for
team members who don't use it, it was previously decided to decrease our
reliance on Nix and stop using it on CI, leaving it as optional and only
for local development, which mostly happened [in
February](#4713). However,
the engines size dashboard was still powered by Nix because we ran out
of the allocated time for the tech debt task.

After the Nix flake was updated last time, the workflow was broken
because `wasm-bindgen-cli` in the flake was at 0.2.95 while we are
currently pinned to 0.2.93 and are blocked from upgrading to a newer
version at the moment. Rather than pinning `wasm-bindgen-cli` to 0.2.93
in the flake by taking it from a different nixpkgs commit, it's a good
opportunity to start using the same infrastructure we use for other
GitHub Actions jobs instead.

With that, and given the fact that our workflows and build scripts are
heavily dependent on rustup and we even used rustup within the dev shell
instead of the toolchain from `rust-overlay`, there's not much benefit
for the local dev shell for Nix users to be a flake, a classic
`shell.nix` is more appropriate: pinning the state of the environment in
`flake.lock` is no longer useful and only gets in the way. As an added
bonus, classic Nix doesn't require copying the sources to the store,
which makes the shell startup a bit faster.

Fixes: prisma/team-orm#1444
Closes: #5072
@aqrln aqrln closed this in #5095 Dec 19, 2024
aqrln added a commit that referenced this pull request Dec 19, 2024
…5095)

Due to the lack of Nix buy-in from the team and with most of Nix users
leaving, and given the increased overhead of keeping multiple separate
build systems and workflows in sync after the introduction of the
WebAssembly tooling and difficulties in making changes in Nix code for
team members who don't use it, it was previously decided to decrease our
reliance on Nix and stop using it on CI, leaving it as optional and only
for local development, which mostly happened [in
February](#4713). However,
the engines size dashboard was still powered by Nix because we ran out
of the allocated time for the tech debt task.

After the Nix flake was updated last time, the workflow was broken
because `wasm-bindgen-cli` in the flake was at 0.2.95 while we are
currently pinned to 0.2.93 and are blocked from upgrading to a newer
version at the moment. Rather than pinning `wasm-bindgen-cli` to 0.2.93
in the flake by taking it from a different nixpkgs commit, it's a good
opportunity to start using the same infrastructure we use for other
GitHub Actions jobs instead.

With that, and given the fact that our workflows and build scripts are
heavily dependent on rustup and we even used rustup within the dev shell
instead of the toolchain from `rust-overlay`, there's not much benefit
for the local dev shell for Nix users to be a flake, a classic
`shell.nix` is more appropriate: pinning the state of the environment in
`flake.lock` is no longer useful and only gets in the way. As an added
bonus, classic Nix doesn't require copying the sources to the store,
which makes the shell startup a bit faster.

Fixes: prisma/team-orm#1444
Closes: #5072
@aqrln aqrln deleted the fix-publish-size branch January 7, 2025 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant