improve(ci): shorten compact PR test critical path#104508
Conversation
|
Codex review: needs maintainer review before merge. Reviewed July 11, 2026, 10:45 AM ET / 14:45 UTC. Summary PR surface: Tests +9, Docs 0, Other +20. Total +29 across 3 files. Reproducibility: not applicable. as a product bug; the CI bottleneck and improvement are directly observable from deterministic planner output and successful exact-head Actions runs. Review metrics: 2 noteworthy metrics.
Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Risk before merge
Maintainer options:
Next step before merge
Security Review detailsBest possible solution: Merge the focused optimization after protected-label review and exact-head gating, retaining the single canonical planner path and its coverage, runner/dist, group-cap, subprocess-isolation, and timeout invariants. Do we have a high-confidence way to reproduce the issue? Not applicable as a product bug; the CI bottleneck and improvement are directly observable from deterministic planner output and successful exact-head Actions runs. Is this the best way to solve the issue? Yes. The patch modifies the existing canonical planner, reuses compatible admitted jobs, reduces registrations, preserves the whole-config timeout, and avoids creating a parallel CI execution path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 72aa3f1bcf4c. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Tests +9, Docs 0, Other +20. Total +29 across 3 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics. How this review workflow works
Review history (3 earlier review cycles) |
|
Merged via squash.
|
* perf(ci): rebalance compact PR test jobs * fix(ci): preserve compact whole-job timeout
What Problem This Solves
Code pull requests repeatedly waited on
checks-node-compact-large-whole-1, which serialized six fixed Vitest groups. Across six recent successful PR runs, that job took 292-318 seconds and consistently owned the critical path.Why This Change Was Made
When a runner/dist bucket would create one concentrated whole-config job, spread those groups evenly across compatible compact jobs that are already admitted and still below the group cap. Destinations that absorb whole-config groups retain the existing 120-minute timeout introduced in #95681. This reduces the canonical PR Node matrix from 20 jobs to 19 while leaving
main, manual, and release topology unchanged.User Impact
Contributors get faster code-PR CI without adding runner pressure. Two exact-head runs observed savings of 10-64 seconds (3-19%). Product runtime behavior is unchanged.
AI-assisted: yes. I understand the planner change and reviewed the resulting job topology.
Evidence
tbx_01kx8s3ktsdv2ts3bva6fc3148(blacksmith-testbox), stopped after proof:corepack pnpm test test/scripts/ci-node-test-plan.test.ts— 19 tests passedpnpm check:changed— passed (testRoot,docs,tooling)gpt-5.6-sol) — clean, no actionable findings