Repository navigation
fix(test): describe unverified Gateway cleanup accurately - #148692
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 maintainer review before merge. Reviewed September 14, 2026, 10:09 PM ET / September 15, 2026, 02:09 UTC. ClawSweeper reviewWhat this changesUpdates the shared Gateway test fixture’s cleanup error and its existing assertion to describe unverified termination and output closure accurately. Merge readiness✅ Ready for maintainer review The correction remains useful: current main and v2026.9.4 still report a deadline failure for cleanup that can become indeterminate immediately. No introduced correctness defect was found, and the maintainer-protected PR should remain open. Priority: P3 Review scores
Verification
How this fits togetherThe shared test fixture starts isolated Gateway processes for integration tests and owns their shutdown. Cleanup checks process termination and captured-output closure before releasing the process owner and removing temporary state. flowchart TD
A[Test requests stop or restart] --> B[Shared Gateway fixture]
B --> C[Terminate owned process tree]
C --> D{Termination and output closure verified?}
D -->|Yes| E[Release process owner]
D -->|No| F[Retain owner and report cleanup uncertainty]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +2. Total +2 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep the diagnostic aligned with cleanup uncertainty while preserving the existing termination checks and detailed failure reasons. Do we have a high-confidence way to reproduce the issue? Yes, from source: indeterminate Windows termination returns false before deadline expiry and reaches the misleading outer error on current main. Native execution was not reproduced in this review. Is this the best way to solve the issue? Yes. Correcting the outer message and its existing assertion is the narrowest repair; changing termination behavior would exceed the demonstrated diagnostic problem. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 98b321fce638. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Related: #148674
What Problem This Solves
Gateway fixture cleanup reports a stop deadline failure even when Windows tree termination is immediately indeterminate.
User Impact
No user-visible runtime change. Developers get an accurate cleanup error without changing stop timing, process ownership, failure behavior, or structured diagnostics.
Why This Change Was Made
CI for #148674 recorded taskkill status 255 after 87 ms and cleanup failure after 89 ms. The outer error now describes unverified termination and output closure, and the existing exact-message assertion matches it. This correction does not explain or fix the native taskkill failure.
Evidence
Frozen dependency install, pinned oxfmt 0.66.0 check, canonical targeted oxlint 1.81.0 check, git diff --check, and fresh independent P2 review passed. No native process replay was run. Existing JavaScript stop doubles cover failure classification but do not reach the outer message; the existing exact-message assertion belongs to a native inherited-pipe fixture and was updated without running it.
Exact-head hosted CI passed for
ac2e5067e487dc1ac2f10d7847e75a66356ad5c5, including both native Windows lanes. Native PR preparation completed using that hosted evidence without changing the head.