Skip to content

ci: run every workflow on Node 22 - #4793

Merged
kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/ci-node-22
Oct 6, 2026
Merged

kovtcharov-amd merged 1 commit into
amd:mainfrom
kovtcharov:kalin/ci-node-22

Conversation

@kovtcharov

Copy link
Copy Markdown
Contributor

The open dependency update for the Electron apps (#4703) can't pass CI: Electron Forge 8 refuses to run on Node below 22.13, and every workflow still pins Node 20. Node 20 also reached end-of-life in April 2026, so CI is building and publishing on an unsupported runtime. This moves all workflows to Node 22, and changes the macOS install hint in the quickstart and Agent UI guide from brew install node@20 to node@22, so new users aren't pointed at an end-of-life Node.

The npm packages' declared minimums (engines) are unchanged; this only changes what CI runs on.

Test plan

Node 20 reached end-of-life in April 2026, and Electron Forge 8 requires
Node >= 22.13: the Dependabot bump in amd#4703 fails `electron-forge make` on
CI's Node 20. Every workflow now pins Node 22, and the install docs stop
pointing macOS users at node@20.
@github-actions github-actions Bot added documentation Documentation changes devops DevOps/infrastructure changes labels Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

Verdict: Approve with suggestions

This moves every CI workflow from Node 20 (end-of-life) to Node 22, which unblocks the Electron Forge 8 update. The workflow change is complete and safe: no node-version: '20' pins remain, and '22' resolves to the latest 22.x, which meets Forge's 22.13 floor and the Vitest job's 22.19 floor.

The docs half is only partly done. The setup page now says "Node.js 22 LTS via NVM", but its NVM commands just below still install 20.20.0, and the repo's .nvmrc still pins v20.20.0. A new contributor following the page lands on the end-of-life version the PR is trying to move people off. The quickstart's Linux line also still points at the Node 20 NodeSource script, while its macOS line now says 22. Update these in this PR or reword the table row, so the docs agree with each other.

Real-world evidence

N/A: this PR changes only CI workflows and docs, and no evidence bundle was produced. The verdict rests on static review. The real proof is the CI jobs on this PR (Electron build, installers, Vitest, hub npm tests, docs), which the test plan already lists.

🔍 Technical details

🟡 Setup doc contradicts itself (docs/setup.mdx:21 vs :80-86, :140-142)
The requirements table was changed to "22 LTS via NVM", but both the Windows and Linux/macOS NVM blocks still run nvm install 20.20.0 / nvm use 20.20.0 / nvm alias default 20.20.0. Change all six lines to 22 (or a pinned 22.x). The repo-root .nvmrc (v20.20.0) is the same claim, since nvm use with no argument reads it. No workflow reads it (node-version-file is unused), so bumping it doesn't change CI.

🟢 Quickstart Linux hint still installs Node 20 (docs/quickstart.mdx:61)

  - **Linux:** `curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash - && sudo apt install -y nodejs`

docs/integrations/vscode.mdx:62,83 has the same v20 / setup_20.x guidance if you want to sweep it too.

🟢 "Node.js 20+" next to node@22 (docs/guides/agent-ui.mdx:126, docs/quickstart.mdx:57)
Keeping the 20+ floor is consistent with the unchanged engines fields, so this is fine as is. Just confirm it's intentional: a Homebrew node@22 install is keg-only and isn't put on PATH automatically, which is the same as it was for node@20.

Strengths

  • The sweep is complete: every '20' pin is gone, and publish.yml's existing '24' job was left alone.
  • It doesn't loosen the Vitest job's documented need for Node >= 22.19. The comment there still holds, because '22' resolves to the newest 22.x.
  • The PR description clearly separates CI runtime from the published engines minimums.

@kovtcharov-amd
kovtcharov-amd added this pull request to the merge queue Oct 6, 2026
Merged via the queue into amd:main with commit 83f1116 Oct 6, 2026
@kovtcharov-amd
kovtcharov-amd deleted the kalin/ci-node-22 branch October 6, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

devops DevOps/infrastructure changes documentation Documentation changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants