Repository navigation
fix(qa): release failed transport leases and always stop owned labs - #119442
Conversation
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed August 4, 2026, 11:22 PM ET / August 5, 2026, 03:22 UTC. ClawSweeper reviewWhat this changesThe PR makes failed QA transport cleanup retryable and ensures runtime-parity suites stop owned labs while preserving both scenario and cleanup errors. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until stronger real behavior proof is added - 3 items remain The patch is a focused repair of two current QA cleanup defects and reuses the existing cleanup/error-aggregation owner. Its linked exact-head artifact shows a successful isolated run, but not either failure path this PR changes, so real behavior proof is still insufficient before merge. Priority: P2 Review scores
Verification
How this fits togetherQA Lab runs isolated and runtime-parity scenarios through transport adapters and temporary Gateway labs. Its cleanup phase releases exclusive channel credentials and shuts down labs after each run, producing QA reports and terminal errors. flowchart LR
A[QA scenario request] --> B[Isolated or parity runner]
B --> C[Transport credential lease]
B --> D[Owned Gateway lab]
C --> E[Cleanup aggregation]
D --> E
E --> F[Retry and shutdown]
F --> G[QA report or causal error]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +9, Tests +185. Total +194 across 4 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Rebase if needed, then attach redacted exact-head QA runtime evidence with a controlled one-time transport-release failure that records the retry, owned-lab shutdown, and retained scenario-plus-cleanup error. Do we have a high-confidence way to reproduce the issue? Yes—current main has a deterministic source path where a rejected release skips isolated retry or prevents parity lab shutdown; execution of the real failure path is still unproven. Is this the best way to solve the issue? Yes—the changes repair the state owner and reuse the established cleanup aggregator instead of adding a second cleanup policy; only real failure-path proof remains. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against a8caab5c3d3c. LabelsLabel 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
History |
|
Merged via squash.
|
* origin/main: fix(channels): honor explicit preview streaming settings refactor(telegram): consolidate outbound contracts and targets (#119438) fix(qa): retry transport cleanup and always stop owned labs (#119442) fix(mcp): guard stdio stdout frame parsing against oversized-buffer crash (#119379) refactor(auto-reply): centralize delivery deduplication and routing (#119436) fix(qa): preserve scenario isolation in serial suites (#119439) perf(xai): lazy-load optional capability runtimes (#119374) refactor(browser): consolidate browser CLI and normalization helpers (#119432) fix(qa): require ready transport accounts (#119431) refactor(media): share image and video geometry normalization (#119416) fix(config): preserve plugin metadata for missing config (#119421) fix: retry delivery when outbound adapter is unavailable (#119371) fix(cli): retire invalid secret flags and prove doctor recovery (#118926) refactor(signal): share outbound and reaction transport (#119415)
What Problem This Solves
Fixes an issue where isolated QA runs could permanently leak a channel credential lease after one transient cleanup failure, and runtime-parity runs could leave their owned lab server running while hiding the original scenario failure.
Why This Change Was Made
The isolated-suite owner records transport cleanup only after it succeeds, preserving the registry retry contract. The runtime-parity owner now uses the existing canonical cleanup aggregation so every owned resource is released and primary failures retain their causal cleanup errors.
User Impact
Repeated QA runs recover transient credential-release failures, stop owned labs reliably, and report scenario plus cleanup errors instead of exhausting shared transport pools or leaking background servers.
Evidence
Inspectable exact-head runtime proof
Exact-head required CI passed: https://github.com/openclaw/openclaw/actions/runs/30970694620
The downloadable real isolated-suite runtime artifact is https://github.com/openclaw/openclaw/actions/runs/30970694620/artifacts/8916439102. Its primary/flow/isolated-1/qa-suite-summary.json records a live owned Gateway/Crabline lifecycle and successful terminal completion:
{ "head": "507b9dfe4a5961a260c9d549ced8706d873fa235", "artifactPath": "primary/flow/isolated-1/qa-suite-summary.json", "providerMode": "mock-openai", "channelDriver": "crabline", "scenarioIds": ["subagent-completion-direct-fallback"], "counts": {"total": 1, "passed": 1, "failed": 0, "skipped": 0} }The same artifact records three independently isolated worker lifecycles and a six-scenario aggregate with passed=6 and failed=0. The added authentic cleanup tests inject a one-time rejection into the actual registered adapter: both pre-stop and post-stop credential cleanup retry successfully, and runtime-parity cleanup stops its owned lab while preserving both the original scenario failure and the cleanup error.