Skip to content

fix(test): prevent concurrent PowerShell completion stalls - #166229

Merged
RomneyDa merged 1 commit into
mainfrom
openclaw/fix-issue-166220-in-openclaw
Oct 6, 2026
Merged

RomneyDa merged 1 commit into
mainfrom
openclaw/fix-issue-166220-in-openclaw

Conversation

@RomneyDa

@RomneyDa RomneyDa commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Closes #166220

What Problem This Solves

Fixes: Full Release Validation can stall PowerShell completion tests when real PowerShell processes from ordinary fast-test files start concurrently on a loaded Linux shard.

User Impact

User impact: no product behavior changes; release validation keeps PowerShell completion coverage without hiding stalls behind retries or longer deadlines.

Why This Change Was Made

The failed shard showed two independent PowerShell runners contending at once: the aliases runner stayed alive without emitting READY, while the visibility runner reached READY and then timed out on a request. Route every completion suite that owns a real PowerShellCompletionRunner through the existing serial CLI-process project. The 15-second startup and per-request budgets remain unchanged.

Evidence

  • Hosted failure annotations: aliases stalled before READY; visibility stalled after READY in the same unit-fast-isolated job.

  • CLI-process owner/config tests: 40/40 passed in 45.46s wall.

  • PowerShell completion owner and siblings: 40 passed, 13 platform skips across 5 files in 35.35s wall; the run selected vitest.cli-process.config.ts.

  • Flake proof: 20/20 clean repeated runs of the two hosted-failing files (aliases and visibility).

  • Owner-cohort proof: 3/3 clean repeated runs of all five PowerShell completion files through the serial CLI-process project.

  • pnpm check:changed passed.

  • git diff --check passed.

  • AutoReview P0/P1: scoped clean.

  • Exact original-shard investigation: recovered run 37502569110 job 112403373286 and confirmed the two failing PowerShell suites shared the 144-file unit-fast-isolated Node shard with OPENCLAW_VITEST_MAX_WORKERS=2.

  • Exact post-fix original-shard replay: 3/3 clean runs of vitest.unit-fast-isolated.config.ts with two workers; each passed 136/136 files and 1,621/1,621 tests in 351.32s, 359.55s, and 315.91s. The transferred PowerShell suites were absent from this shard by design and remain covered by the separate 3/3 serial owner-cohort proof above.

@clawsweeper

clawsweeper Bot commented Oct 6, 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.

@RomneyDa
RomneyDa marked this pull request as ready for review October 6, 2026 17:56
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: passed. Reviewed October 6, 2026, 2:38 PM ET / 18:38 UTC (Revision 3).

ClawSweeper review

What this changes

Routes three PowerShell completion test suites through the existing serial CLI-process project to prevent concurrent shell-process stalls.

Merge readiness

✅ Ready for maintainer review

The prior shard-evidence request is satisfied, and no introduced correctness defect remains. Current main still lacks this routing repair; the related merged PR explicitly leaves PowerShell contention to this PR.

Priority: P2
Reviewed head: af47db9a721ef82100ef3f50b471dcc58dcbf4ae

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused repair with strong repeated execution evidence and no remaining code-review blockers.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.
Evidence reviewed 8 items Verified introduced change: The pinned introduction adds only aliases, general completion, and visibility suites to the existing process-owner list. The verified test-merge comparison produces the same change without removing base-branch work.
Existing serial execution owner: The CLI-process project already sets fileParallelism false, isolated forks, and the shared process-owner include list. Ordinary CLI routing excludes that list, and unit-fast discovery skips owner-routed files; this transfers coverage rather than suppressing it.
Real process boundary and unchanged budgets: Each transferred suite owns a PowerShellCompletionRunner and closes it after its cases. The runner spawns pwsh, waits for READY, sends generated completion scripts, and retains the unchanged 15-second startup and request budgets. All five runner-consuming suites are now in the process-owner list.
Findings None None.
Security None None.

How this fits together

OpenClaw’s test planner assigns suites to Vitest projects. The CLI-process project runs process-owning suites serially, preserving completion coverage while avoiding contention in parallel fast-test shards.

flowchart TD
  A[Completion test suites] --> B[Test ownership list]
  B --> C[Serial CLI-process project]
  B --> D[Exclude from parallel projects]
  C --> E[Real shell processes]
  E --> F[Completion assertions and cleanup]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +3. Total +3 across 1 file.

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

Review metrics

Metric Value Why it matters
Flake validation 20/20 failing-file repetitions; 3/3 original-shard replays; 3/3 serial owner-cohort runs The updated evidence satisfies the prior review’s original-shard requirement while retaining separate proof for transferred coverage.

Technical review

Best possible solution:

Keep all real PowerShell completion suites under the existing serial execution owner while preserving assertions, cleanup, and timeout budgets.

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

Yes, the supplied hosted failure identifies the exact Linux two-worker shard and readiness/request-timeout signatures, and source confirms independent PowerShell processes could run concurrently. This read-only review did not execute that failing setup.

Is this the best way to solve the issue?

Yes, extending the existing process-owner list is a narrow repair that retains coverage and deadlines; the original-shard and serial-cohort evidence supports the transfer.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 10334ec913d7.

Labels

Label changes:

  • add proof: sufficient: Contributor real behavior proof is sufficient. The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • add status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Sufficient (logs): The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.
  • remove rating: 🦐 gold shrimp: Current PR rating is rating: 🐚 platinum hermit, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: 🚀 automerge armed.

Label justifications:

  • P2: This repairs a bounded release-validation scheduling failure without changing product behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 🚀 automerge armed: This PR is in ClawSweeper's automerge lane. Sufficient (logs): The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed test-routing owner is exercised by recorded real PowerShell completion runs through the serial CLI-process project, alongside three clean replays of the original two-worker shard after redistribution. This resolves the prior coverage gap; no stored-data contract changes.

Evidence

What I checked:

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 (2 earlier review cycles)
  • reviewed 2026-10-06T18:02:47.225Z sha af47db9 :: needs changes before merge. :: none
  • reviewed 2026-10-06T18:12:35.031Z sha af47db9 :: needs changes before merge. :: none

@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Added the repository-required repeated flake evidence to the PR body: 20/20 clean runs of the two hosted-failing files and 3/3 clean runs of the five-file serial CLI-process owner cohort. The exact code head remains af47db9.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@RomneyDa RomneyDa added the ci:no-fail-fast Keep all selected CI matrix jobs running after failures on the next PR run. label Oct 6, 2026
@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper automerge

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞🔧
ClawSweeper automerge is enabled.

Draft PRs stay fix-only until GitHub marks them ready for review. Pause with /clawsweeper stop.

Automerge progress:

  • 2026-10-06 18:12:44 UTC review queued af47db9a721e (queued)

@clawsweeper clawsweeper Bot added the clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge label Oct 6, 2026
@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

@clawsweeper re-review

Exact original-shard evidence is now recorded in the PR body: the recovered hosted failure ran both PowerShell suites concurrently in the 144-file unit-fast-isolated shard with two workers. After this transfer, that exact config passed 3/3 fresh runs (136/136 files, 1,621/1,621 tests each; 351.32s, 359.55s, 315.91s), while the moved suites remain covered by 3/3 clean serial owner-cohort runs.

@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 6, 2026
@RomneyDa

RomneyDa commented Oct 6, 2026

Copy link
Copy Markdown
Member Author

Landing via the native inherited-red admin exception. ClawSweeper accepted exact head af47db9a721ef82100ef3f50b471dcc58dcbf4ae with proof: sufficient and no human-review gate after the 3/3 original-shard replay. The active required failure is the pre-existing MCP production audit, unrelated to this test-project routing patch.

@RomneyDa
RomneyDa merged commit 320e52b into main Oct 6, 2026
234 of 278 checks passed
@RomneyDa
RomneyDa deleted the openclaw/fix-issue-166220-in-openclaw branch October 6, 2026 18:40
vincentkoc added a commit that referenced this pull request Oct 6, 2026
* commit 'c39d9b0692dbaafa5b1bfe02514c9f6411ab5546': (30 commits)
  fix(ci): clear MCP audit and service-worker test blockers (#166217)
  test(gateway): wait for steering admission in FIFO fixtures
  fix(llama-cpp): managed setup crashes and loops on macOS below 13.3 (#163358)
  perf(worktrees): avoid full session parsing during GC (#166072)
  fix(update): recover stopped legacy managed services (#166232)
  perf(gateway): stream bounded link preview metadata (#166195)
  perf(diagnostics): release completed Git operation state (#166214)
  chore(deps): update fs-safe to 0.24.1 and clone plugin source captures (#166189)
  feat(clients): adopt worker-local inference placement (#163647)
  test: serialize PowerShell completion process suites (#166229)
  test: stabilize release timing boundaries (#166218)
  refactor(sessions): persist run outcomes only; liveness comes from the run registry (#165733)
  test(gateway): prove mention refresh after config retargeting
  fix(team-reports): keep the missed closed day when catch-up runs after midnight (#165780)
  test(gateway): join WebChat queue admission and drain completion
  fix(logging): reject blank diagnostic stability query fields (#145532)
  fix(agents): report unparseable serialized edit arguments (#163577)
  improve(anthropic): log Claude Code version probe failures (#157697)
  fix(agents): clarify prompt-size provider failures (#159712)
  fix(memory): re-throw non-ENOENT/ENOTDIR errors in root memory file lookup (#107921)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
NerQuiLes pushed a commit to Xtampa-AI/openclaw that referenced this pull request Oct 11, 2026
Audit all 253 September-only commits against da0cbcc. Port only
applicable fixes and final companions, preserving October owners and
shipped upgrade contracts. Exclude September-specific waivers, schema
rollback, dependency changes, and credential-absence pass conditions.

Adapt retained ACP archive receipts without reopening retired custody;
retain SDK1.30.1 issuer fencing and explicit re-registration; exclude
standalone worker copies from beta.2 updater compatibility bridges.
Report settled Doctor release failures before the no-config early return.

Sources below are whole backports or scoped repair selections:

fix(discord): keep health inspection from blocking Gateway connections (openclaw#166736)
Source-commit: dc26366

fix: avoid foreign-listener race in Gateway acquisition proof (openclaw#166883)
Source-commit: bd0b97d

fix(ci): admit workspace package tests in Windows replay (openclaw#166895)
Source-commit: 9bc88a6

fix(release): restore beta.2 updater inventory and Podman control (openclaw#166872)
Source-commit: e203c64

fix(copilot): plugin tool calls fail from the second turn of a session (openclaw#164598)
Source-commit: c6e5ae8

fix(test): await WhatsApp inbound drain (openclaw#165842)
Source-commit: 05170cd

fix(qa-lab): keep SUT CLI in isolated launcher
Source-commit: 6681bcd

test(qa-lab): assert resolved companion CLI cwd
Source-commit: a60b458

fix(release): accept candidate-owned child evidence (openclaw#165357)
Source-commit: 500c95a

fix(acp): migrate metadata from retained sessions
Source-commit: 16398dc

fix(release): isolate first-hop service containment (openclaw#164898)
Source-commit: 85124fe

fix(release): isolate upgrade survivor scenarios (openclaw#165007)
Source-commit: aad828f

test(release): expect isolated survivor scenarios (openclaw#165009)
Source-commit: 02e7f91

fix(release): split restart auth validation (openclaw#165048)
Source-commit: 6160d9f

test: serialize PowerShell completion process suites (openclaw#166229)
Source-commit: 320e52b

fix(update): settle only this Doctor's commands in managed custody (openclaw#164868)
Source-commit: bdb44e2

fix(claude-cli): replies hang until the run times out when a background agent runs Bash (openclaw#165596)
Source-commit: 889611b

fix(whatsapp): synchronize shutdown test with durable admission (openclaw#166531)
Source-commit: 1f576e4

fix: prevent heartbeat live replies from abbreviating markers (openclaw#166777)
Source-commit: c4ed37e

fix(ci): keep full release validation within measured budgets (openclaw#166774)
Source-commit: 471f950

improve(ci): reuse Watch cache and expose shared scan build progress (openclaw#166498)
Source-commit: 66d898f

fix(e2e): normalize registry helper image modes (openclaw#163188)
Source-commit: 1a09bec

fix: MiniMax live validation misses Code Mode file reads (openclaw#163619)
Source-commit: fc23bc8

fix(test): read canonical ACP upgrade metadata
Source-commit: 46c8dd2

fix(qa): remove unavailable Telegram emoji fixture (openclaw#164956)
Source-commit: e785c56

fix(release): reconcile full validation regressions (openclaw#166200)
Source-commit: a3e349e

fix(release): unblock stable validation evidence (openclaw#166315)
Source-commit: 5ac0f82

fix(release): unblock 2026.9.9 full qualification (openclaw#166341)
Source-commit: 8aa6d7c

test(irc): await owned monitor signals (openclaw#163180)
Source-commit: 429ea8c

fix(release): unblock 2026.9.9 full validation (round 4) (openclaw#166485)
Source-commit: ccb390b

fix(release): repair Doctor teardown and FRV evidence recovery
Source-commit: 5d7fa8e

fix(release): bound FRV job reads and normalize ghost evidence
Source-commit: 1854d41

test(release): align priority fixture with bounded job pages
Source-commit: 4fd4fcc

fix(test): keep MCP validation connected after automatic pairing approval (openclaw#166849)
Source-commit: 0979efd

fix(release): address 2026.9.9 validation failures and retain diagnostics (openclaw#166962)
Source-commit: a024875

fix(release): repair fleet and CLI validation fixtures (openclaw#166977)
Source-commit: b899f42

fix: keep 2026.9.9 upgrades on state schema 19 (openclaw#166959)
Source-commit: bcfc888

fix(ui): keep passive chat viewers following incoming turns
Source-commit: 6d9689d

fix(doctor): commit transcript archive migration progress per batch and honor interruption (openclaw#165837)
Source-commit: 3a085ea

fix(doctor): restore release repair settlement
Source-commit: fab3a66

fix(release): reconcile FRV backports
Source-commit: 0c01cc6

fix(ui): refresh end geometry during interaction (openclaw#166239)
Source-commit: 5b71763

fix(ui): preserve follow intent across content growth (openclaw#166258)
Source-commit: ffcdd4d

fix(ui): gate content follow on height changes (openclaw#166301)
Source-commit: 4964263

fix(release): preserve gateway fixture close callback (openclaw#166348)
Source-commit: 64ad20a

test(ui): await collaborator smooth follow (openclaw#166285)
Source-commit: 90abf6a

Co-authored-by: Eric Curtin <[email protected]>
Co-authored-by: Ayaan Zaidi <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: Abdel Gomez-Perez <[email protected]>
Co-authored-by: Patrick Erichsen <[email protected]>
Co-authored-by: Vincent Koc <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:no-fail-fast Keep all selected CI matrix jobs running after failures on the next PR run. clawsweeper:automerge Maintainer opted this PR into bounded ClawSweeper-reviewed automerge P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 🚀 automerge armed This PR is in ClawSweeper's automerge lane.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI flake: PowerShell completion runner fails readiness on Linux shard

1 participant