Skip to content

ci: run the Docker legs on Node 22, not on the image's Node 18 - #643

Merged
ronleizrowice-ant merged 1 commit into
mainfrom
ci/docker-legs-node-22
Oct 5, 2026
Merged

ronleizrowice-ant merged 1 commit into
mainfrom
ci/docker-legs-node-22

Conversation

@ronleizrowice-ant

Copy link
Copy Markdown
Collaborator

Follows #636, which raised engines to node >=22.12.0 and moved CI to Node 22, and missed two legs. The Docker legs run the built CLI (node dist/cli.js) with the Node that ubuntu:24.04 installs from apt: 18.19.1, below the floor.

Why now

#630 reads the version through import … with { type: 'json' }. Node 18.19.1 does not parse that, so with #630 both Docker legs fail: six of the seven cases, SyntaxError: Unexpected token 'with'. Seen on the draft #624, which has #630 merged in. #630's own CI has not run yet.

What changes

  • docker-tests gets the same pinned setup-node step as the other legs, with node-version: '22'.
  • The runner's Node is bound read-only into the container at /opt/node and put first on PATH. nodejs and npm are no longer installed from apt. Still no second piped installer.
  • The container prints node --version.

Testing

This pull request's own Docker legs are the test: there is no Docker where it was written. The workflow file parses, and prettier is clean.

The two Docker legs run the built CLI with the Node that ubuntu:24.04
installs, 18.19.1, which is below what engines allows since the floor went
to 22.12. They now use the runner's Node 22, bound into the container.
ronleizrowice-ant added a commit that referenced this pull request Oct 2, 2026
With #630 in, both Docker legs failed here: the image's Node 18 does not
parse the import of package.json. The runner's Node is bound in, as on
#643; bun still comes by checksum, as the bundle has it.

@antdres antdres left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/stamp

@ronleizrowice-ant
ronleizrowice-ant merged commit 6883d6a into main Oct 5, 2026
16 checks passed
@ronleizrowice-ant
ronleizrowice-ant deleted the ci/docker-legs-node-22 branch October 5, 2026 17:19
ronleizrowice-ant added a commit that referenced this pull request Oct 7, 2026
New to the bundle: #655, #660 and the version. #643, #639 and #630 come as
squashes of what it held; in the one block git marks, the workflow's, it
keeps its own side, which has the checksummed bun as well.

Two cases of #655 compare two wrapped commands. Here a wrap that names
mount points names a manifest of its own (#584), so the cases take that
name out before they compare.
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.

2 participants