Repository navigation
fix(qa-lab): preserve Multipass guest artifacts - #164754
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 12:10 AM ET / 04:10 UTC. ClawSweeper reviewWhat this changesThe 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 Review scores
Verification
How this fits togetherQA 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +5, Tests +10, Docs +1. Total +16 across 3 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
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.
What Problem This Solves
qa suite --runner multipassbuilds 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
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.--maxWorkers=1. The regression extends existing bootstrap cases without additional process starts or timers.cbx_b55e3c3199e6, in an isolated checkout pinned to the base above plus the verified patch.pnpm install --frozen-lockfilecompleted before checks.Release-note context: fix the Multipass QA runner's guest output-path rejection while preserving host evidence on scenario failure.