Skip to content

fix(ci): packed test groups reject different scheduling limits - #160290

Merged
roboclaw-bot merged 2 commits into
mainfrom
roboclaw/ci-shared-compiler-group-scheduling
Sep 28, 2026
Merged

roboclaw-bot merged 2 commits into
mainfrom
roboclaw/ci-shared-compiler-group-scheduling

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Collaborator

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 head d700fd4cac90, 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

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]>
@roboclaw-bot roboclaw-bot self-assigned this Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Sep 28, 2026
@roboclaw-bot
roboclaw-bot marked this pull request as ready for review September 28, 2026 08:30
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 28, 2026, 4:47 AM ET / 08:47 UTC (Revision 2).

ClawSweeper review

What this changes

Allows 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
Reviewed head: d700fd4cac90048ecd80ea94a0dc5c6647a4d785

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A small owner-level repair has focused before/after boundary evidence and meaningful regression coverage, with full hosted checks still in progress.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This bot-authored internal CI repair is exempt from the external-contributor proof gate. The reported before/after scheduling-boundary run reaches the pre-child failure with a substituted test-child callback; it does not claim a full compiler or extension-suite run. No stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This bot-authored internal CI repair is exempt from the external-contributor proof gate. The reported before/after scheduling-boundary run reaches the pre-child failure with a substituted test-child callback; it does not claim a full compiler or extension-suite run. No stored-data contract changes.
Evidence reviewed 8 items Introduced patch: The pinned base-to-head delta adds project parallelism to the shared compiler's test-only environment differences and adds two order-specific runner cases.
Current-main behavior: Current main lacks that test-only exception, so the shared-environment loop throws when admitted groups have different project-parallelism values. The affected files have no change between the pinned base and fetched main.
Runner boundary: The shard runner resolves a shared compiler environment from admitted plans before launching children; its child preparation retains each group's parallelism setting.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +73, Other +2. Total +75 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 73 0 +73
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 2 75 0 +75

Review metrics

Metric Value Why it matters
Regression test cost 2 order cases, about 7 ms each The reported measurements cover both orderings with little added per-PR test time.

Technical review

Best 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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: Valid packed Node test jobs fail before execution, affecting CI qualification without changing product runtime.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This bot-authored internal CI repair is exempt from the external-contributor proof gate. The reported before/after scheduling-boundary run reaches the pre-child failure with a substituted test-child callback; it does not claim a full compiler or extension-suite run. No stored-data contract changes.

Evidence

What I checked:

  • Introduced patch: The pinned base-to-head delta adds project parallelism to the shared compiler's test-only environment differences and adds two order-specific runner cases. (scripts/lib/vitest-process-env.mts:57, d700fd4cac90)
  • Current-main behavior: Current main lacks that test-only exception, so the shared-environment loop throws when admitted groups have different project-parallelism values. The affected files have no change between the pinned base and fetched main. (scripts/lib/vitest-process-env.mts:55, 4094329cadbf)
  • Runner boundary: The shard runner resolves a shared compiler environment from admitted plans before launching children; its child preparation retains each group's parallelism setting. (scripts/ci-run-node-test-shard.mts:421, d700fd4cac90)
  • Setting owner: The test-projects runner uses this setting to decide project concurrency, supporting its classification as group scheduling rather than a compiler input. (scripts/test-projects-run.mts:540, d700fd4cac90)
  • Regression coverage: The two cases check both group orders, per-child parallelism and worker limits, selected files, and the single shared compiler environment. The test-child callback is substituted, so these cases do not claim full extension-suite execution. (test/scripts/ci-run-node-test-shard.test.ts:1151, d700fd4cac90)
  • Prior review continuity: The two introduced files are unchanged from the earlier reviewed head; the supplied previous review reported no findings. (scripts/lib/vitest-process-env.mts:57, d700fd4cac90)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (1 earlier review cycle)
  • reviewed 2026-09-28T08:37:24.760Z sha 5e41c0c :: needs maintainer review before merge. :: none

Preserve the dependency-free import guard while using the upstream bounded smoke rather than full PR ownership discovery.

Co-authored-by: steipete <[email protected]>
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@roboclaw-bot
roboclaw-bot enabled auto-merge (squash) September 28, 2026 08:51
@roboclaw-bot
roboclaw-bot merged commit 7510c4b into main Sep 28, 2026
182 checks passed
@roboclaw-bot
roboclaw-bot deleted the roboclaw/ci-shared-compiler-group-scheduling branch September 28, 2026 08:53
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash auto-merge.

steipete added a commit that referenced this pull request Sep 28, 2026
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.
steipete added a commit that referenced this pull request Sep 28, 2026
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.
steipete added a commit that referenced this pull request Sep 28, 2026
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.
steipete added a commit that referenced this pull request Sep 28, 2026
* 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
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…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]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: S status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant