Skip to content

flake: test-js setup-node uses Node 20 (pnpm unsupported engine) #1457

@flake-investigator

Description

@flake-investigator

CI Run Link: https://github.com/coder/coder/actions/runs/24126239352
Failed Job: test-js (Setup Node) — https://github.com/coder/coder/actions/runs/24126239352/job/70393909572
Commit: 3f7a3e3354df3a2ecd517ac2f3c8a10ab7569c96 (Danielle Maywood) — perf: reorder declarations to fix React Compiler scope pruning (#24098)
Failure Time: 2026-04-08 08:59 UTC

Error Evidence:

ERR_PNPM_UNSUPPORTED_ENGINE Unsupported environment (bad pnpm and/or Node.js version)
Your Node version is incompatible with "@rolldown/plugin-babel@0.2.2(...)",
Expected version: >=22.12.0 || ^24.0.0
Got: v20.19.6

Context:

  • test-js uses ./.github/actions/setup-node which sets node-version: 22.19.0.
  • logs show setup-node attempted to download 22.19.0, but pnpm ran under Node v20.19.6 on the self-hosted runner.
  • Other jobs in the same run using setup-node (e.g., test-e2e) succeeded, suggesting a runner-specific or setup-node/toolcache issue rather than a repo-wide misconfiguration.

Root Cause Classification: Infrastructure / CI environment mismatch (Node 22 not active despite setup-node step).

Assignment Analysis:

  • git log --oneline -10 --follow .github/actions/setup-node/action.yaml
    • 4d8dc221 chore: upgrade Node.js from 20.19.4 to 22.19.0 and update dependencies (#19870) — author: Thomas Kosiewski

The failure points to CI Node setup/runner tooling. The last meaningful change to the setup-node action is by Thomas Kosiewski, but the GitHub username isn’t obvious from the commit metadata. Assigning to CI tooling owner for triage.

Assignee: @kylecarbs

Related Issues: None found after searching coder/internal for "ERR_PNPM_UNSUPPORTED_ENGINE", "Unsupported environment", "setup-node test-js", "node version pnpm install".

Reproduction: Not known (CI-only; likely runner/toolcache-related).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions