Skip to content

fix(qa-lab): preserve Multipass guest artifacts - #164754

Merged
steipete merged 1 commit into
mainfrom
deslop/l360-qa-lab2-multipass-output
Oct 4, 2026
Merged

steipete merged 1 commit into
mainfrom
deslop/l360-qa-lab2-multipass-output

Conversation

@steipete

@steipete steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

qa suite --runner multipass builds a guest command with an absolute --output-dir, but the QA CLI only accepts repo-relative output paths. A bootstrapped guest therefore fails before running its selected scenarios.

User Impact

The guest accepts the output argument and writes reports and summaries to the existing host artifact directory, including when QA exits unsuccessfully. CLI options, report formats, scenario selection, credential forwarding, and VM teardown remain unchanged.

Why This Change Was Made

Pass the existing artifact directory as a relative path inside the copied guest checkout. After installation and build, bind-mount the host artifact directory at that guest path. This preserves guest-local build writes while retaining host logs and QA evidence. The CLI's path and symlink admission rules remain intact.

Evidence

  • On fresh main 35f60579010ca7ba4c158f20bd0f4409965731f0, the regression executes the real generated bootstrap script, captures its actual QA argv, and fails at the real output-path resolver with --output-dir must be a relative path inside the repo root.
  • With the fix, the existing Multipass and CLI suites pass: 2 files / 115 tests, 46.07 seconds with --maxWorkers=1. The regression extends existing bootstrap cases without additional process starts or timers.
  • Focused lint passes with zero warnings/errors; both import-cycle checks report zero; plugin contracts pass 48 files / 1,132 tests.
  • A separate disposable Linux proof executes the generated script with real bind mounts, rsync, and the real CLI resolver/directory admission. Both QA exit codes 0 and 23 preserve report/summary bytes and the pre-existing host log; guest build-only writes stay out of the host artifact directory. Both cases passed (22.29 seconds including setup). This is generated-script/filesystem proof, not a Multipass VM or live-provider run.
  • MDX validation for the changed page and the docs link audit passed.
  • Independent Codex autoreview through P2 is clean.
  • Proof ran on AWS Crabbox cbx_b55e3c3199e6, in an isolated checkout pinned to the base above plus the verified patch. pnpm install --frozen-lockfile completed before checks.

Release-note context: fix the Multipass QA runner's guest output-path rejection while preserving host evidence on scenario failure.

@clawsweeper

clawsweeper Bot commented Oct 4, 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 docs Improvements or additions to documentation extensions: qa-lab size: XS labels Oct 4, 2026
@steipete
steipete enabled auto-merge (squash) October 4, 2026 04:07
@clawsweeper

clawsweeper Bot commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 12:10 AM ET / 04:10 UTC.

ClawSweeper review

What this changes

The Multipass QA runner passes a repo-relative output path and binds the host artifact directory into the guest checkout after building, preserving reports when QA fails.

Merge readiness

✅ Ready for maintainer review

Keep open: the defect remains on current main and the latest release, and this focused repair has no actionable correctness finding.

Priority: P2
Reviewed head: b0847ec7e5ba99913f316d6e7b53509d08f3cb00

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-level repair with useful regression coverage and scoped filesystem observations; no blocking defect was found.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The captured body reports the generated production script running on disposable Linux with real bind mounts, rsync, and CLI admission: successful and unsuccessful QA exits retained host artifacts while build writes stayed guest-local. This proves the changed filesystem boundary; it does not claim VM or provider coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured body reports the generated production script running on disposable Linux with real bind mounts, rsync, and CLI admission: successful and unsuccessful QA exits retained host artifacts while build writes stayed guest-local. This proves the changed filesystem boundary; it does not claim VM or provider coverage.
Evidence reviewed 8 items Introduced repair: The pinned introduction changes the generated output argument to a relative path and adds the artifact bind mount after installation and compilation.
Current main still needs the fix: Current main still passes the absolute mounted output directory to the guest CLI. The CLI resolver explicitly rejects absolute output arguments; the host CLI uses that resolver before dispatching both runner paths.
Existing path admission retained: The resolver requires relative paths, and directory admission checks containment and rejects symlink traversal. The patch leaves these owners intact and supplies a real directory mount rather than a symlink.
Findings None None.
Security None None.

How this fits together

QA Lab turns selected scenarios into test runs. Its Multipass runner builds OpenClaw in a disposable Linux guest and exposes the resulting reports and logs on the host.

flowchart TD
  A[QA scenario selection] --> B[Multipass runner]
  B --> C[Copied guest checkout]
  C --> D[Install and build]
  D --> E[Bind host artifact directory]
  E --> F[Run QA with relative output path]
  F --> G[Host reports and logs]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +5, Tests +10, Docs +1. Total +16 across 3 files.

View PR surface stats
Area Files Added Removed Net
Source 1 8 3 +5
Tests 1 12 2 +10
Docs 1 5 4 +1
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 25 9 +16

Review metrics

None.

Technical review

Best possible solution:

Keep one output-path admission owner and write guest QA artifacts directly into the existing host directory after guest-local preparation completes.

Do we have a high-confidence way to reproduce the issue?

Yes, source establishes the failure: the generated guest command on current main passes an absolute output path to a resolver that rejects it. This review did not execute target code.

Is this the best way to solve the issue?

Yes, the patch repairs the producer's argument and artifact destination while retaining the existing CLI admission rules and guest-local build lifecycle.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 8a0b0c458bbd.

Labels

Label changes:

  • add P2: This repairs a reproducible output-path rejection in the optional Multipass QA runner.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports the generated production script running on disposable Linux with real bind mounts, rsync, and CLI admission: successful and unsuccessful QA exits retained host artifacts while build writes stayed guest-local. This proves the changed filesystem boundary; it does not claim VM or provider coverage.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.

Label justifications:

  • P2: This repairs a reproducible output-path rejection in the optional Multipass QA runner.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured body reports the generated production script running on disposable Linux with real bind mounts, rsync, and CLI admission: successful and unsuccessful QA exits retained host artifacts while build writes stayed guest-local. This proves the changed filesystem boundary; it does not claim VM or provider coverage.

Evidence

What I checked:

  • Introduced repair: The pinned introduction changes the generated output argument to a relative path and adds the artifact bind mount after installation and compilation. (extensions/qa-lab/src/multipass.runtime.ts:192, b0847ec7e5ba)
  • Current main still needs the fix: Current main still passes the absolute mounted output directory to the guest CLI. The CLI resolver explicitly rejects absolute output arguments; the host CLI uses that resolver before dispatching both runner paths. (extensions/qa-lab/src/multipass.runtime.ts:192, 8a0b0c458bbd)
  • Existing path admission retained: The resolver requires relative paths, and directory admission checks containment and rejects symlink traversal. The patch leaves these owners intact and supplies a real directory mount rather than a symlink. (extensions/qa-lab/src/cli-paths.ts:31, b0847ec7e5ba)
  • Verified merge result: The test merge records the pinned main parent followed by the exact PR head. Its production delta retains the relative argument and post-build bind mount, without removing current-main work. (extensions/qa-lab/src/multipass.runtime.ts:364, 12b4bb2cca25)
  • After-fix filesystem observations: The complete captured PR body reports executing the generated script on disposable Linux with real bind mounts, rsync, and CLI directory admission. Exit codes 0 and 23 preserved report and summary bytes plus the existing host log; build-only writes stayed guest-local. This supports the changed filesystem boundary, with no claim of a Multipass VM or live-provider run. (b0847ec7e5ba)
  • Regression coverage: The extended existing bootstrap cases capture the generated QA argument vector and send its output argument through the real path resolver. Mounting remains mocked in these tests; the separately reported filesystem run supplies that boundary evidence. The body reports 115 focused tests in 46.07 seconds and no additional process starts or timers. (extensions/qa-lab/src/multipass.runtime.test.ts:418, b0847ec7e5ba)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • vincentkoc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@steipete
steipete merged commit a34f3ae into main Oct 4, 2026
109 of 111 checks passed
@steipete
steipete deleted the deslop/l360-qa-lab2-multipass-output branch October 4, 2026 04:18
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 4, 2026
Use a repo-relative output argument in the generated Multipass QA command and bind the existing host artifact directory into the copied guest checkout after installation and build. Preserve host reports and logs on both successful and failed QA runs without relaxing path admission.

The executed-argv regression fails on the original code and passes after the fix. Multipass/CLI suites, plugin contracts, lint, docs checks, both zero-cycle gates, and a real Linux bind-mount proof pass. Independent review is clean through P2.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation extensions: qa-lab size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant