Repository navigation
fix(e2e): stop Parallels 27.1 Windows command failures - #189082
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 extends the existing digest-qualified Parallels SDK transport to Windows guest commands on Parallels Desktop 27.1.0. Example: A Windows 11 smoke lane stages PowerShell on Parallels Desktop 27.1.0.
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it addresses a documented Windows validation failure that remains on main, and review found no actionable introduced defect. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherThe Parallels test harness converts smoke-runner commands into guest process execution and returns stdout, stderr, and exit status to phase tracking. flowchart LR
A[Windows smoke and update lanes] --> B[Guest transport]
B --> C[Shared invocation selector]
C --> D[Digest qualified SDK client]
C --> E[Ordinary prlctl]
D --> F[Windows guest process]
E --> F
F --> G[Output and phase result]
Technical reviewBest possible solution: Keep Windows execution in the existing digest-qualified SDK owner while preserving caller identity, raw arguments, streams, bounded cleanup, and failure status. Do we have a high-confidence way to reproduce the issue? The maintainer reports reproduction through the Windows smoke entry point, corroborated by the prior merged repair's remaining failures; this read-only review did not execute Parallels or independently reproduce the vendor failure. Is this the best way to solve the issue? The patch repairs the transport boundary using the existing owner, preserves the qualified macOS behavior and ordinary CLI fallback, and adds focused Windows argument and high-exit-code coverage without unnecessary production machinery. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 3c0c838ecdaa. Provenance checked
TestingProof path: unit tests only. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +26, Docs +2, Other +29. Total +57 across 8 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
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 31, 2026, 2:11 AM ET / 06:11 UTC. |
|
@clawsweeper re-review The final head and PR evidence are current. Fresh Windows install and the installed CLI packaged-update flow passed, including Gateway RPC and real model replies. The dev source-update activation timeout is recorded separately. |
|
🦞👀 Re-review progress:
|
|
Merged via squash.
|
* fix(e2e): stabilize Parallels 27.1 Windows guest execution * fix(e2e): reuse Windows staging readiness before launch * fix(e2e): prepare Windows Git fallback only when needed * test(e2e): avoid shadowing PowerShell helper * fix(e2e): retry Windows PowerShell initialization failures
What Problem This Solves
Fixes intermittent Parallels Windows 11 command failures that stop fresh-install and same-guest update smoke tests during staging, onboarding, and update polling.
User Impact
Operators can exercise Windows on the verified Parallels Desktop 27.1.0 installation. Other binary versions keep the existing CLI transport.
Why This Change Was Made
The installed CLI frees a guest-login job before reading its result. Reuse the existing digest-qualified SDK client for Windows, retain that handle through extraction, and preserve Windows program/argument boundaries and the version-specific exit-code parameter. Native Windows failure codes above 255 map to host failure instead of wrapping to success. Transport selection happens before execution; SDK failures never replay through the CLI.
Cold-boot PowerShell can fail with native
0xc0000142even after a successful readiness probe. The SDK now reports that native code. The host execution owner retries only bounded, encoded PowerShell invocations with that exact initialization failure, preserving stdin and one absolute deadline. Other errors and command forms are not replayed. Microsoft documents the code as DLL initialization failure.Successful script staging supplies first-launch readiness proof. Skip the redundant readiness callback between staging and launch; retain it for write recovery and subsequent attempts. The callback-configured real fixture passes; the exact teardown mechanism behind the earlier empty launch failure remains unproven.
Probe installed guest Git before preparing MinGit, avoiding an unnecessary download on prepared snapshots. Both lanes retain the verified fallback when Git is absent.
Related: #188988.
Evidence
8d1932662cc192c3dfe63b22a7109d9e01fc09ebin 132 seconds.00c360b410b9f23befb11cf925d950b233689466to8d1932662cc192c3dfe63b22a7109d9e01fc09ebat P0–P2: no findings. A separate bounded independent review also found no remaining defects.8d1932662cc192c3dfe63b22a7109d9e01fc09eb: core install (247 seconds), exact build verification, Codex companion install (124 seconds), onboarding, Gateway RPC health, and a real model reply. The bounded startup retry recovered the actual native initialization failure during this run.update repairreconciled the abandoned driver and exited 0, with conservative Windows process-census retention warnings.update --channel stable --tag <served exact-head candidate> --yes --json --no-restart --timeout 1200. It completed with nativeok/ journalsucceededin 320 seconds (346-second host phase). Package installation, validation, global update and post-update verification passed; exact build and channel state were verified. Post-update managed Gateway restart (88 seconds), required RPC health (17 seconds), and a fresh realopenai/gpt-5.4model turn returning exactOK(28 seconds) all passed. The Gateway was stopped before the isolated model turn.openclaw/ci-gate, passed; no failed checks.