Repository navigation
Done
Labels
area/cross-cuttingTouches multiple areas — needs coordinated handling
Description
Problem
Codev's supported Node.js range is stated in several places and they disagree:
| Place | Value |
|---|---|
packages/codev/package.json engines.node |
>=20.0.0 |
POSIX CI (test.yml, e2e.yml, dashboard-e2e.yml, sdk-canary.yml, post-release-e2e.yml) |
Node 20 only (eleven node-version: '20' lines) |
Windows CI (windows.yml) |
probe matrix 20 / 22 / 24, unit suites on 22 and 24, install guard on 20 and 22 |
@types/node (codev, core, sdk, artifact-canvas, streamdeck, vscode) |
22.x |
README / codev-skeleton/DEPENDENCIES.md / codev/resources/arch.md |
"20+ (22 recommended)", "native Windows: 22 or 24" |
codev/resources/cloud-instances.md provisioning script |
Node 20 |
Node 20 reached end of life on 2026-04-30. Every POSIX CI job still runs on it and it is still advertised as the floor.
Decision (owner, 2026-11-24)
- Floor: Node 22. Node 20 is no longer supported.
- Standardise on Node 22 for testing. The Windows workflow stops testing 20, 22 and 24 and tests 22 only.
- This replaces the earlier text of this issue, which proposed testing and recommending Node 24.
Change set
- engines:
packages/codev/package.jsonengines.node→>=22.0.0. Check whetherengine-strictis set in the repo's.npmrcfiles and say in the PR whether a below-floor install warns or fails. - Windows CI (
windows.yml): one Node version, 22, in every job.- Probe matrix: drop the
20and24rows onwindows-latestand the24row onwindows-11-arm. Remove the conditions that only existed because of the matrix (matrix.node == '22',continue-on-error: ${{ matrix.node == '20' }}). - Unit suites: drop the Node 24 job.
- Install guard: see open question 2.
- Probe matrix: drop the
- POSIX CI: every
node-version: '20'in the five workflows →'22'(see open question 1). - @types/node: stays
22.xeverywhere. No change. - Docs: README install table and the native Windows line;
codev-skeleton/DEPENDENCIES.md(Node section, support table, Windows table, troubleshooting entry);codev/resources/arch.mdrequirements lines;codev/resources/cloud-instances.md(setup_20.x→setup_22.x). State "Node 22" as the supported and tested version; do not describe 24 as tested. Grep bothcodev/andcodev-skeleton/for20+,Node 20,setup_20,22 or 24before claiming done. - Guard message:
SUPPORTED_WINDOWS_NODEinpackages/codev/scripts/native-deps-guard.mjsand its runtime twin insrc/lib/native-deps.tsare parity-tested; if the wording changes, change both. The ABI allow list does not change: a newer Node whose prebuilds exist keeps installing, it is just not a tested configuration. - Lessons: the
#1819entry in lessons-learned.md says "CI pins Node 20"; update it to 22.
Out of scope: tsconfig targets, and re-provisioning existing cloud instances (the doc change is in scope; the image rebuild is an ops task).
Open questions (builder: raise with the architect, do not guess)
- POSIX CI version. The decision names Windows testing. This issue assumes "standardise on 22" covers the POSIX workflows too, since they must leave Node 20 and one version everywhere is the simplest reading. Confirm before changing them.
- Install-guard job. Its Node 20 leg proves the preinstall guard refuses an unsupported Node on Windows. With 20 dropped from testing, either remove that leg (the guard's unit tests remain) or keep the single refusal check as the one exception. Default if not told otherwise: remove it.
Verification
- Full CI green on Node 22 for every POSIX job, including
dashboard-e2eandsdk-canary. - Windows workflow dispatched on the branch with suites and install guard:
gh workflow run windows.yml --ref <branch> -f purpose='node floor' -f suites=true -f install_guard=true. Every job runs on Node 22 and is green. pnpm publish --dry-runshows theenginesfield adopters will see.
Protocol
AIR. The work is mechanical across CI, manifests and docs.
Metadata
Metadata
Assignees
Labels
area/cross-cuttingTouches multiple areas — needs coordinated handling
Activity
[-]Raise the Node.js floor to 22 and test/recommend Node 24 (Node 20 is EOL)[/-][+]Raise the Node.js floor to 22, drop Node 20, and standardise CI on Node 22[/+][Air #1944] feat: Raise the Node.js floor to 22 and standardise CI on…
[Air #1944] fix: Remaining Node floor references and a Node 22 winget…
[Air #1944] fix: codev skill doctor floor, regenerated skill hashes, …
[Air #1944] fix: Integration review items 1-5 (doctor Linux hint, v22…
[Air #1944] fix: Say the install abort is no longer host-checked (own…
[Air #1944] docs: Correct stale Windows suite durations (about 7 minu…
[Air #1944] fix: Load node-pty through one createRequire loader (empt…
[Air #1944] chore: Thread note on the node-pty loader fix
release notes: Node.js 22 floor (#1944, PR #1962), summary, breaking …
[Air #1944] fix: Mock the node-pty loader in the four remaining test …
[Air #1944] test: Size two CPU-bound tests' timeouts to their measure…
[Air #1944] fix: Doctor upgrade hint for a too-old Node, node-pty loa…
[Air #1944] docs: Record the measured cause of the two slow tests (V8…
Merge pull request #1962 from cluesmith/builder/air-1944
release notes: codev doctor prints the upgrade command for a too-old …
[Bugfix #2015] Test: give the #1919 import-walk test the same sized t…