Skip to content

Upgrade direct Node usage to Node 26 - #99

Merged
CrypticSwarm merged 4 commits into
masterfrom
upgrade-node-version-26
Nov 15, 2026
Merged

CrypticSwarm merged 4 commits into
masterfrom
upgrade-node-version-26

Conversation

@CrypticSwarm

Copy link
Copy Markdown
Owner

Moves every place the repo pins Node directly to the Node 26 LTS line (v26.13.0).

  • anvil image: NODE_MAJOR 24 → 26. Node 25+ no longer bundles corepack (verified absent from both the official tarball and the NodeSource deb), so the image installs a pinned corepack@0.36.0 from npm (COREPACK_VERSION build arg) to keep yarn. npm's global install also links pnpm/pnpx; corepack disable pnpm keeps the image yarn-only as before.
  • docker broker: image 26-alpine, CI setup-node "26", @types/node ^22 → ^26.6.6 (lockfile also moves undici-types 6.21 → 8.9).
  • broker task images: the example allowlist/config/docs move to node:26-alpine. This is a separate commit because it changes what user projects run under.

Verification

  • Broker npm test (tsc + 28 tests) passes on real node v26.13.0; e2e ran against a fake docker shim (there's no Docker in the dev env), and the server boots with --throw-deprecation.
  • make test passes (1027 tests).
  • I simulated the corepack sequence on node 26: only corepack/yarn/yarnpkg remain, yarn → 1.22.22, no prompt, package.json untouched.
  • Not run: a real make build_harnesses / make build_broker image build.

Review

An adversarial panel reviewed it with four lenses: security/supply chain, correctness/runtime compatibility, completeness, and conventions/docs. All four returned SAFE. Lockfile and corepack integrity hashes were checked against the registry.

Out of scope

actions/checkout@v4 and actions/setup-node@v4 still run on GitHub's Node 20 action runtime. Bumping them would be a separate change.

Node 25 stopped bundling corepack, so the image now installs a pinned
corepack from npm to keep providing yarn. npm's global install also
links pnpm/pnpx shims the bundled corepack never exposed; disable them
so the image still ships yarn only.
Moves the broker image, its CI jobs, and @types/node to the Node 26
LTS line together, so the types match the runtime it ships on.
Kept apart from the broker's own runtime: this changes the image user
projects build and test under, and can be reverted on its own.
npm checks the tarball only against the hash the registry reports, so
a swapped tarball would still install. Pin its sha256 as Ruby's is.
Restore the original wording of the corepack env comment while here.
@CrypticSwarm
CrypticSwarm merged commit 827791a into master Nov 15, 2026
4 checks passed
@CrypticSwarm
CrypticSwarm deleted the upgrade-node-version-26 branch November 15, 2026 20:14
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