Skip to content

fix(e2e): stop Parallels 27.1 Windows command failures - #189082

Merged
vincentkoc merged 5 commits into
mainfrom
test/windows11-live-retry-20261031
Oct 31, 2026
Merged

vincentkoc merged 5 commits into
mainfrom
test/windows11-live-retry-20261031

Conversation

@vincentkoc

@vincentkoc vincentkoc commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

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 0xc0000142 even 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

  • Original failures reproduced through the full Windows smoke entry point.
  • Real Windows SDK probes pass binary stdin/stdout, stderr, exit 7, current-user versus privileged identity, and native exit 256 mapped to host 255.
  • Affected transport, smoke/model, and update suites: 187 Vitest cases passed; 22 Python SDK contracts also passed through the transport suite. Targeted scripts typecheck and scoped source/test lint passed.
  • Startup-code and staging-readiness regressions fail on their preceding revisions and pass with the repair. Tests cover bounded retries, input preservation, one deadline, attempt exhaustion, and non-retry cases.
  • Cold-VM fixture: eight calls produced exactly eight effects with stdin preserved and cleanup successful. No initialization failure occurred during this fixture.
  • Full source build passed on 8d1932662cc192c3dfe63b22a7109d9e01fc09eb in 132 seconds.
  • Local autoreview covered the complete committed range from 00c360b410b9f23befb11cf925d950b233689466 to 8d1932662cc192c3dfe63b22a7109d9e01fc09eb at P0–P2: no findings. A separate bounded independent review also found no remaining defects.
  • Earlier source fresh install and version verification passed. Its companion download hit the prepared proxy's 120-second upstream limit; the exact transfer failure was independently reproduced. The pinned Windows ARM64 archive was downloaded once and verified against registry integrity for local serving.
  • Full cold-snapshot fresh lane passed on 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.
  • Upgrade precheck passed. Git clone completed in 426 seconds; runtime retention completed in 313 seconds (40,525 links and 1,715 copies). The host helper reached its active 18-minute allowance during dependency installation. Native update repair reconciled the abandoned driver and exited 0, with conservative Windows process-census retention warnings.
  • A larger-budget dev replay reused the downloaded source: retention passed in 273 seconds, dependency installation in 997 seconds, and source build in 940 seconds. The updater then hit its own 2,400-second activation budget during candidate Doctor. Native history recorded a terminal failed update; the original package stayed installed. This dev-update timing failure remains unresolved and is not claimed fixed by the transport repairs.
  • The documented packaged-update alternative called the installed CLI with update --channel stable --tag <served exact-head candidate> --yes --json --no-restart --timeout 1200. It completed with native ok / journal succeeded in 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 real openai/gpt-5.4 model turn returning exact OK (28 seconds) all passed. The Gateway was stopped before the isolated model turn.
  • Exact-head required CI, including openclaw/ci-gate, passed; no failed checks.

@vincentkoc vincentkoc self-assigned this Oct 31, 2026
@clawsweeper

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

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: S labels Oct 31, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review October 31, 2026 05:55
@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. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@clawsweeper

clawsweeper Bot commented Oct 31, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This 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.

  • Before: The CLI can abort with PrlJob_GetResult or PrlJob_GetRetCode: Invalid argument.
  • After: The qualified SDK transport retains the login job through result extraction and preserves Windows arguments and failure status.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A focused, source-supported transport repair with clean exact-head CI and no actionable findings; reported native results lack inspectable runtime evidence.
Proof confidence 🦐 gold shrimp (3/6) This maintainer-authored PR is outside the ordinary contributor proof gate; its body reports real Windows 11 SDK probes, but supplies no inspectable runtime capture and explicitly leaves the complete smoke rerun pending.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Windows Parallels smoke validation aborts during staging, onboarding, or update polling despite a running guest.
Reason: Maintainer authorship establishes direction, and the bounded transport repair restores useful validation without changing OpenClaw runtime defaults; the new --windows flag is internal harness plumbing.

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
Reviewed head: 8e29f6556fc10eb95a73339694be5affe08851ae

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Inspectable Windows transport output is absent, the full fresh-install and same-guest Gateway/live-model rerun remains pending, and base-red proof is stated only for the high-exit-code regression.
Agent review details

How this fits together

The 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]
Loading

Technical review

Best 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

  • Qualified SDK selection and retained-job execution keeps the original intent (f8628f5: Avoid the installed CLI's premature guest-login job release while preserving identity, streams, exit status, and no-replay behavior.)
  • Version qualification and UUID lookup keeps the original intent (ba8a0e9: Qualify another installed CLI digest and preserve CLI-compatible UUID/name lookup without retrying execution.)
  • Windows staging and read recovery keeps the original intent (00c360b: Recover known result failures only for reads and idempotent staging while refusing mutating command replay.)

Testing

Proof path: unit tests only.

Security

None.

Evidence

What I checked:

Likely related people:

  • Vincent Koc: Raw commit 00c360b adds scripts/e2e/parallels/guest-transports.ts:880 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 00c360b410b9; files: scripts/e2e/parallels/guest-transports.ts)
  • Peter Steinberger: Raw commit f8628f5 adds scripts/e2e/parallels/macos-exec.ts:1 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f8628f535f2e; files: scripts/e2e/parallels/macos-exec.ts)

PR surface

Tests +26, Docs +2, Other +29. Total +57 across 8 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 65 39 +26
Docs 1 8 6 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 5 54 25 +29
Total 8 127 70 +57

Labels

Label changes:

  • add P2: The failure interrupts Windows maintainer validation with a limited test-infrastructure blast radius.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: The failure interrupts Windows maintainer validation with a limited test-infrastructure blast radius.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Attach redacted Windows output demonstrating transport selection, argument handling, guest identities, streams, and nonzero status; remove keys, IP addresses, and non-public endpoints.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed October 31, 2026, 2:11 AM ET / 06:11 UTC.

@vincentkoc

Copy link
Copy Markdown
Member Author

@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.

@clawsweeper

clawsweeper Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 31, 2026
@vincentkoc
vincentkoc merged commit 983c331 into main Oct 31, 2026
124 checks passed
@vincentkoc
vincentkoc deleted the test/windows11-live-retry-20261031 branch October 31, 2026 09:13
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 1, 2026
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: M status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant