Repository navigation
fix(test): serialize default e2e runner - #122203
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
Codex review: needs maintainer review before merge. Reviewed August 11, 2026, 4:56 PM ET / 20:56 UTC. ClawSweeper reviewWhat this changesThe 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 provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessThis 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 Review scores
Verification
How this fits togetherGateway 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]
Before merge
Agent review detailsSecurityNone. PR surfaceTests +13, Docs 0. Total +13 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
9062b2f to
bec3796
Compare
bec3796 to
4d9c013
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Merged via squash.
|
…-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) ...
* fix(test): serialize default e2e runner * docs(test): document serial e2e default
* fix(test): serialize default e2e runner * docs(test): document serial e2e default (cherry picked from commit aa52eba)
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 in330ba1. Explicit positiveOPENCLAW_E2E_WORKERSoverrides 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.tsOPENCLAW_E2E_WORKERS=4 node scripts/run-vitest.mjs src/infra/vitest-e2e-config.test.tspnpm docs:check-mdxnode scripts/check-changed.mjs -- docs/help/testing.md docs/reference/test.mdpnpm format test/vitest/vitest.e2e.config.ts src/infra/vitest-e2e-config.test.tspnpm format docs/help/testing.md docs/reference/test.mdgit diff --check.agents/skills/autoreview/scripts/autoreview --mode branch --base origin/mainba2ed6a1f205fac74038092b01eebecdf2034e1b+0/-0+49/-36+3/-3AI-assisted implementation; the exact diff and focused proof were reviewed before publication.