Repository navigation
fix(parallels): main install and update smoke cannot complete - #130658
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
3098774 to
e621857
Compare
|
Final verification is for PR head The product matrix is pinned to main
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 Tested VM core SHA-256: 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. |
|
Merged via squash.
|
…-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) ...
…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
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-vmthroughout 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/codexboth version2026.8.1. Baseline: published2026.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.mjsfor 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
OKturns: 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.
buildCommonSmokeSummarycurrently 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.