Repository navigation
improve(ci): reduce compact runner queue tails [AI] - #122666
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Exact-head hosted evidence for
|
|
Codex review: needs maintainer review before merge. Reviewed August 12, 2026, 11:17 AM ET / 15:17 UTC. ClawSweeper reviewWhat this changesRoutes compact-small CI bins 2, 5, and 8 to the existing 8-vCPU runner pool without changing compact test packing, job names, or coverage. Merge readinessThis PR remains necessary: the planner currently routes every compact-small bin to 4-vCPU capacity, while this branch applies the measured exception after packing. No blocking correctness defect was found; the protected maintainer item still needs an explicit CI-capacity decision because the exact-head run proved routing but did not experience fleet congestion. Priority: P3 Review scores
Verification
How this fits togetherThe Node test planner turns test groups into compact CI jobs, then preflight passes each job's runner choice into the GitHub Actions matrix. That runner selection determines the capacity pool that executes the existing test plan and affects CI queue latency. flowchart LR
A[Test groups] --> B[Compact CI planner]
B --> C[Packed test jobs]
C --> D[Post-packing runner rule]
D --> E[Preflight matrix]
E --> F[4-vCPU or 8-vCPU runner pool]
F --> G[CI gate]
Decision needed
Why: Source and exact-head CI prove the routing is implemented correctly, but only a CI-capacity owner can accept the operational trade-off between the two shared runner pools. Before merge
Agent review detailsSecurityNone. PR surfaceTests +16, Docs 0, Other +14. Total +30 across 3 files. View PR surface stats
Review metrics
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 post-packing planner rule, have the CI-capacity owner accept the measured pool trade-off, and inspect a subsequent congested canonical-main run for both targeted queue improvement and 8-vCPU headroom. Do we have a high-confidence way to reproduce the issue? Not applicable: this is CI capacity tuning, not a reported product bug; the exact-head hosted run directly verified the new runner assignment and 4-vCPU control job. Is this the best way to solve the issue? Yes, with monitored capacity ownership: routing after packing keeps the existing planner and workflow contract instead of introducing a parallel plan or workflow override. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 37b4fc8621d9. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready review completed at exact head
The CI-capacity trade-off is accepted with post-land monitoring of the next congested main cohort. The optional autoreview helper could not invoke its Codex CLI because that executable is unavailable in this orb; the independent review and exact-head CI evidence above are complete. |
|
Merged via squash.
|
Closes #122665
What Problem This Solves
Three compact-small Node jobs repeatedly own the full-suite CI critical path while waiting on the more congested 4-vCPU runner pool. Across 38 successful runs in the latest 12-hour cohort, compact-small bins 2, 5, and 8 owned 12 critical paths; their combined queue p50/p90/p95 was 82/269/373 seconds versus 11/145/216 seconds for compact-large jobs on the existing 8-vCPU pool.
Why This Change Was Made
Route only
checks-node-compact-small-{2,5,8}to existing 8-vCPU capacity after the compact planner finishes packing. Post-packing routing preserves the recently balanced group layout, check names, serial execution, coverage, 23-bin plan, and total Actions registrations. Every other compact-small job remains on 4 vCPU.This is narrower than repacking/splitting the jobs, moving the whole small matrix, or raising global parallelism, all of which would increase churn or capacity pressure beyond the measured bottleneck.
User Impact
No product behavior changes. Maintainers should receive faster full-suite CI feedback during 4-vCPU queue pressure without adding jobs or runner registrations.
Production/docs LOC: +26/-12 (net +14) | Tests: +18/-2. The production growth is the bounded three-entry capacity advisory and its post-packing application; it avoids a second planning path or any workflow override.
Evidence
CI=1 node scripts/ci-run-timings.mjs --trend-hours 72 --compare-hours 12 --output /tmp/ci-trend-post-windows.jsonactions_runner_registration: limit 10,000, remaining 10,000.CI=1 node scripts/run-vitest.mjs test/scripts/ci-node-test-plan.test.ts— 22 tests passed after the final rebase.CI=1 node scripts/check-changed.mjs -- scripts/lib/ci-node-test-plan.mts test/scripts/ci-node-test-plan.test.ts docs/ci.md— passed, including script/test typechecks and lint.CI=1 node --import tsx scripts/check-workflows.mts— actionlint, zizmor, and interpolation checks passed.CI=1 node scripts/docs-list.js— passed.CI=1 ./node_modules/.bin/oxfmt --check scripts/lib/ci-node-test-plan.mts test/scripts/ci-node-test-plan.test.ts docs/ci.md— passed.git diff --check— passed.No Crabbox or Testbox was used.
AI-assisted: analysis, implementation, and verification were performed with Amp.