Repository navigation
test(agents): await fixture-owned runtime cleanup - #165379
vincentkoc wants to merge 1 commit into
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 changes before merge. What this changesThe PR makes agent test-fixture cleanup return promises and updates test callers to await teardown before resetting shared state or disposing resources. Review scores
Merge readiness⛔ Needs changes before merge - 1 item remains Keep open: this member-authored preparation remains useful, and current main still exposes synchronous fixture cleanup. No concrete introduced defect was found, but integration and focused validation remain incomplete. Priority: P3 Before merge
FindingsNone. Agent review detailsHow this fits togetherAgent runtime fixtures create the admitted authority and host capabilities used by plugin integration tests. Their teardown releases those resources before subsequent tests reuse shared runtime state. flowchart TD
A[Agent integration tests] --> B[Runtime fixture]
B --> C[Admitted run and host capabilities]
C --> D[Test scenario]
D --> E[Close host immediately]
E --> F[Await admission cleanup]
F --> G[Reset shared test state]
Technical reviewBest possible solution: Keep fixture cleanup awaitable while preserving immediate host revocation and existing gate-release ordering. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR prepares test teardown contracts rather than claiming a standalone product bug fix; no tests were executed in this read-only review. Is this the best way to solve the issue? Yes: returning fixture-owned cleanup promises and awaiting existing callers is a focused preparation, with production settlement changes reserved for the dependent PR. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 4c097a150cab. SecurityNone. EvidenceWhat I checked:
PR surfaceSource 0, Tests +21. Total +21 across 71 files. View PR surface stats
LabelsLabel changes:
Label justifications:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReviewed October 5, 2026, 3:54 AM ET / 07:54 UTC (Revision 3). |
Related: #156269
Stack 1/19. Base: main; source reviewed on the frozen 0a188c4 prefix.
What Problem This Solves
Runtime test fixtures expose synchronous teardown contracts even when their owners must finish asynchronous cleanup. That makes the admission-settlement change difficult to review independently.
Why This Change Was Made
Give fixture-owned cleanup a Promise contract and await it in the existing callers. Production admission behavior changes in the next slice.
User Impact
No user-visible behavior change; this is the independently usable test preparation for joined admission cleanup.
Evidence
git diff --checkpassed. AI-assisted changes.Production LOC: +2/-2 (net +0); tests/helpers: +229/-208.
Published for review with validation pending. No merge, auto-merge, or deployment is requested.