Skip to content

fix(parallels): main install and update smoke cannot complete - #130658

Merged
steipete merged 4 commits into
mainfrom
codex/parallels-candidate-lifecycle-20260827
Aug 27, 2026
Merged

steipete merged 4 commits into
mainfrom
codex/parallels-candidate-lifecycle-20260827

Conversation

@steipete

@steipete steipete commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where maintainers running Parallels smoke tests against unpublished main could not complete fresh installation or the installed CLI's update flow. Required official plugins were missing from the candidate package set, the candidate registry disappeared before plugin provisioning finished, and local agent checks ran while a Gateway still owned the same state directory. Windows preparation also accepted an unsupported Node installation and the aggregate could not select a renamed Windows VM.

Why This Change Was Made

Use the existing canonical prepublish artifact creator and provider companion-package requirements, then serve core and matching plugins through one shared artifact-server lifecycle. Carry registry settings through guest command environments until candidate verification finishes, clearing them when restoring a baseline; do not persist npmrc settings or relax clean-source/hash checks.

The harness now releases the Gateway it started before testing the explicitly local agent. Managed services use their existing stop command; manually started POSIX gateways are signaled and awaited, including Darwin's padded process title. The product's state ownership and unknown-service guards are unchanged. Windows readiness now uses the configured Gateway target and requires the authoritative RPC result, rather than overriding the URL without credentials or accepting socket connectivity alone. Windows preparation reuses the package's Node engine validator, waits for an in-progress snapshot restore, and the aggregate accepts --windows-vm throughout baseline, update, and fresh-target execution.

User Impact

Maintainer test tooling only. No product runtime, public configuration, persistence, provider routing, or release publication changes. Removes duplicate package-server ownership and direct guest command paths. Tooling LOC: +298/-204 (net +94); tests: +371/-64 (net +307). Growth implements the missing package-set and process-lifecycle boundaries plus explicit Windows VM selection.

Evidence

  • Product under test: main 4b287caac326dd3a8b081754b61421cdb7120b98, resolved at the start of the matrix; core and @openclaw/codex both version 2026.8.1. Baseline: published 2026.7.1-2.

  • Captured pre-fix failures: real npm 404 for the missing matching Codex plugin; post-update registry loss; Node 24.14 rejected by package preinstall; snapshot state still restoring; unknown --windows-vm; local-agent state-lock refusal after successful Gateway RPC; Darwin process-title padding.

  • All 185 tests across eight Parallels/prepublish suites pass. node scripts/check-changed.mjs for all changed files passes, including scripts/root-test type checks and scoped lint. Independent Codex autoreview reported no actionable blockers at its default P0 threshold. A subsequently discovered stdin-import failure is fixed at the canonical artifact creator entrypoint; its 13-test suite (including stdin and symlink CLI checks), changed-file gate, and independent review also pass.

  • Real same-state macOS and Linux reproductions: Gateway RPC passed, the original local turn failed on state ownership, the repaired shutdown completed, and the same-state live model turn returned OK.

  • macOS stable-to-dev internal update reached the pinned main commit, with onboarding, Gateway RPC, and dashboard HTML/assets passing; its initial final-agent failure was the lifecycle reproduction above. Update phase: 1,033.992 seconds.

  • Corrected macOS and Linux fresh-baseline → internal updater → fresh-target flows all pass with live OK turns: macOS 693.343 seconds, Linux 588.4 seconds. Windows has passed its baseline and real internal update, including authenticated RPC and a live local turn. Cold fresh candidate passed in 510.5 seconds, and a same-state configured RPC canary verified authenticated operator.read access. The final official harness rerun on that guest also passed RPC, managed shutdown, and live local OK in 417.9 seconds; it deliberately skipped snapshot restore to exercise the revised check without repeating already-proven cold setup.

  • The complete default package-and-serve path passed in a clean isolated checkout at 88da14d72b4d7f307bb8c0f790978707bc783252: runtime and Control UI builds, automatic provider companion selection, canonical companion build, real HTTP metadata and exact tarball hashes, both endpoint shutdown, and clean Git status before/after. This proof is pinned to that source commit; later changes only remove unused exports and repair Windows readiness.

  • CI caught two unused server re-exports; they were removed and the dependency gate passed on the next run. The Windows RPC follow-up passed an independent review and changed-file gates; the complete eight-suite run was repeated on the final source and passed all 185 tests in 27.38 seconds.

Related test fixture repair: #130638. Headless macOS service control intentionally cannot establish launchd ownership without a GUI session; this change preserves that fail-closed policy and manages only the harness-owned manual gateway.

Follow-up: separate immutable tooling SHA from artifact SHA in prepared-tarball summaries. buildCommonSmokeSummary currently falls back to checkout HEAD when the prepared artifact lacks cached build metadata, so a concurrent commit can change the summary identity after code was loaded. This run records the loaded tooling SHA, packaged build-info SHA, hashes, and rerun boundaries separately; no success claim relies on that fallback.

Final PR head d97098ec4b8507bb98900a4512f2fdabea7fc949: exact-head CI passed. All 15 changed files match the locally tested source; the final complete-branch independent review is clean at the configured P0 threshold.

Diagnostics follow-up: retain a sanitized guest npm error-log tail before combined-mode snapshot reset. PowerShell can stop on npm's first native stderr line, and the next leg can discard the fuller guest log. The actual old-Node failure was preserved by a fresh-only reproduction; general error-log retention is separate from the repaired package/runtime prerequisites.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: L maintainer Maintainer-authored PR labels Aug 27, 2026
@steipete
steipete force-pushed the codex/parallels-candidate-lifecycle-20260827 branch from 3098774 to e621857 Compare August 27, 2026 03:44
@steipete
steipete marked this pull request as ready for review August 27, 2026 03:45
@steipete

Copy link
Copy Markdown
Contributor Author

Final verification is for PR head d97098ec4b8507bb98900a4512f2fdabea7fc949; its 15 changed files exactly match the locally tested source. Exact-head CI is green. All 185 focused tests across eight suites pass, changed-file gates pass, and independent per-change plus whole-branch Codex review reported no actionable findings at the configured P0 threshold.

The product matrix is pinned to main 4b287caac326dd3a8b081754b61421cdb7120b98 (latest when the task began), version 2026.8.1, with matching @openclaw/[email protected]; published baseline 2026.7.1-2. These are real guest installs and the installed CLI's updater, not package-swap substitutes.

  • macOS: fresh baseline, internal update, and fresh candidate all pass with live OK replies; 693.343 seconds total. Dashboard HTML/assets passed; no Safari GUI claim in the headless session.
  • Linux: all three legs pass with live OK replies; 588.4 seconds total.
  • Windows: baseline and real internal update pass with RPC and live OK; the updater reports before 2026.7.1-2, after 2026.8.1, and success. Cold fresh candidate passes in 510.5 seconds, with an additional actual configured-status canary proving rpc.ok=false before startup and rpc.ok=true, operator.read, and the exact candidate build after startup. That cold run had loaded the intermediate URL-only readiness check, so the final official harness was also rerun on the same guest to prove its authoritative RPC parser and stop/local-turn sequence. That final run passed in 417.9 seconds (slowest phase: install, 207.27 seconds), including authenticated read RPC, managed gateway shutdown, and final visible/raw OK.

Original failures were captured before repair: missing unpublished companion package, candidate registry lifetime, unsupported Windows Node, snapshot still restoring, hardcoded Windows VM selection, competing gateway/local state ownership, and URL override without explicit credentials. Product authentication, plugin-version checks, and state ownership remain unchanged. The old Windows preparation baseline was replaced with a verified supported-Node clean snapshot; original snapshots were preserved.

The full automatic build/package/serve path independently passed in a clean isolated checkout at 88da14d72b4d7f307bb8c0f790978707bc783252: runtime/UI build, automatic companion selection/build, HTTP metadata and exact tarball bytes/hashes, both endpoint shutdown, and clean source before/after. Later edits only removed unused exports and changed Windows readiness; this packaging proof is not mislabeled as a final-head package build.

Tested VM core SHA-256: f369b03a06e1a10e543ae65a53919d165fff5ebaabc107098b4c3a19d13051a6; companion SHA-256: ea7721c5f0d3010068834b4405ba69d9523f011f2d3f383d97e6974fbc9675e5. Full automatic-pack core SHA-256: f54b8dfb8ffa2838d1d920414d78ea00d5192b3bd086a57744b8431d389a98f4.

CI initially found two unused common-module exports; both were deleted and the dependency gate rerun successfully. Final delta: tooling +298/-204 (net +94), tests/test support +371/-64 (net +307), product runtime zero. Added tooling owns the complete package set and command/process lifecycle; duplicate server and transport paths were removed.

ClawSweeper review startup was observed on this exact head. The final comments/reviews recheck contains no published actionable findings or Rank-up moves. The prepared-tarball summary identity follow-up is recorded in the PR body; this evidence distinguishes loaded tooling source from package build metadata. All three guests are restored to their clean baselines and stopped. Temporary host credential handoff files were removed; task text was scanned and contained no exact provider-key copies. The PR body also records the separate npm error-log retention follow-up.

@steipete
steipete merged commit 71d4a8c into main Aug 27, 2026
133 checks passed
@steipete
steipete deleted the codex/parallels-candidate-lifecycle-20260827 branch August 27, 2026 04:24
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Aug 27, 2026
…-retirement-v13

* origin/main: (243 commits)
  fix: preserve Gateway error reasons in text logs (#130645)
  refactor(video): deduplicate generation contracts (#130635)
  fix(agents): preserve direct-message sender identity (#124548)
  fix(agents): preserve silent reply after settled tools (#130675)
  fix(talk): preserve replacement speech when an old utterance is canceled (#130687)
  fix(browser): preserve literal names and formatter-owned snapshot refs (#130599)
  fix(auth): reset only the profile replaced by a successful login (#124014)
  fix: bind session creation to admitted Gateway (#130686)
  refactor(qa-lab): reuse model reference splitter (#130317)
  docs(gateway): clarify independent HTTP endpoint switches (#130690)
  fix(ui): Control UI smooth scrolling ignores the reduced-motion preference (#130428)
  refactor(lmstudio): remove unreachable catalog merge (#130689)
  fix(crabbox): restore cloud machine CPU and RAM (#130684)
  fix(secrets): compare proxy bearer tokens directly (#127054)
  fix(matrix): show recovery key availability in text status (#128051)
  fix(ios): restore approval settings navigation and remove duplicate shell state (#130651)
  refactor(agents): use fixed tool-loop defaults directly (#130681)
  refactor(qa-lab): share process tree metric reader (#130419)
  refactor(models): simplify prepared owner access (#130683)
  fix(parallels): main install and update smoke cannot complete (#130658)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 27, 2026
…aw#130658)

* fix(parallels): restore candidate install and update smoke coverage

* fix(scripts): allow prepublish artifact imports from stdin

* refactor(parallels): remove obsolete server re-exports

* fix(parallels): require configured Windows gateway RPC readiness
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR scripts Repository scripts size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant