Repository navigation
fix(ci): warm release build caches with the release Node runtime - #168504
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR uses the release Node pin for Linux full-build cache publication, then restores the captured test runtime. Example: The warmer selects Node 24.19.0 while release preparation uses Node 24.21.0.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a release-cache mismatch still present on main, with no actionable correctness or security findings. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe protected-main warmer turns repository sources into reusable build and test caches; release preparation restores compatible archives and validates their contents before reuse. flowchart TD
A[Protected main sources] --> B[Test runtime setup]
B --> C[Worker and SDK preparation]
C --> D[Release runtime setup]
D --> E[Full build cache publication]
E --> F[Release consumers]
E --> G[Restore test runtime]
G --> H[Test cache warming]
Technical reviewBest possible solution: Align the existing full-build publisher with release consumers while preserving test-runtime selection and artifact validation. Do we have a high-confidence way to reproduce the issue? Source shows that a 24.19.0 producer cannot populate the 24.21.0 consumer prefix; the body reports those versions and a regression failing before alignment. Is this the best way to solve the issue? The focused runtime switch repairs the producer mismatch without weakening runtime-specific cache identity or introducing another publisher. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f9371958b137. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +57, Config +30. Total +87 across 2 files. Added test files: 0. View PR surface stats
LabelsLabel changes: No label changes. Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (3 earlier review cycles)Reviewed October 10, 2026, 12:31 PM ET / 16:31 UTC (Revision 4). |
|
Merged via explicitly authorized admin squash with attributed pre-existing CI failures.
|
What Problem This Solves
Fixes release build-cache misses when the warmer's ordinary Node 24.x selection resolves to a different patch than npm preflight and Full Release Validation.
User Impact
No user-visible runtime change. Release builds can consume the existing Linux warmer's full-build cache under their pinned Node version. Frozen release cuts retain their own workflow policy.
Why This Change Was Made
The observed warmer installed 24.19.0 while release builds pinned 24.21.0. Installed-version cache keys correctly kept them separate. Switch only the existing full-build restore/build/save segment to the release pin, then restore the captured test runtime. Dependency, compiled-worker and transform selectors, cache prefixes, and the platform matrix stay unchanged. A cross-workflow regression detects future release-pin drift.
Evidence
pnpm check:workflowspasses: pinned actionlint, zizmor, composite-input and CI Git-owner checks.git diff --checkpasses.pnpm tsgo:test:rootgraphs pass (18.7s tooling, 26.2s scripts, 70.5s E2E, 101.7s other). The earlier missing Android input is resolved. The local boundary gate still reproduces inheritedui-e2e722 > 720; this limit is advisory in GitHub Actions but fatal locally. No passing claim is made for that gate.browser-capabilities.e2e.test.tsis discovered but absent from the private-server list (55 vs 54). The same failure reproduces locally in 13.26s. Its owner inputs are byte-identical between the PR base, this head, and inspected main43bb8cfc724; the runtime patch does not change them. The CI gate remains red. Native preparation retainedgithub_pending, without a passing gate stamp or CI rerun. The exact reviewed headd18f2751landed asc3fcd155through native inherited-failure admission, including current security revalidation. All 15 fail-fast sibling cancellations remain unrun coverage. The independent two-line inventory repair was already landed on main by Peter Steinberger in 47228122; it exactly matches the independently reviewed local patch (red 14.81s, green 12.11s, clean lint/format). No duplicate PR was published.Observed producer/consumer: warmer, npm producer.