Repository navigation
fix: avoid oversized PR CI jobs when smaller rows fit - #160254
roboclaw-bot wants to merge 2 commits into
Conversation
Pack compatible whole bounded serial rows with the existing canonical execution-policy key and packer. Preserve selected coverage, worker envelopes, build prerequisites, exclusivity, and admission caps. Compare hosted tooling concurrency against its actual backend in the existing regression helper. Co-authored-by: steipete <[email protected]>
|
🦞👀 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: needs maintainer review before merge. Reviewed September 28, 2026, 4:02 AM ET / 08:02 UTC (Revision 2). ClawSweeper reviewWhat this changesThe branch packs compatible serial Node test rows within CI's time and group limits and corrects a test assertion to use the selected runner backend. Merge readiness✅ Ready for maintainer review Keep open. Current main prevents an oversized CI matrix by falling back to compact rows, but this PR offers the distinct improvement of retaining bounded rows when they fit. The prior cap-integration concern is addressed in the revised planner and reported focused proof. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's PR CI planner selects Node tests from changed files and turns them into jobs. The workflow checks the final job count before launching runners. flowchart LR
A[Changed PR files] --> B[Selected Node tests]
B --> C[Split long rows]
C --> D[Pack compatible rows]
D --> E[Check job limit]
E --> F[CI test jobs]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +232, Other +81. Total +313 across 4 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Retain packing in the changed-test planner ahead of main's cap fallback, preserving selected tests and their execution policies. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows the cap fallback without compatible-row packing, and the submitted 131-row control exercises the narrower case where bounded rows could fit. Is this the best way to solve the issue? Yes. Reusing the existing packer and execution-policy key in the changed-test planner is a focused way to retain bounded rows while leaving the cap guard in place. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8b549de1e0c7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Retain the current main cap fallback verbatim and finish packing inside the bounded-row owner. This linear fixup preserves the original PR ancestry and supports verified GitHub publication. Keep explicit cap coverage without changing fallback or execution policies. Co-authored-by: steipete <[email protected]>
|
The selected-plugin CI routing repair merged in #160324 (commit 81a840a) does not implement this PR's packing of whole, already-bounded serial rows with identical execution policies. Please preserve this distinct row-packing work and its existing time, group-count, worker, preparation, and fallback boundaries. It complements rather than duplicates the canonical plugin-owner fix. Keep this PR open. |
Related: #154239
What Problem This Solves
Fixes: PR CI can fall back to larger pre-split test jobs unnecessarily when compatible budgeted rows would fit its 130-job limit.
User Impact
No product behavior changes. Maintainers can run the same selected coverage in fewer CI jobs. The 130-job limit, 150-second admission budget, ten-group limit, worker/concurrency settings, runner choice, exclusivity, timeouts and build requirements remain unchanged.
Why This Change Was Made
Consolidate only whole, already-bounded serial rows with identical execution policies, using the existing packing function and canonical policy key. Unknown-cost, concurrent, standalone, oversized and build-dependent rows retain their original execution boundaries.
The current main compactNodeJobCap fallback remains unchanged. Packing finishes at the bounded-row owner before the caller evaluates that fallback, so fitting 150-second rows are retained and genuinely over-cap plans keep the existing canonical fallback.
The existing Git-tooling concurrency comparison also now uses the backend under test rather than silently comparing GitHub/hybrid rows against default Blacksmith routing. Its assertions remain intact.
Evidence
Seventeen capacity and policy-boundary regression cases pass; the pre-fix control fails five assertions, including 131 jobs instead of 130.
Assignment-candidate replay preserves all 5,273 selected targets and the complete child-descriptor multisets: GitHub 147 → 127 jobs (279 groups), hybrid 144 → 124 (308 groups). Every merged row stays at or below 150 seconds and ten groups. This is local planning evidence, not an exact replay of the unavailable hosted synthetic merge.
The pinned main integration replay naturally selects 273 targets and plans 20 GitHub / 50 hybrid jobs with the workflow cap of 130; the new regression file is selected.
Scripts/root-test types, formatting, targeted lint, line-cap and source guards, export checks, and independent P0–P2 review passed for the packing repair. The aggregate changed-check command initially stopped on a test-mock export-analysis problem; typed named mocks fixed it and the exact export scan passed. No unrelated exports were removed.
338 cases passed across the full changed-planner owner suite and the new regression file (489.09 s Vitest; 490.00 s wrapper). This includes the backend-fixture correction: two failures reproduced on pristine source, and now pass without weakening assertions. The existing planner suite is slow because it repeatedly exercises real repository owner/import selection; the 17 new synthetic cases took 25 ms in this run.
Conflict integration: 21 focused cases passed (4.76 s Vitest; 5.64 s wrapper), covering packing before the explicit cap, the inherited fallback/dist-budget behavior and all three backend comparisons. Without packing before the cap, both capped controls select 129 overlong canonical rows instead of 130 budgeted rows. Unchanged contracts reuse the full 338-case proof above.
The published linear fixup automatically merges with pinned main to the exact reviewed and tested integrated tree. GitHub verifies its signature; no signing or ancestry guard was overridden.
No workflow dispatch, cap increase, selection reduction or full repository test suite is used as proof.
Worked on by
Work sessions
View the OpenClaw team session