Repository navigation
fix(ci): stop rebuilding dependencies from stale snapshots - #123040
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: found issues before merge. Reviewed August 13, 2026, 3:23 AM ET / 07:23 UTC. ClawSweeper reviewWhat this changesThis PR replaces the mutable Blacksmith dependency snapshot with an exact Actions cache for root dependencies and the pnpm store, restored by CI preflight and downstream Node jobs. Regression provenancePossible regression — probable (reproduction; failure trace). No predecessor PR is attributed. Merge readiness⛔ Blocked by patch quality or review findings - 6 items remain Keep open. The immutable-cache replacement is a coherent fix for the linked StickyDisk regression, but allowing every same-repository PR to save a multi-gigabyte branch-scoped archive can evict the canonical main cache and recreate the cold-install problem. Priority: P2 Review scores
Verification
How this fits togetherCI preflight selects validation work, prepares dependency state, then unblocks Blacksmith Node jobs. The changed action supplies the dependency tree each job reconciles before running checks or builds. flowchart LR
A[Push or pull request] --> B[CI preflight]
B --> C[Dependency fingerprint]
C --> D[Exact dependency cache]
D --> E[PNPM reconciliation]
E --> F[Blacksmith Node jobs]
E --> G[Hosted and fork jobs]
Decision needed
Why: The tradeoff is between PR-local reuse and protecting the canonical main seed; the official cache contract makes the branch-scoping cost concrete, but maintainers own the CI-capacity policy. Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests -219, Docs +2, Config -676, Other -6. Total -899 across 19 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep the exact dependency archive main-only; let same-repository PRs restore the default-branch seed or use the existing pnpm-store fallback on a changed dependency fingerprint. Do we have a high-confidence way to reproduce the issue? Yes in source: three branch-scoped archives at the PR's stated 3.578 GiB each exceed the official 10 GB cache limit, while those archives are not reusable by default-branch CI. Is this the best way to solve the issue? No. The immutable archive is the right owner-boundary replacement, but its writer should remain canonical-main-only so PR-local caches cannot displace the shared seed. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1d45930162ca. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
68771f6 to
16a30e9
Compare
16a30e9 to
ba1eecd
Compare
|
Land-ready proof for exact head
ClawSweeper's reviewed-head writer-scope concern was evaluated rather than silently skipped. The 3.578 GiB local estimate it used did not match hosted reality: the complete archive is ~1.12 GiB. Blacksmith transparently backs The repository-native prepare gate reused this exact hosted run ( |
|
Merged via squash.
|
|
Post-land verification completed on exact squash commit
This removes the repeated 5m35s mutable-snapshot rebuild/promotion failure from the canonical path. No fanout or coverage changed. No Crabbox or Testbox was launched or delegated by this work; the unrelated Blacksmith Testbox workflow visible at the landed SHA was dispatched independently by |
Closes #122913
What Problem This Solves
Fixes canonical
mainand same-repository pull request CI repeatedly rebuilding pnpm dependencies because Blacksmith acknowledged mutable StickyDisk commits but later runs continued restoring an empty or stale filesystem.Why This Change Was Made
Replace the failed mutable dependency snapshot with one exact immutable
actions/cachearchive containing rootnode_modulesand a workspace-local pnpm store. Preflight is the sole writer; every same-repo Blacksmith Node consumer waits for it, uses the same semantic fingerprint key, and falls back to the ordinary pnpm-store cache on a miss. Fork, manual, and hosted retry paths remain on the ordinary cache, and canonical CI does not delegate to Crabbox or Testbox.The two trees are archived together so GNU tar preserves pnpm hard links. Exact restores still run frozen reconciliation; failed or partial restores are cleared before fallback, and failed reconciliation progressively relinks from the restored store and then retries from an empty store.
User Impact
Canonical CI can reuse an immutable dependency tree instead of serializing every Node-relevant run behind the same cold rebuild. Coverage, runner fanout, shard ownership, and trust routing are unchanged.
Evidence
node_modulesand the store together, stops the registry, and proves offline importer relinking with preserved hard-link identity (reused 1,downloaded 0).git diff --checkpass.pnpm testexercised all 12 top-level shards. Unrelated orb limitations remained: one loopback/LAN-isolation test fails under the orb network model (exact rerun: 15,511 pass, 34 skip, 1 failure), package-workflow cases require missingzip/a newerjq, and the broad extensions config reached its existing 15-minute no-output watchdog. No affected cache-owner test failed.No Crabbox or Testbox execution was used.