Repository navigation
fix(setup): retry fresh WSL root readiness checks - #1107
Conversation
Co-authored-by: Copilot App <[email protected]>
|
Codex review: needs real behavior proof before merge. Reviewed August 5, 2026, 8:56 PM ET / August 6, 2026, 00:56 UTC. ClawSweeper reviewWhat this changesThe PR retries a newly created WSL distro’s root-readiness command with 30-, 60-, and 90-second bounds and adds regression tests for recovery and exhaustion. Regression provenancePossible regression — probable (failure trace; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof is added - 3 items remain Keep open. Current main still performs one 30-second fresh-distro root probe, while this PR adds a bounded retry repair with focused coverage; however, it lacks the repository-required current-head real fresh-WSL proof. Priority: P2 Review scores
Verification
How this fits togetherThe setup engine provisions an app-owned WSL gateway distro and verifies it before later configuration and gateway setup steps run. This root probe determines whether setup continues or removes the newly created distro. flowchart LR
A[Fresh WSL installation] --> B[WSL version check]
B --> C[Root readiness probe]
C --> D{Probe ready?}
D -->|Yes| E[Continue gateway setup]
D -->|Retry remains| C
D -->|Retries exhausted| F[Clean up distro]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Attach redacted current-head fresh-WSL runtime evidence that a root-readiness retry recovers without unregistering the valid distro, then merge the focused repair. Do we have a high-confidence way to reproduce the issue? Yes in source: current main immediately rolls back after one failed root probe, and the PR’s regression tests model a first-attempt timeout followed by recovery. A current-head live fresh-WSL reproduction has not been supplied. Is this the best way to solve the issue? Yes, conditionally: bounded retries in the existing verification owner are a narrow maintainable repair, but a real WSL run must confirm the intended recovery before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ad472243bcb8. LabelsLabel 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
History |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
What Problem This Solves
Fresh WSL installs can be registered successfully while WSL is still initializing. SetupEngine previously ran the post-install root readiness probe once, so a transient timeout caused setup to unregister a valid distro and fail before E2E scenarios executed.
Observed example:
mainrun 30689734002: WSL2 version discovery succeeded, then the first root probe timed out after 30 seconds and setup rolled back the valid distro.mainnow separately includes the 60-second WSL version-discovery fix from #1106. This PR preserves that landed design and addresses the remaining root-probe failure mode.Change
Validation
.\build.ps1: passed after merging currentmaindotnet test .\tests\OpenClaw.Shared.Tests\OpenClaw.Shared.Tests.csproj --no-restore: 3,382 passed, 32 skipped, 0 faileddotnet test .\tests\OpenClaw.Tray.Tests\OpenClaw.Tray.Tests.csproj --no-restore: 2,053 passed, 0 skipped, 0 faileddotnet test .\tests\OpenClaw.SetupEngine.Tests\OpenClaw.SetupEngine.Tests.csproj --no-restore: 706 passed, 0 skipped, 0 failedReal behavior proof
Review
main's version-discovery design remains intact and the root retry remains bounded. Its timeout-sequence test recommendation was applied.Security Impact