Repository navigation
ci: run CLI tests with fewer jobs and builds - #138297
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. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 3:58 PM ET / 19:58 UTC. ClawSweeper reviewWhat this changesThis PR packs eligible non-build CLI test groups into fewer hybrid CI jobs and lets affordable runtime CLI split groups share one runtime preparation step. Merge readiness⛔ Blocked before merge - 2 items remain Keep open. The introduced planner logic preserves serial child execution and has focused invariant coverage, but this CI-capacity change still needs fresh exact-head native timing, memory, cleanup, and inventory evidence before landing. Priority: P3 Review scores
Verification
How this fits togetherThe CI planner converts the full test inventory and timing data into isolated job descriptors for GitHub Actions. Its packing rules determine runner usage, runtime-build reuse, and which test groups execute together or separately. flowchart LR
A[Test inventory] --> B[CI test planner]
C[Timing and runner limits] --> B
B --> D[CLI packing rules]
D --> E[Runtime preparation]
D --> F[Isolated test processes]
E --> G[CI job results]
F --> G
Before merge
Agent review detailsSecurityNone. PR surfaceTests +195, Docs +6, Other +34. Total +235 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the narrow, final-bin eligibility checks and land only after a fresh exact-head native run confirms elapsed time, memory, cleanup, and complete child-inventory preservation. Do we have a high-confidence way to reproduce the issue? Not applicable: this is internal CI planning work, not a report of a user-facing runtime defect; focused planner tests define the relevant scenarios. Is this the best way to solve the issue? Yes, provisionally: the final-bin checks preserve the existing isolation and timing invariants while limiting packing to eligible CLI groups; native exact-head confirmation remains necessary. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against c76103acf46a. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
The reuse exception is appropriately narrow: only generated CLI runtime children with the same runtime prerequisite can cohabit, and the unchanged 150-second serial wall still splits them when measured costs rise. Keeping each group as its own process/config preserves isolation while avoiding duplicate compilation. I would treat the 146-second planner estimate as planning evidence only; native CI should confirm the actual combined wall time before calling this a throughput win.
cf27476 to
7c94136
Compare
7c94136 to
46c2f08
Compare
|
Merged via squash.
|
* ci: share runtime builds across serial CLI test groups * ci: pack serial CLI tests into fewer jobs
Related: #138325
What Problem This Solves
Ordinary CI allocates separate jobs to short CLI groups and repeats runtime preparation for compatible CLI consumers. This adds runner setup and queue pressure while the groups already run in separate processes.
Why This Change Was Made
Pack eligible non-build CLI groups into serial jobs with a 250-second estimated budget; each child must still fit its original 150-second limit. Runtime-consuming CLI siblings can share one preparation within the existing 150-second job budget. Recheck all sibling-sharing rules against the complete bin on every insertion so later unrelated work cannot invalidate an earlier exemption.
File selections, workers, process isolation, timing identities and fixed stripe separation are preserved. Other runner profiles and named/manual plans are unchanged. CI documentation describes both packing rules.
User Impact
Against main
26f87a37009b, the complete hybrid main plan uses 27 jobs instead of 30 and the broad PR fallback uses 50 instead of 52, including unchanged dist boundary rows. Main requires one fewer runtime-build job; broad PR build-job counts stay unchanged. No product behavior changes.Evidence
Fresh planner/executor proof passes all 82 cases on the current head. The complete six-profile census preserves every child descriptor and its multiplicity, including upstream's new plugin UI tests. A regression first reproduced later unrelated work invalidating an existing sibling exemption and passes with the final-bin repair. The original 19 canonical changed checks passed before the patch-equivalent rebase; focused tests and full descriptor conservation were repeated for the new discovery owner and dependency state.
The previous native CI run completed in 7:31. All six affected bins passed in 3:03–6:24, with 2–8 seconds of ready queue; all 17 serial group invocations exited successfully. That run failed only the independent UI startup-size check and its aggregate gate. Upstream #138449 reconciled the measured main baseline, and this head includes that fix. This is successful packing evidence, not a claim of green current-head CI or eight-minute completion for every platform and scope.
Fresh native CI on this head passed all 78 selected jobs, with 16 scope skips and no failures. The six affected bins passed in 3:10–6:34, and every executed job finished within 6:58. All 17 actual child groups completed serially with zero exits. The full workflow took 30:45 because jobs waited up to 24:30 for runners; this is not an eight-minute end-to-end result. Available CPU/RAM and cleanup are recorded; the runner emitted no numeric peak-memory sample.
Independent managed review completed two fresh passes with no actionable P0–P2 findings.