Repository navigation
fix: run concrete changed test groups concurrently - #162701
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: needs maintainer review before merge. Reviewed October 1, 2026, 9:03 AM ET / 13:03 UTC (Revision 2). ClawSweeper reviewWhat this changesThe PR lets resolved changed test files use the existing bounded concurrent scheduler and adds regression cases for overlap and the serial override. Merge readiness✅ Ready for maintainer review This remains a useful, focused fix: current main still excludes concrete changed selections from automatic overlap. No actionable correctness or security findings remain, and the overlapping open PR also changes selection policy rather than demonstrably superseding this work. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw's test runner turns explicit files or changed Git paths into test groups, then schedules their Vitest processes. Admission checks control concurrency while preserving resource limits, isolated outputs and caches, and exclusive-suite barriers. flowchart TD
A[Explicit files or changed paths] --> B[Resolve test groups]
B --> C[Check concrete file selection]
C --> D[Check resources and isolation]
D --> E[Bounded scheduler]
E --> F[Vitest processes]
F --> G[Joined cleanup and results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +12, Other +2. Total +14 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep changed-file scheduling parity in the existing execution owner while preserving test selection, serial overrides, and isolation contracts. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that eligible changed selections lack original explicit targets and fail automatic-overlap admission on current main; the reported Linux comparison supplies a concrete reproduction path, which this review did not execute. Is this the best way to solve the issue? Yes, admitting resolved literal files through the existing execution owner repairs scheduling parity without adding a scheduler or changing selection policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 9bf17b16a878. LabelsLabel changes: No label 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)
|
|
Fixed: concrete changed-test selections now use the existing bounded concurrent scheduler. |
Allow concrete changed-test selections to use the existing bounded concurrent scheduler while preserving serial and exclusive-suite safeguards. Fixes openclaw#162615.
Fixes #162615
What Problem This Solves
pnpm test --changed <base>serializes independent test groups even when it resolves to the same concrete files that receive automatic concurrent scheduling in an explicit-file invocation. The admission check previously required original file arguments, which changed-mode commands do not contain.User Impact
Eligible concrete changed selections now use the existing bounded scheduler. Existing worker budgets, serial overrides, exclusive-suite barriers, output/cache isolation and child cleanup remain in force. Test selection policy and command defaults are unchanged.
Why This Change Was Made
The execution owner can already distinguish resolved changed files from broad/configuration selections. It now admits the resolved literal files through the same checks used for explicit targets. This is a scheduling correction in the existing runner, with two regression cases added to its current admission matrix.
Evidence
The baseline regression recorded one active plan where the existing resource profile permits two. The corrected changed-mode case reaches two, while the serial-override control remains at one. Remote affected coverage passed across 16 files: 778 cases passed and 1 existing case skipped. Changed-file lint/format and the scripts/root compiler graphs passed, along with the production dependency audit and trusted-base private-key scan. A corrected assertion was rerun with its failed owner and two previously unrun smoke files; the 13 passing peer files were retained.
The complete regression file passed its 176 cases in 29.82s in one Vitest file worker. The affected runner used two concurrent plans with four workers per plan on an 8-CPU/31-GiB remote box. The 3-file completion took 102.42s, including native preparation. These measurements do not claim CPU saturation or a universal wall-time reduction. Hosted CI passed on
fd6430302c55dafb2181f024e56e333638643b08; ClawSweeper rated that same head Platinum with no findings. Independent engineering review is clean.