Repository navigation
fix(qa): stop zombie-only gateway process groups - #119396
Conversation
2b5725a to
88ac276
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Punchcard-Session: amber-orchard-valley-s4
88ac276 to
057a85e
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 4, 2026, 10:03 PM ET / August 5, 2026, 02:03 UTC. ClawSweeper reviewWhat this changesQA Lab’s gateway cleanup now treats Linux process groups containing only exited zombies as stopped while retaining failures for runnable or uninspectable groups. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for explicit maintainer handling: this focused QA Lab repair is not on current main, has no actionable code finding, and correctly moves Linux teardown liveness to the process-group owner. Priority: P2 Review scores
Verification
How this fits togetherQA Lab starts a Gateway child for Docker live and E2E scenarios, then tears down its process group after the scenario. That teardown determines whether a completed scenario is reported as successful or failed. flowchart LR
A[QA scenario] --> B[Gateway child process]
B --> C[Shutdown signals]
C --> D[Linux process-group inspection]
D --> E{Runnable member remains?}
E -- Yes or unknown --> F[Fail cleanup with diagnostics]
E -- Zombies only --> G[Cleanup succeeds]
G --> H[Scenario result]
Decision needed
Why: The code review is clean, but the maintainer label and conflicting body/check proof status require an explicit landing judgment. Before merge
Agent review detailsSecurityNone. PR surfaceSource +80, Tests +109. Total +189 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the single owner-boundary liveness repair once the exact-head Linux cleanup proof is confirmed or linked. Do we have a high-confidence way to reproduce the issue? Yes: current main has a direct Linux path where group probing succeeds, child metadata remains unset, and the code returns alive before reading zombie-only /proc members. No local test was run because this is a read-only review. Is this the best way to solve the issue? Yes: process-group inspection belongs in the gateway-child teardown owner; increasing timeouts or changing the separate verified-boundary controller would retain or misplace the incorrect liveness rule. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 6a8e11e63cee. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
Punchcard-Session: amber-orchard-valley-s4
What Problem This Solves
Fixes an issue where successful Docker live/E2E lanes could be reported as failed after cleanup when Linux retained only zombie members in the Gateway process group.
Why This Change Was Made
The QA Lab Gateway child teardown treated unsettled Node child-exit metadata as authoritative before checking Linux process-group members. The process owner now classifies
/procmembers directly: runnable members remain alive, while zombie/exited-only groups are stopped. If/proccannot be inspected, cleanup still fails closed.Forced-shutdown errors now include process-group membership and child-exit state, capped at 2 KiB. This does not change convergence restart behavior, provider execution, or other live-test failures.
Architectural owner:
extensions/qa-lab/src/gateway-child.ts.Canonical invariant: on Linux, runnable process-group membership owns teardown liveness; zombie-only groups cannot retain ports or execute work.
Removed path: the child-exit metadata short-circuit and boolean-only Linux group classifier.
Production LOC: +109/-29. Test LOC: +120/-11. The production growth makes the owner boundary explicit and adds bounded diagnostics for real cleanup failures.
User Impact
Maintainers no longer get false-red live/E2E results after every scenario has passed and the remaining process-group entries are non-runnable zombies. Genuine runnable descendants still fail cleanup with actionable diagnostics.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/gateway-child.test.ts(94 passed)oxfmt --check extensions/qa-lab/src/gateway-child.ts extensions/qa-lab/src/gateway-child.test.tsgit diff --check origin/main...HEAD/procmatch remains unknown and fail-closed, with classifier and liveness regressionsTwo Linux changed-gate Testbox attempts hung with zero output before any repository check and ended only when their exact owned runs were stopped. Testbox reported
blocked_stage=unknownandblacksmith testbox run exited -1; the lease was stopped. This is a transport-stage failure, not a code/test failure, so the repository-hosted Linux checks on this exact head are the authoritative platform validation.AI-assisted: yes. The change was independently reviewed and the implementation and tests were verified before publication.
Punchcard-Session: amber-orchard-valley-s4