Skip to content

fix(ci): warm release build caches with the release Node runtime - #168504

Merged
vincentkoc merged 1 commit into
mainfrom
fix/frv-warmer-release-runtime-20261010
Oct 10, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/frv-warmer-release-runtime-20261010

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 10, 2026 •

Copy link
Copy Markdown
Member

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

  • Regression fails on the original workflow and passes after alignment. Five focused cache/authority checks pass (5.8s wrapper); the two changed guards pass again after test typing/style corrections (9.43s wrapper; 7.27s Vitest). Added CI test body costs roughly 50ms on this host; hosted cost is unmeasured.
  • pnpm check:workflows passes: pinned actionlint, zizmor, composite-input and CI Git-owner checks.
  • Changed-file formatting, scoped typed lint, and root-tooling typecheck pass. git diff --check passes.
  • Author Codex AutoReview is scoped-clean at P0–P2 before mechanical test typing/style corrections. Independent exact-head runtime source review found no consequential defect, including Node/PATH restoration, pinned cache-action contracts, failure/cancellation gating, and release-pin drift. A further CLI AutoReview was unavailable; the existing report is not represented as fresh. The current maintainer policy does not require another CLI pass for mechanical-only changes. Exact-head ClawSweeper review also reports no findings or before-merge conditions.
  • Independent proof on the fully populated exact head: 10 selected workflow/Node-helper cases pass (6.40s wrapper); all four pnpm tsgo:test:root graphs 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 inherited ui-e2e 722 > 720; this limit is advisory in GitHub Actions but fatal locally. No passing claim is made for that gate.
  • Exact-head CI attempt 1 failed the unchanged private Control UI server inventory assertion: browser-capabilities.e2e.test.ts is 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 main 43bb8cfc724; the runtime patch does not change them. The CI gate remains red. Native preparation retained github_pending, without a passing gate stamp or CI rerun. The exact reviewed head d18f2751 landed as c3fcd155 through 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.
  • No release workflows were dispatched and no hosted speedup is claimed. The separate warmer Bun SIGKILL attribution gap is unchanged.

Observed producer/consumer: warmer, npm producer.

@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The warmer publishes full-build caches under a runtime prefix the release consumer cannot restore.
  • After: Full-build publication uses 24.21.0, and subsequent test warming returns to 24.19.0.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Useful and source-consistent, with workflow-contract guards supporting limited behavioral confidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; supplied guards check the runtime handoff structurally, while the historical workflow links do not exercise the changed path.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Release preparation misses reusable full-build caches when the warmer installs a different Node patch.
Reason: The maintainer-authored direction restores intended producer-consumer alignment within the existing publisher.

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
Reviewed head: d18f2751aec0e73282519125d12c68d4e0e258e2

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: No post-change workflow observation demonstrates release-version publication and consumer restoration followed by warming on the captured test runtime.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Full-build publication keeps the original intent (82d27dd: Publish immutable cache generations immediately after successful builds, with inner signatures deciding reuse validity.)
  • Dependency and test warming separation keeps the original intent (62f5950: Publish dependencies independently and preserve compiled-worker preparation before SDK and full-build topology changes.)
  • Native and packaged SDK separation keeps the original intent (4a49ceb: Seal the native SDK archive before removing its output so packaged builds retain their own resolution topology.)
  • Explicit shared-cache publication authority keeps the original intent (225aa5a: Keep PR execution restore-only and shared cache publication inside explicitly authorized trusted workflows.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit 62f5950 adds .github/workflows/vitest-cache-warm.yml:94 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 62f5950ba4b1; files: .github/workflows/vitest-cache-warm.yml)
  • Vincent Koc: Raw commit 225aa5a adds test/scripts/ci-workflow-guards.test.ts:3526 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 225aa5a17823; files: test/scripts/ci-workflow-guards.test.ts)

PR surface

Tests +57, Config +30. Total +87 across 2 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 58 1 +57
Docs 0 0 0 0
Config 1 33 3 +30
Generated 0 0 0 0
Other 0 0 0 0
Total 2 91 4 +87

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded release-build cache efficiency repair with no product runtime change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Optionally observe the next protected warmer and matching release consumer to confirm release-version publication, restoration, and subsequent warming on the captured test runtime.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-10T15:50:43.257Z sha d18f275 :: needs changes before merge. :: none
  • reviewed 2026-10-10T15:57:31.828Z sha d18f275 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-10T16:14:13.998Z sha d18f275 :: needs maintainer review before merge. :: none

Reviewed October 10, 2026, 12:31 PM ET / 16:31 UTC (Revision 4).

@vincentkoc vincentkoc self-assigned this Oct 10, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 10, 2026 15:52
@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 10, 2026
@vincentkoc
vincentkoc merged commit c3fcd15 into main Oct 10, 2026
153 of 171 checks passed
@vincentkoc
vincentkoc deleted the fix/frv-warmer-release-runtime-20261010 branch October 10, 2026 16:37
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant