Repository navigation
Closed
Description
Filed at the owner's request from the 2026-10-09 review of GitHub Actions warnings and notices.
Problem
Checked at release/v0.2.32 (27cf6bd). main and the tip of release/v0.2.31 (a6ac3f0) have the same tree.
Both warnings below come from the cache steps of .github/actions/setup-toolchain/action.yml. Three jobs run that action: Static Analysis (ci.yml:38), Tests & Coverage (ci.yml:58) and the scheduled Dependency Freshness job (ci.yml:272).
actions/cache v4.3.0 is a Node 20 action, and the runner forces it onto Node 24
action.yml:37pinsactions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0, thev4.3.0tag. That commit'saction.yml:41declaresusing: 'node20'.- All 12 recent CI Quality Gate runs warn in both quality-gate jobs: "Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24: actions/cache@0057852b…". That is 24 annotations; the latest is in the "Complete job" step of https://github.com/dan-petty/devops-cli/actions/runs/37939949186 (Node 20 deprecation).
- In the same run, "Restore tooling caches" logs
[DEP0040] The punycode module is deprecatedand[DEP0169] url.parse() behavior is not standardized, and its post step logs DEP0040 again. Both come from v4.3.0's bundleddist/restore/index.js, which importspunycodeand callsUrl.parse. No other Node process in the run logs a deprecation. - It is the only
node20action pinned under.github/. Every other remoteuses:resolves to anode24or Docker action, or to a composite action whose nested actions arenode24. - The newest release is v6.1.0 (
55cc8345863c7cc4c66a329aec7e433d2d1c52a9, 2026-06-26).- It declares
using: 'node24', and its bundle has neitherpunycodenorurl.parse. - Between v4.3.0 and v6.1.0,
action.ymlchanges only the runtime line, sopath,keyandrestore-keysare unchanged. - v5 and later need runner 2.327.1 or newer; hosted runners report 2.337.0.
- It declares
- Nothing proposed the bump. Renovate has opened no pull request since the switch; fix(github): supply-chain claims made true — live Dependabot, zizmor and workflow invocation contracts #861 owns that.
Two or three jobs race to save the same setup-uv cache key
action.yml:23-34runsastral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d(v10.0.1) withenable-cache: true,cache-python: "true",prune-cache: "true"andcache-dependency-glob: "uv.lock". It sets neithersave-cache(default"true") norcache-suffix.- The composite has its own
cache-suffixinput to stop jobs "racing to save the same cache key" (lines 7-12), but that input only reaches theactions/cachestep. - Static Analysis and Tests & Coverage start together with no
needs:(asserted bytests/test_ci.py::test_ci_workflow_parallelizes_quality_gates). They compute the same two keys:setup-uv-2-x86_64-unknown-linux-gnu-ubuntu-24.04-3.14-pruned-py-<uv.lock hash>and the same key with-pythonappended. - On a push to main, Build & Publish Release (
release.yml:51-59, setup-uvc18668ad, v10.2.0, same options) computes the same keys. - On a key miss, each of these jobs saves at the end. The first to finish wins, and the others warn
Failed to save: Unable to reserve cache with key …, another job may be creating this cache.- Example, https://github.com/dan-petty/devops-cli/actions/runs/37939293848: both jobs missed at 13:46:55-57.
- Static Analysis saved both keys at 13:47:23-24.
- Tests & Coverage warned twice at 13:51:59-13:52:00, then still logged "uv cache saved with key" and "Python cache saved with key".
- The main push of 27cf6bd had three writers. Tests & Coverage warned in CI run https://github.com/dan-petty/devops-cli/actions/runs/37940637556, and Build & Publish Release warned in Release Orchestration run https://github.com/dan-petty/devops-cli/actions/runs/37940637538.
- 7 of the last 12 CI Quality Gate runs carry both warnings on Tests & Coverage: 37939293848, 37937402909, 37936735848, 37935739877, 37934275283, 37927623742 and 37902704323.
- No cache data is lost, because every writer runs the same
uv sync --all-groups --all-extras. The cost is two warnings on most runs, where they bury annotations that matter.
Proposed remedy
- Pin
actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0ataction.yml:37. Do not useNODE_OPTIONS=--no-deprecationor an opt-out variable: the warnings point at the stale pin. - Use setup-uv's documented
save-cacheinput. The pinned v10.0.1 already has it (docs/caching.md, "Save cache").- Add a
save-uv-cacheinput to the composite (default"true") and pass it to setup-uv'ssave-cache. - Set it to
"false"in Tests & Coverage (ci.yml:57-63). Static Analysis, which reaches its save about 30 s after it starts, becomes the only writer. Dependency Freshness runs alone on the schedule and keeps saving. - Add
save-cache: falsetorelease.yml:51-59. CI's Static Analysis saves the same key on the same push to main, and a tag push's cache is scoped to the tag, which no other run reads.
- Add a
- Rejected: passing
cache-suffixto setup-uv. The keys would differ, but each lockfile hash would then store three identical copies.
Acceptance criteria
-
.github/actions/setup-toolchain/action.ymlpinsactions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0. - The composite passes a
save-uv-cacheinput (default"true") to setup-uv'ssave-cache. Tests & Coverage sets it to"false", andrelease.yml's setup-uv step setssave-cache: false. - A test in
tests/test_ci.pyreads the composite,ci.ymlandrelease.yml. It fails if more than one job that runs on the samepull_requestorpushevent saves the setup-uv cache. It runs offline in under 1 s. - The pull request's CI Quality Gate run has no "Node.js 20 is deprecated" annotation and no
DEP0040orDEP0169line. "Restore tooling caches" still restores (Cache restored from key: tooling-…). - A CI run of the branch whose setup-uv key misses (for example after a
uv.lockchange) has noUnable to reserve cache with key setup-uv-annotation, and its Static Analysis post step logsuv cache saved with key. The pull request links the run. - A
changelog.dfragment records the change, anduv run devops cipasses.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
dan-petty-bot commentedon Oct 9, 2026
Intake placed this item to the backlog: at intake only a critical fix goes into a release; a release start pulls Ready items in, P0 features first.
The CI still passes; the Node 20 warnings are deprecation notices and the cache race only produces a redundant save warning, so nothing is broken today.Users see no functional impact; the warnings are cosmetic until GitHub removes Node 20 support and the cache is still saved by at least one job.Bumping actions/cache to v6.1.0 is a one-line pin change and adding a cache-suffix or save-cache flag to one or two jobs is a few lines of YAML.fix(ci): run toolchain cache on node 24 and save setup-uv cache in on…
dan-petty commentedon Oct 21, 2026
What changed
#1768, merged into
release/v0.2.38as a36c606.6 file(s) changed.
How it was verified
Check runs at 0b26188:
Acceptance Criteria of
docs/agent/tasks/task-1495-toolchain-cache-node24-single-writer.md:No Acceptance Criteria section.
feat(release): v0.2.38 (#1799)
feat(release): v0.2.38 (#1798)