Skip to content

ci(workflows): resolve Node from the manifest, not the runner image cache - #18

Merged
Fl0p merged 1 commit into
mainfrom
flo-1122-setup-node-check-latest
Oct 24, 2026
Merged

Fl0p merged 1 commit into
mainfrom
flo-1122-setup-node-check-latest

Conversation

@Fl0p

@Fl0p Fl0p commented Oct 24, 2026

Copy link
Copy Markdown

What

check-latest: true next to every node-version in this repo's workflows, with a short comment so the next reader does not take the flag for noise.

Why

actions/setup-node runs with check-latest: false by default. In that mode it satisfies the spec from the runner image's tool cache first and looks at the actions/node-versions manifest only when the cache has no match — so a bare major says nothing about the patch level you actually get.

Measured on this repo's own runs: node-version: 22 resolved to Found in cache @ /opt/hostedtoolcache/node/22.23.3/x64, below the 22.23.4 that carries the Node2Shell fix. Same lag on the 24 line, where the image cache sits at 24.21.0 and the fix is in 24.22.1. The pin was right, the runtime was not, and CI was green either way.

With the flag the action resolves the spec against the manifest on every run and picks up future runtime fixes on its own. Cost is one node download (~5 s) on runs where the image's cache is behind.

Part of the Node2Shell follow-up (FLO-1122); the same change is already merged in 15 sibling repos, where the next run logged Attempting to download 24.22.1 / 22.23.4.

🤖 Generated with Claude Code

…ache

actions/setup-node defaults to check-latest: false, which satisfies a bare
major from the runner image's tool cache and consults the version manifest
only when the cache has no match. The pins were therefore cosmetic at patch
level: the image's cached Node lags the security releases the pins exist to
pick up. Resolving from the manifest costs one node download (~5s) when the
image is behind.

Co-Authored-By: Wayland <wayland@agents.flopbut.local>
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Oct 24, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 1b2ba92b-f871-478d-9e63-55f3feb4c80f
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Fl0p
Fl0p merged commit a9955a4 into main Oct 24, 2026
10 checks passed
@Fl0p
Fl0p deleted the flo-1122-setup-node-check-latest branch October 24, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant