Repository navigation
fix(qa): retain child output on CLI timeouts - #119524
Conversation
|
Codex review: needs maintainer review before merge. Reviewed August 5, 2026, 3:10 AM ET / 07:10 UTC. ClawSweeper reviewWhat this changesThe QA Lab CLI subprocess runner retains bounded stdout and stderr tails on timeout and includes available diagnostics in its typed timeout error. Merge readinessKeep this PR open for the protected maintainer review: it is a focused, correct repair for the linked QA timeout diagnostic loss, with no actionable review findings. Priority: P2 Review scores
Verification
How this fits togetherQA Lab launches OpenClaw CLI subprocesses while running catalog scenarios. Its process runner captures child output, enforces the deadline, terminates timed-out process trees, and returns a typed failure to the scenario harness. flowchart LR
A[QA catalog scenario] --> B[QA CLI process runner]
B --> C[OpenClaw CLI child]
C --> D[stdout and stderr capture]
B --> E{Deadline expires}
E --> F[Terminate process tree]
D --> G[Bounded diagnostic tails]
F --> H[Typed timeout error]
G --> H
Before merge
Agent review detailsSecurityNone. PR surfaceSource +15, Tests +65. Total +80 across 3 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Land the bounded diagnostic capture at the QA subprocess owner, retaining the existing 60-second deadline and platform-specific process-tree termination behavior. Do we have a high-confidence way to reproduce the issue? Yes. Current main retains the timeout path that discards captured output, and the PR adds a spawned-child timeout case; the linked report also records full-catalog occurrences, though this read-only review did not rerun them. Is this the best way to solve the issue? Yes. Recording bounded diagnostics in the subprocess owner is the narrowest maintainable repair and reuses the existing tail contract instead of changing timeout policy or adding a downstream workaround. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ae54355087b7. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Land-ready proof for exact head Root cause: Fix: retain a separate 64 KiB stdout tail beside the existing stderr tail and append only nonempty tails to the typed Proof:
Live-proof note: this is maintainer-only QA harness behavior with no external service boundary. The real spawned-child integration test and the built private-QA catalog exercise the affected operator path directly. |
|
Merged via squash.
|
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (#119517) fix(tool-search): normalize dotted call arguments (#119418) (#119464) fix(qa): retain child output on CLI timeouts (#119524) fix(discord): preserve authored block order in presentation components (#119506) fix: make plugin verification restart guidance install-neutral (#119508) fix(qa): preserve profile execution contracts (#119519) test(qa): cover managed OTEL runtime paths (#118965) Punchcard-Session: frost-brook-timber-mx
Punchcard-Session: frost-brook-timber-mx * origin/main: fix: cap local tsgo CPU usage (openclaw#119517) fix(tool-search): normalize dotted call arguments (openclaw#119418) (openclaw#119464) fix(qa): retain child output on CLI timeouts (openclaw#119524) fix(discord): preserve authored block order in presentation components (openclaw#119506) fix: make plugin verification restart guidance install-neutral (openclaw#119508) fix(qa): preserve profile execution contracts (openclaw#119519) test(qa): cover managed OTEL runtime paths (openclaw#118965) Punchcard-Session: frost-brook-timber-mx
Closes #119385
What Problem This Solves
Fixes an issue where a timed-out QA CLI child was killed without preserving its already-captured stdout or stderr, leaving full-catalog failures unable to identify the stalled phase.
Why This Change Was Made
The central QA child-process owner now keeps a separate bounded stdout tail alongside the existing stderr tail and appends only nonempty diagnostics to the typed timeout error. Successful stdout parsing, the existing 60-second deadline, and cross-platform process-tree termination are unchanged.
The regression coverage includes both deterministic truncation assertions and a real spawned Node child that writes to both streams before timing out.
User Impact
Maintainers running QA Lab can now see the final bounded child output when a CLI step times out, making pressure-sensitive failures diagnosable without raising timeouts or weakening assertions. There is no end-user runtime behavior change.
Evidence
tbx_01kz89e309s68p3pqzrc4msw3h: https://github.com/openclaw/openclaw/actions/runs/30981180209pnpm test extensions/qa-lab/src/suite-runtime-agent-process.test.ts extensions/qa-lab/src/suite-runtime-agent-process.integration.test.ts extensions/qa-lab/src/child-output.test.ts— 41/41 passed.pnpm check:changed— passed, including extension production/test typechecks, 245-rule lint, boundary guards, dead-export checks, and import-cycle checks.OPENCLAW_BUILD_PRIVATE_QA=1 pnpm openclaw qa suite --provider-mode mock-openai --concurrency 8— 124 passed, 1 failed, 8 skipped. The reportedactive-memory-preprompt-recallscenario passed under the original concurrency and timeout. The unrelatedcompaction-retry-mutating-toolscenario reproduced an independent existing failure and is not changed here.gpt-5.6-sol, high reasoning) — clean, no accepted/actionable findings, 0.99 confidence.git diff --check— passed.openai/gpt-5.6-lunaidentifier: https://developers.openai.com/api/docs/models/gpt-5.6-lunaAI-assisted: implementation and proof were performed with Codex under maintainer supervision.