openclaw-parallels-smoke
OpenClaw Parallels Smoke
Use this skill for Parallels guest workflows and smoke interpretation. Do not load it for normal repo work.
Global rules
- Parallels is postpublish-confidence coverage by default, not a prerequisite
for the bounded beta-publish phase. Run it against one exact published
package version and record the Validation SHA + Tooling SHA run tuple that
authorized that package. Validation SHA maps to its Code SHA or Release SHA;
it is not a third release identity.
- A failed postpublish Parallels lane does not retroactively unpublish a beta.
Classify it as product, harness/tooling/provenance, infrastructure/credential,
or wrapper failure. Only a confirmed product defect enters the next beta.
- Use one coordinator and one lane per independent guest family. Diagnose and
retry one failed family once, then reassess; do not restart the aggregate
matrix automatically.
- Inventory existing VMs and snapshots before provisioning anything. When a preconfigured pristine
snapshot matches the requested baseline, switch to it and reuse its user, tools, and base setup.
Do not create a new VM, reinstall macOS, or rebuild the guest baseline for a "fresh" run.
- "Fresh" means restoring the closest existing pristine snapshot, not creating another snapshot.
Do not create ad-hoc snapshots unless the user explicitly asks or no suitable baseline exists;
restore the original snapshot and leave the guest stopped after an ad-hoc run.
- Inspect the snapshot state before restoring it. A pristine
poweronsnapshot can contain the
preconfigured logged-in session; switch to it normally so Parallels resumes that session. Do not
pass --skip-resume at test entry unless the run intentionally needs to discard the saved session
and boot from the login window. --skip-resume is acceptable for final cleanup that must leave the
restored source guest stopped.
- Gateway verification in smoke runs should use
openclaw gateway status --deep --require-rpcunless the stable version being checked does not support it yet. - Stable
2026.3.12pre-upgrade diagnostics may require a plaingateway status --deepfallback. - Treat
precheck=latest-ref-failon that stable pre-upgrade lane as baseline, not automatically a regression. - Pass
--jsonfor machine-readable summaries. - Per-phase logs land under
.artifacts/parallels/openclaw-parallels-*by default. Override withOPENCLAW_PARALLELS_ARTIFACT_ROOTwhen a run needs another artifact volume. - Do not run local and gateway agent turns in parallel on the same fresh workspace or session.
- Hard-cap every top-level Parallels lane with host
timeout --foreground(orgtimeout --foregroundif that is the available binary) so a stalled install, snapshot switch, orprlctl exectransport cannot consume the rest of the testing window. Defaults: - macOS:
75m - Linux:
75m - Windows:
90m - aggregate npm-update wrapper:
150m
If a lane hits the cap, stop there, inspect the newest /tmp/openclaw-parallels-* run directory and phase log, then fix or rerun the smallest affected lane. Do not keep waiting on a capped lane.
- Actual OpenClaw npm install/update phases are a stricter signal than whole-lane caps: install phases should normally finish within 7 minutes, and update phases should normally show meaningful progress within 5 minutes. If a phase named
install-main,install-latest,install-baseline, orinstall-baseline-packageexceeds 420s, or a phase namedupdate-dev/ same-guestopenclaw updateexceeds 300s without new markers, start diagnosis from that phase log and guest process state. Current Windows update phases can still pass after roughly 10-15 minutes becausedoctor --fixmay install bundled plugin runtime deps; keep the script hard cap near 20 minutes unless the log is truly stale. - For a full OS matrix, prefer running independent guest-family lanes in parallel when host capacity allows:
timeout --foreground 75m pnpm test:parallels:macos -- --jsontimeout --foreground 90m pnpm test:parallels:windows -- --jsontimeout --foreground 75m pnpm test:parallels:linux -- --json
Keep each lane in its own shell/session and track the run directory for each one. Before starting the matrix, run any required host build/package gate to completion. When current-main tgz packaging is needed, the smoke scripts hold a shared package lock through pnpm build, inventory/staging, and npm pack; if that lock is missing or broken, serialize the matrix instead of accepting concurrent dist mutation.
- Do not run multiple smoke lanes against the same guest family at once. Tahoe lanes share the host HTTP port, and Windows/Linux lanes can collide on snapshot restore/start state if two jobs touch the same VM concurrently.
- Do not run the aggregate
pnpm test:parallels:npm-updatewrapper in parallel with individual macOS/Windows/Linux smoke lanes; it touches the same guest families and snapshots. - Do not start Parallels lanes while any unrelated host command may rebuild, clean, or restage
dist(pnpm build,pnpm ui:build,pnpm release:check,pnpm test:install:smoke, npm pack/install smoke, or Docker lanes that run package/build prep). Run unrelated build/package gates first, let them finish, then start the VM matrix. Concurrentdistmutation can make hostnpm packfail with missing files and wastes a full VM cycle. - While running or optimizing the matrix, record wall-clock duration per lane and the slowest phase from
/tmp/openclaw-parallels-*logs. Use that timing before changing smoke order, timeouts, or helper behavior. - If a host build changes tracked generated files, stop before spending VM time. Commit the generated artifact separately or fix the generato
