Repository navigation
fix(ci): avoid a redundant runtime build in repair tests - #195288
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. |
|
Merged via squash.
|
|
Codex review: needs maintainer review before merge. What this changesThis PR reuses the existing worker fixture helper so selected repair tests no longer require a complete runtime build. Example: CI selects src/cli/update-cli/update-command-post-update-repair.test.ts.
Review scores
ProductKind: Performance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR removes a verified redundant build dependency while preserving repair coverage; no actionable correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe test prerequisite planner turns selected test files into build requirements, while the repair fixture supplies a candidate-package entrypoint for the real inspection subprocess. flowchart TD
A[Selected test files] --> B[Build prerequisite planner]
B --> C[Runtime preparation when required]
B --> D[Vitest runner]
D --> E[Existing worker materializer]
E --> F[Candidate package fixture]
F --> G[Inspection subprocess and rollback assertions]
Technical reviewBest possible solution: Reuse the existing worker materializer and remove only the repair suite’s redundant runtime prerequisite while retaining mixed-selection and rollback coverage. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the redundant dependency: main explicitly requests runtime preparation for this suite, whose old fixture imports the repository dist worker; no reproduction was executed during this read-only review. Is this the best way to solve the issue? The smallest complete fix uses the existing worker owner, removes the obsolete prerequisite, and protects both repair-only and mixed selections without adding machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 13769ac805bb. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +4, Other -1. Total +3 across 4 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
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 Reviewed November 8, 2026, 11:25 AM ET / 16:25 UTC. |
…5288) * fix(ci): avoid a redundant runtime build in repair tests * test(ci): keep repair prerequisite coverage within budget * test(ci): retain affordable CLI packing coverage
What Problem This Solves
Selected update-repair tests force a complete runtime build even though their real subprocess worker is already supplied by the test runner.
User Impact
CI avoids one redundant runtime build whenever these repair tests are selected without another packaged-runtime consumer. All repair, rollback, isolation, and required boundary coverage remains. No product behavior changes.
Why This Change Was Made
Reuse the existing worker materialization helper for the synthetic installed package instead of importing the repository dist worker. Remove only this test file from runtime-build prerequisites. Mixed selections still prepare the runtime when another test needs it.
Evidence
runtime. The fixed routing file passed all 112 cases; after simplifying the new regression, its repair-only and mixed repair/recovery assertions pass again. Mixed selection still requests the runtime.dist/infra/update-candidate-state.worker.jsabsent before and after execution. The real inspection subprocess and restored-generation assertions remain in use.141890196ac07d6c7d86d77fbf998ea2b04875b3, using the same bun-all policy, changes runtime-build jobs from one to zero. It preserves all 26 direct targets, grouped selections, mandatory boundary coverage, and seven Node jobs. Normal packing redistributes three targets.1418901..8857ebdfound no functional or security defect; its test-budget finding is fixed by simplifying the regression. The ratchet now passes: 6,579,870 lines against a 6,579,871 ceiling, with no new allocation or relaxed baseline.