Repository navigation
fix(qa-lab): close transport before gateway teardown - #106027
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
0a9ff2a to
3629368
Compare
|
Validation update for
Ran from a fresh detached checkout on DigitalOcean Crabbox ( This validates the stated rebased teardown commit above; the PR has since advanced to a newer head and needs fresh validation before treating these results as exact-head proof. |
3629368 to
e133624
Compare
e133624 to
7d17c42
Compare
|
Codex review: needs maintainer review before merge. Reviewed July 17, 2026, 9:28 PM ET / July 18, 2026, 01:28 UTC. Summary PR surface: Source +12, Tests +9. Total +21 across 2 files. Reproducibility: yes. from the supplied source and PR evidence: the linked report identifies the teardown sequence and the PR’s mock-provider QA smoke exercises that same QA Lab gateway/transport path. I did not execute the scenario in this read-only review. Review metrics: none identified. Root-cause cluster Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge readiness Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch. Rank-up moves:
Next step before merge
Security Review detailsBest possible solution: Land the narrow production cleanup-plan ordering only after the assigned reviewer confirms the current head retains the reported QA smoke behavior and all required checks for that head complete. Do we have a high-confidence way to reproduce the issue? Yes, from the supplied source and PR evidence: the linked report identifies the teardown sequence and the PR’s mock-provider QA smoke exercises that same QA Lab gateway/transport path. I did not execute the scenario in this read-only review. Is this the best way to solve the issue? Yes. Moving the dependency ordering into one production cleanup-plan helper and testing that exact plan is narrower and less drift-prone than maintaining a separate ordering-only test fixture. AGENTS.md: unclear because the file could not be read completely. Codex review notes: model internal, reasoning high; reviewed against 2e70de9d32ae. Label changesLabel changes:
Label justifications:
Evidence reviewedPR surface: Source +12, Tests +9. Total +21 across 2 files. View PR surface stats
What I checked:
Likely related people:
What the crustacean ranks mean
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. How this review workflow works
Review history (10 earlier review cycles; latest 8 shown)
|
|
Exact-head Crabbox validation for Environment: DigitalOcean Crabbox, |
|
@clawsweeper re-review Exact-head validation is now attached for
|
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
7d17c42 to
fd41dc3
Compare
|
@clawsweeper re-review Fresh exact-head behavior proof is now in the PR body and validation comment for |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Fresh exact-head proof is now attached for |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review Fresh exact-head proof is attached for |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
b0893f4 to
97ae13e
Compare
97ae13e to
721a1a6
Compare
721a1a6 to
b314dc5
Compare
b314dc5 to
d85ef46
Compare
|
Maintainer pass complete. I rebased onto current main, kept the transport-before-gateway fix, and replaced the hand-written cleanup-list test with a regression test for the exact production cleanup plan. Proof:
Review artifacts: |
|
Merged via squash.
|
* fix(qa-lab): close transport before gateway teardown * test(qa-lab): bind teardown order to production plan --------- Co-authored-by: Peter Steinberger <[email protected]>
Closes #106005
What Problem This Solves
QA Smoke scenarios could finish successfully while transport work was still delivering an HTTP response. The suite stopped the gateway first, so that delivery could end as an unhandled
HTTP response closed before delivery completedrejection.Why This Change Was Made
Close the transport before stopping the gateway. Transport cleanup drains outstanding provider HTTP work while the gateway can still accept delivery.
The cleanup order now lives in one production-plan helper. Its regression test exercises that exact plan, verifies every dependency boundary, and proves later resources still close when transport cleanup fails.
User Impact
QA Smoke no longer reports a post-success unhandled rejection caused by its own teardown order. Runtime behavior outside QA Lab is unchanged.
Evidence
node scripts/run-vitest.mjs extensions/qa-lab/src/suite.test.ts: 1 file, 28 tests passed.node scripts/check-changed.mjs -- extensions/qa-lab/src/suite.ts extensions/qa-lab/src/suite.test.ts: passed extension production/test types, formatting, lint, plugin boundaries, guardrails, and import-cycle checks on Blacksmith Testboxtbx_01kxsbnwmep7and94wx80qd1v4(run).channel-chat-baselinepassed 1/1 through the QA Lab gateway andqa-channeltransport on Blacksmith Testboxtbx_01kxsbzwran95fx03ampreece7(run); teardown completed without a response-close rejection.d85ef465d90fd64983183251ce30d40e9f5c691d: passed (run).git diff --check: passed.Limitations
The smoke uses the repository's deterministic mock OpenAI provider. No external channel or provider credentials are involved.
AI-assisted: yes. No agent transcript attached (not requested).