Repository navigation
fix(ci): stop stalled Windows E2E jobs promptly - #1785
Conversation
|
🦞👀 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. What this changesThis PR adds a configurable E2E hang watchdog and shorter Windows CI deadlines while retaining diagnostic uploads. Example: The setup/connect fixture stops progressing during wsl.exe --install.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR addresses a documented CI stall, and main lacks its E2E watchdog. No actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGitHub Actions invokes the shared PowerShell E2E runner with a shard filter; the runner launches VSTest, propagates failures, and checks TRX proof results before Actions uploads diagnostics. flowchart TD
A[GitHub Actions E2E lane] --> B[Shared PowerShell runner]
B --> C[VSTest hang watchdog]
C --> D[Windows E2E fixture and tests]
D --> E[Exit status and TRX]
E --> F[Proof checks and artifact upload]
Technical reviewBest possible solution: Retain the focused CI watchdog change while preserving production command-output draining and existing E2E proof enforcement. Do we have a high-confidence way to reproduce the issue? Main's shared E2E runner has no VSTest hang watchdog, and the linked hosted job confirms an unfinished test step through cancellation; the underlying WSL stall is unconfirmed. Is this the best way to solve the issue? The small CI-only guard fits the stated operational problem and existing watchdog pattern without changing intentional production output draining. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against f39d4f0c136e. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 20, 2026, 2:56 PM ET / 18:56 UTC. |
What Problem This Solves
Fixes: Windows E2E CI can remain stuck in fixture provisioning for tens of minutes without failing the test run.
The reported setup/connect job stopped reporting progress at
wsl.exe --installand was eventually cancelled after 55 minutes. Comparable healthy installs completed in 28 and 48 seconds.User Impact
Developers get a failed E2E run promptly when a fixture or test stalls, instead of waiting for the workflow's long cancellation path. No shipped application behavior changes.
Why This Change Was Made
This is a symptom guard. The inherited-output-pipe timeout escape was reproduced independently, but the hosted process tree was unavailable, so this PR does not claim to fix the underlying WSL stall or change normal production command-output draining. Filters, test inventory, Gateway baseline recording, and TRX/proof enforcement stay intact.
Required proof pools
none: CI harness/deadline changes only. No changes to product WSL provisioning, MXC containment, node/MCP contracts, or UI behavior. Hosted Windows E2E remains selected for this infrastructure change.Validation
Current-head hosted CI, attempt 2: passed, including the CI Gate, Shared/Tray suites, all three WSL Latest E2E lanes, UI/accessibility, and packaging checks.
The first attempt's UI test host crashed after 139 passing cases and no failed assertions. The same class of crash also occurred on main. One targeted UI-lane rerun passed on the unchanged head
0df42dd0; no source repair was made for this intermittent native-host crash.pwsh -NoProfile -File ./scripts/test-ci-workflow-contract.ps1: passed on Windows x64, including all 5 new E2E harness cases and existing contracts (24.00s)../build.ps1: passed in the isolated Windows checkout (201.77s).Required local unit-suite rerun, Windows 11 ARM64 VM with x64 .NET SDK 10.0.402:
dotnet test ./tests/OpenClaw.Shared.Tests/OpenClaw.Shared.Tests.csproj --no-restoredotnet test ./tests/OpenClaw.Tray.Tests/OpenClaw.Tray.Tests.csproj --no-restoreLocal closeout is not all green. Shared failures were
Interactive_ConcurrentDisconnectsLeaveServerUsable(fixture cleanupObjectDisposedException) andAuthenticatedSigningIdentity_ComesFromConnectNotOptionalHelloEcho(spoofEcho: False, useManagedWebSocket: False)(timeout). Tray failures were the two app-local VC++ runtime floor guards: this VM has no Visual Studio C++ Redistributable Update component, so builds copy fallback 14.29 instead of the required 14.38.33130 or newer. These Shared/Tray suites passed in hosted CI. The earlier native ARM64 Shared receipt separately reported 4,484 passed and 37 skipped.Auto Review: clean through P3 for the unchanged three-file change.
git diff --check: passed. No new repository code changes in this CI recovery.Real behavior proof
Same VSTest/xUnit packages as the E2E project (
Microsoft.NET.Test.Sdk18.6.0, xUnit 2.9.3, adapter 3.1.5), with a fixture whoseInitializeAsyncnever completes:noneInvoke-CiE2e.ps1wrapper, healthy case, timeout 3s (Windows 11 ARM64 VM, x64 .NET SDK 10.0.402 and PowerShell 7.6.7)Windows proof completion marker:
CI1785_WINDOWS_WATCHDOG_PROOF_PASSED.The hung fixture was entered before any case completed. The portable run did not emit a sequence file before a case started; the aborted TRX and console diagnostics remained available. Hosted setup/connect, revocation recovery, and network recovery lanes all passed with the new guard enabled, including their normal artifact uploads.
Not verified / blocked
always()upload contracts passed.Review
Independent Auto Review found no accepted/actionable P0-P3 findings. The focused runtime probe complements static review and mocked argument/exit contracts.
Security and compatibility
No product permissions, credentials, configuration, network calls, or migration changes. Hang diagnostics explicitly disable process-memory dumps. Existing test output and diagnostic upload behavior are retained.