Skip to content

fix(test): serialize default e2e runner - #122203

Merged
vincentkoc merged 2 commits into
mainfrom
fix/e2e-single-worker-default
Aug 11, 2026
Merged

vincentkoc merged 2 commits into
mainfrom
fix/e2e-single-worker-default

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Aug 11, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

Fixes an issue where the full release E2E suite could run two non-isolated files concurrently by default, causing shared gateway and process state to collide and repeatedly time out during beta validation.

The regression is visible in two release-validation runs for the same frozen candidate:

Why This Change Was Made

Restores the deterministic single-worker default introduced by 120eb342, which was accidentally reverted by the unrelated canvas refactor in 330ba1. Explicit positive OPENCLAW_E2E_WORKERS overrides remain supported and capped at 16; zero and invalid values fall back to one worker.

Current TUI exclusions and the rest of the E2E config shape are unchanged.

Scope expanded after exact-head ClawSweeper review found that two operator-facing testing pages still described the old adaptive-worker default. Those two references now document the single-worker default and explicit parallelism opt-in; no other docs were changed.

User Impact

Release and CI E2E runs use one worker unless the caller explicitly opts into parallelism, avoiding cross-file shared-state collisions. This changes test infrastructure and its operator documentation only; production LOC is unchanged.

Evidence

  • node scripts/run-vitest.mjs src/infra/vitest-e2e-config.test.ts
    • 1 test file passed
    • 3 tests passed
  • OPENCLAW_E2E_WORKERS=4 node scripts/run-vitest.mjs src/infra/vitest-e2e-config.test.ts
    • 1 test file passed
    • 3 tests passed
  • pnpm docs:check-mdx
    • passed for 769 files
  • node scripts/check-changed.mjs -- docs/help/testing.md docs/reference/test.md
    • docs-only lane passed
  • pnpm format test/vitest/vitest.e2e.config.ts src/infra/vitest-e2e-config.test.ts
  • pnpm format docs/help/testing.md docs/reference/test.md
  • git diff --check
  • .agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main
    • clean, no accepted/actionable findings
  • Signed head commit: ba2ed6a1f205fac74038092b01eebecdf2034e1b
  • Production LOC: +0/-0
  • Test and harness LOC: +49/-36
  • Docs LOC: +3/-3

AI-assisted implementation; the exact diff and focused proof were reviewed before publication.

@clawsweeper

clawsweeper Bot commented Aug 11, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@vincentkoc vincentkoc self-assigned this Aug 11, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Aug 11, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@vincentkoc
vincentkoc marked this pull request as ready for review August 11, 2026 18:28
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. labels Aug 11, 2026
@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 4:56 PM ET / 20:56 UTC.

ClawSweeper review

What this changes

The PR makes gateway end-to-end tests use one worker by default, retains a capped environment override for explicit parallelism, and updates testing documentation.

Regression provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

This PR remains necessary: current main still selects adaptive CI worker counts for the non-isolated gateway E2E lane. The earlier controlled-environment test and documentation findings are addressed; no patch defect was found.

Priority: P1
Reviewed head: ba2ed6a1f205fac74038092b01eebecdf2034e1b

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) The patch is a focused owner-boundary repair with controlled override coverage and aligned operator documentation.
Proof confidence 🌊 off-meta tidepool Not applicable: This member-authored test-infrastructure PR is outside the external-contributor real-behavior-proof gate; its body includes focused after-change test output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This member-authored test-infrastructure PR is outside the external-contributor real-behavior-proof gate; its body includes focused after-change test output.
Evidence reviewed 8 items Current-main behavior: Current main computes an adaptive CI default of up to two workers, so the serial-default repair is not already implemented or released.
Owner-boundary repair: The branch moves the default decision into the dedicated E2E configuration while preserving the existing capped explicit override.
Regression coverage: The changed test verifies the default, explicit override, cap, zero, and invalid-input cases without mutating process-wide environment state.
Findings None None.
Security None None.

How this fits together

Gateway E2E commands load a dedicated Vitest configuration that chooses worker concurrency before launching non-isolated tests. That runner executes gateway and process tests whose shared state can collide when files run concurrently.

flowchart LR
  A[Gateway E2E command] --> B[Worker environment]
  B --> C[E2E test configuration]
  C --> D[Worker-count decision]
  D --> E[Non-isolated Vitest runner]
  E --> F[Gateway E2E results]
Loading

Before merge

  • Resolve merge risk (P1) - This changes release and CI E2E concurrency, so required exact-head automation should be green before merge.
  • Resolve merge risk (P1) - Vitest source and types were unavailable locally because dependencies are absent and network access failed; preserve exact-head type and E2E validation as the dependency-contract check.
Agent review details

Security

None.

PR surface

Tests +13, Docs 0. Total +13 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 49 36 +13
Docs 2 3 3 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 52 39 +13

Review metrics

Metric Value Why it matters
Production vs test delta production 0; test and test-support +49/-36; docs +3/-3 The repair changes test infrastructure and its focused coverage without growing shipped runtime code.

Merge-risk options

Maintainer options:

  1. Complete exact-head automation proof (recommended)
    Merge after the required checks validate the changed E2E runner configuration on this head.

Technical review

Best possible solution:

Merge the serial default after exact-head checks confirm the E2E configuration and documentation lanes remain green.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: on current main, CI with no override can select two workers for this non-isolated runner; the branch’s controlled config test covers the corrected default and override behavior.

Is this the best way to solve the issue?

Yes: concurrency belongs in the dedicated E2E configuration that owns this runner, and the patch preserves the documented explicit parallelism path. Direct Vitest type inspection was unavailable locally, so exact-head validation remains important.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 776c19eaaa4b.

Labels

Label changes:

  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored test-infrastructure PR is outside the external-contributor real-behavior-proof gate; its body includes focused after-change test output.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: ⏳ waiting on author: Current PR status label is status: 👀 ready for maintainer look.

Label justifications:

  • P1: The PR addresses release-validation timeouts from concurrent non-isolated gateway E2E files.
  • merge-risk: 🚨 automation: Changing the worker default can affect CI and release-validation execution behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This member-authored test-infrastructure PR is outside the external-contributor real-behavior-proof gate; its body includes focused after-change test output.

Evidence

What I checked:

Likely related people:

  • vincentkoc: Earlier commit 120eb34 established the serialized E2E default that this PR restores. (role: prior implementation author and recent area contributor; confidence: high; commits: 120eb3426a14, ba2ed6a1f205; files: test/vitest/vitest.e2e.config.ts, src/infra/vitest-e2e-config.test.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Keep required exact-head checks green before merge.

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 (3 earlier review cycles)
  • reviewed 2026-08-11T18:51:09.800Z sha 9062b2fe9f7fe4a0c7a61268c82c11fabaae3b87 :: needs changes before merge. :: [P2] Test the config with a controlled worker environment
  • reviewed 2026-08-11T19:04:57.383Z sha bec3796c0ba0f1a9602218e64fd5007eeca61a1a :: needs changes before merge. :: [P2] Load the E2E config under controlled worker environments
  • reviewed 2026-08-11T20:00:36.047Z sha 4d9c013 :: found issues before merge. :: [P2] Document the new worker default

@vincentkoc
vincentkoc force-pushed the fix/e2e-single-worker-default branch from 9062b2f to bec3796 Compare August 11, 2026 18:58
@vincentkoc
vincentkoc force-pushed the fix/e2e-single-worker-default branch from bec3796 to 4d9c013 Compare August 11, 2026 19:09
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 11, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Aug 11, 2026
@vincentkoc
vincentkoc merged commit aa52eba into main Aug 11, 2026
129 checks passed
@vincentkoc
vincentkoc deleted the fix/e2e-single-worker-default branch August 11, 2026 21:01
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to tangtaizong666/openclaw that referenced this pull request Aug 11, 2026
…-prep

* commit 'edb7a1692e58d78ff7e196db39ea8eff297b2e19': (1351 commits)
  fix(telegram): expose live location updates to hooks (openclaw#122185)
  fix(ui): remove the pre-creation session row (openclaw#122259)
  fix(openai): surface failed realtime response outcomes (openclaw#121177)
  fix(logging): publish diagnostics ZIP through staged atomic overwrite (openclaw#122130)
  test(cli): trim duplicate MCP probe process cases (openclaw#122260)
  feat(agents): replay persisted native video (openclaw#122257)
  fix(test): serialize default e2e runner (openclaw#122203)
  fix(ui): always show full assistant responses (openclaw#122207)
  feat(mcp): per-requester OAuth for MCP servers (openclaw#122166)
  fix(ui): preserve focus on composer accessory clicks (openclaw#122243)
  fix(backup): exclude state temp files (openclaw#122250)
  fix(browser): let attached workers exit after CDP use (openclaw#122103)
  test(cli): trim duplicate Claw authoring process cases (openclaw#122248)
  refactor(outbound): inline delivery diagnostics (openclaw#122219)
  refactor: eliminate final wrapper-shadowing hazards (openclaw#122157)
  fix(ui): keep new-session identity anchored (openclaw#122242)
  test(cli): trim duplicate gateway process cases (openclaw#122240)
  fix(media): decode local file URLs safely (openclaw#122192)
  refactor(agents): centralize typed activity event emission (openclaw#122188)
  fix(ui): effort slider matches selected level after model switches (openclaw#122125)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 12, 2026
* fix(test): serialize default e2e runner

* docs(test): document serial e2e default
tomorrowflow pushed a commit to tomorrowflow/openclaw that referenced this pull request Aug 16, 2026
* fix(test): serialize default e2e runner

* docs(test): document serial e2e default

(cherry picked from commit aa52eba)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P1 High-priority user-facing bug, regression, or broken workflow. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. 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