Repository navigation
fix(ci): packed test groups reject different scheduling limits - #160290
Conversation
Treat only OPENCLAW_TEST_PROJECTS_PARALLEL as a per-group test setting when intersecting shared compiler environments. Preserve each group's admitted overlap, test selection and worker count; retain native thread-budget intersection and rejection of differing compiler inputs. Both packed bundle plans from PR137092 run36396014412 reproduced the pre-execution failure on main5362ba0. The repaired real scheduling/shared-context boundary preserves parallelism[2,1] and workers[2,2]; test-child execution is substituted in that boundary proof, not claimed as a full extension-suite run. The runner file passes201tests (4.22s one-worker wall; new order cases7ms each), plus400siblingtests (54.95s). Scripts/root-test types, targeted lint/format, line-cap/diff checks and independent P2 review pass. Local Node26.8.2 differs from hosted24.19.0. 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:47 AM ET / 08:47 UTC (Revision 2). ClawSweeper reviewWhat this changesAllows packed CI test groups with different project-parallelism limits to share a compiled worker and adds regression cases for both group orders. Merge readiness✅ Ready for maintainer review Current main still has the pre-execution failure for valid packed test groups. This PR addresses the existing CI contract, and the reviewed patch has no actionable finding. Priority: P2 Review scores
Verification
How this fits togetherThe CI shard runner receives packed test groups, admits their scheduling limits, prepares a shared compiler, and launches each group's test child. The child results feed the CI checks. flowchart LR
A[Packed test groups] --> B[CI shard runner]
B --> C[Group scheduling limits]
C --> D[Shared compiler environment]
C --> E[Test children]
D --> E
E --> F[CI results]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +73, Other +2. Total +75 across 2 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep project concurrency with each test group while allowing one compiler when the groups' compilation inputs agree. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source shows where differing group parallelism is rejected before child invocation, and the PR reports the exact packed plans that reached it; this read-only review did not execute them. Is this the best way to solve the issue? Yes. The patch changes the existing shared-environment policy at its owner and preserves the separate group settings and compiler-input checks. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 4094329cadbf. 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)
|
Preserve the dependency-free import guard while using the upstream bounded smoke rather than full PR ownership discovery. Co-authored-by: steipete <[email protected]>
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.
Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.
Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.
Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged.
* refactor(packages): deslop shared packages second pass Consolidate remaining stream, parser, schema projection and normalization paths while preserving public exports, wire shapes and runtime semantics. Retain the prior package cleanup owners and shrink assertion ratchets for removed casts. * refactor(packages): preserve schema declarations and finish type cleanup * refactor(packages): preserve explicit guards and import ordering * refactor(packages): retain distinct plugin result declarations * fix(sdk): bundle private session URL dependency The private session URL contract exports TypeScript source and has no standalone package build. Keep it as a build-time dependency so the existing package builder bundles it into the SDK. The unchanged external-consumer E2E reproduced the missing build-script failure before this repair. * ci: refresh packages proof after inherited fixture repairs Refresh the PR merge ref after #160024 repaired the trusted harness inventory and ordinary child-process jsdom preload. Package source and the reviewed tree are unchanged. * ci: refresh packages proof after placement fixture repair Refresh the PR merge ref after #160124 repaired the inherited placement fence synchronization and cleanup race. The reviewed and Testbox-proven package tree remains unchanged. * ci: refresh packages after compiler scheduling repair Refresh the PR merge ref after #160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged. * ci: refresh packages after lazy import guard repair
…law#160290) Treat only OPENCLAW_TEST_PROJECTS_PARALLEL as a per-group test setting when intersecting shared compiler environments. Preserve each group's admitted overlap, test selection and worker count; retain native thread-budget intersection and rejection of differing compiler inputs. Both packed bundle plans from PR137092 run36396014412 reproduced the pre-execution failure on main5362ba0. The repaired real scheduling/shared-context boundary preserves parallelism[2,1] and workers[2,2]; test-child execution is substituted in that boundary proof, not claimed as a full extension-suite run. The runner file passes201tests (4.22s one-worker wall; new order cases7ms each), plus400siblingtests (54.95s). Scripts/root-test types, targeted lint/format, line-cap/diff checks and independent P2 review pass. Local Node26.8.2 differs from hosted24.19.0. Co-authored-by: steipete <[email protected]>
* refactor(packages): deslop shared packages second pass Consolidate remaining stream, parser, schema projection and normalization paths while preserving public exports, wire shapes and runtime semantics. Retain the prior package cleanup owners and shrink assertion ratchets for removed casts. * refactor(packages): preserve schema declarations and finish type cleanup * refactor(packages): preserve explicit guards and import ordering * refactor(packages): retain distinct plugin result declarations * fix(sdk): bundle private session URL dependency The private session URL contract exports TypeScript source and has no standalone package build. Keep it as a build-time dependency so the existing package builder bundles it into the SDK. The unchanged external-consumer E2E reproduced the missing build-script failure before this repair. * ci: refresh packages proof after inherited fixture repairs Refresh the PR merge ref after openclaw#160024 repaired the trusted harness inventory and ordinary child-process jsdom preload. Package source and the reviewed tree are unchanged. * ci: refresh packages proof after placement fixture repair Refresh the PR merge ref after openclaw#160124 repaired the inherited placement fence synchronization and cleanup race. The reviewed and Testbox-proven package tree remains unchanged. * ci: refresh packages after compiler scheduling repair Refresh the PR merge ref after openclaw#160290 separated per-group scheduling from shared compiler inputs. The package tree and active Testbox source hashes are unchanged. * ci: refresh packages after lazy import guard repair
What Problem This Solves
Fixes packed Node test jobs failing before test execution when an admitted parallel Telegram group shares a compiler with a serial group.
User Impact
No product-runtime change. CI can run these valid mixed groups without changing their test selection, overlap limits, worker counts, or compiler safety checks.
Why This Change Was Made
Project parallelism belongs to each test group, not the shared worker compiler. Add only that scheduling key to the existing test-only environment differences. Compiler-affecting flags must still agree, and native thread budgets still use the minimum admitted limit.
Direct main publication was refused by the repository rule requiring a pull request, so this repair uses the normal PR route. Related: #137092.
Evidence
Hosted CI run 36397719650 stopped at an unchanged preflight-import smoke: its child exceeded the existing 30-second deadline. The fixture selected broad PR owner discovery, but the logs do not identify the exact stalled phase. This head incorporates the owning main fix
40019980f2687648942b0788fb8523fef58ff7ff(fix(ci): repair qualification planning and recovery regressions #160187). The smoke now exercises real Windows/UI planner imports without unrelated full-owner discovery and explicitly rejects a package import. On integrated headd700fd4cac90, all three matching preflight dependency cases pass in 3.64s wrapper wall (the original smoke takes 619ms); 321 unrelated cases were skipped by the focused selection. No timeout or import guard was relaxed. The introduced two-file compiler repair is unchanged.Both exact plans from CI run 36396014412 (jobs 108843032105 and 108843036251) reproduced on unchanged main 5362ba0 before any test-child invocation. They mix Telegram parallelism 2 with browser/iMessage parallelism 1.
The repaired real scheduling/shared-context boundary preserves child parallelism [2, 1], workers [2, 2], and the selected files. The boundary proof substitutes the test-child callback; it does not claim to run the full extension suites.
Runner suite: 201 passed, 4.22s one-worker wall; the two new order cases took 7ms each. Three sibling suites: 400 passed, 54.95s wall. The publishing parent independently replayed all 201 runner cases successfully (3.30s wrapper wall).
Formatting, targeted lint, scripts and root-test types, line-cap and diff checks passed. Independent review through P2 found no actionable findings.
Local proof used Node 26.8.2 rather than CI’s Node 24.19.0. Hosted CI remains a separate admission gate; no reruns or workflow dispatches were used for proof.
Requested by @steipete.
Work sessions
View the OpenClaw team session