Repository navigation
ci: run on Node 22 instead of end-of-life Node 18 - #137
Closed
rabi-siddique wants to merge 1 commit into
Closed
rabi-siddique wants to merge 1 commit into
rabi-siddique wants to merge 1 commit into
Conversation
- ci.yml and trunk.yml: node-version 22 with check-latest, so CI gets the newest 22.x patch. Node 18 is end-of-life since 2025-04. - react-components .nvmrc: 22. - rpc: bump the @endo/init dev dependency to ^1.1.13. The old one bundles SES 0.18, whose lockdown throws on Node 22's Iterator helpers. - Root: skip building better-sqlite3 8.7.0. It only comes in through old @Agoric packages (via @agoric/swing-store), nothing here uses SQLite, and its native build fails on Node 22. Refs: AGO-1704
Deploying ui-kit with
|
| Latest commit: |
49d2ce2
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://ca02d76e.ui-kit-dwm.pages.dev |
| Branch Preview URL: | https://rabi-ago-1704-ui-kit-ci-runs.ui-kit-dwm.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
refs: AGO-1704
Description
CI runs on Node 18, which has been end-of-life since 2025-04 and gets no security fixes. That includes the canary job in
trunk.yml, which publishes to npm usingNPM_TOKEN. This PR moves CI to Node 22.ci.ymlandtrunk.yml:node-version: 22withcheck-latest: true, so CI always installs the newest 22.x patch instead of the version cached on the runner. Before this,ci.ymlused whatever Node came withubuntu-latest.packages/react-components/.nvmrc:22.Two dependency fixes were needed for Node 22:
packages/rpc: the@endo/initdev dependency goes from^0.5.60to^1.1.13. The old version bundles SES 0.18, whoselockdown()throwsAccessor not expected at intrinsics.%IteratorPrototype%.constructoron Node 22, sotest/marshal.test.tsfailed.package.json:dependenciesMetaskips buildingbetter-sqlite38.7.0.@agoric/*packages (@agoric/swing-store).I didn't use Node 24 because
better-sqlite38.7.0 doesn't build on it either. Getting to 24 would mean upgrading the old@agoric/*dependencies.Security Considerations
This moves CI, including the npm-publishing job, off a Node line that no longer gets security fixes.
Scaling Considerations
None.
Documentation Considerations
None. Published packages are unchanged, apart from the dev dependency bump in
rpc.Testing Considerations
I ran the CI steps locally on Node 22.23.5, after a clean
yarn install --immutable:Side note, out of scope here:
yarn format --checkrunsprettier --write packages --check, so CI fixes formatting instead of failing on it. Two files inpackages/exampleare unformatted onmain.