Repository navigation
test(gateway): await admission before fixture clients connect - #181571
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. What this changesThis PR makes four Gateway fixtures await public startup admission before connecting their clients. Example: The worker-placement fixture creates session startup-placement-local after Gateway startup settles.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness✅ Ready for maintainer review Keep open: this maintainer-authored PR repairs a concrete fixture readiness mismatch still present on main, with no actionable introduced defects found. Priority: P2 Before mergeNone. FindingsNone. Tests
Agent review detailsHow this fits togetherGateway integration fixtures start isolated servers, authenticate WebSocket clients, and exercise placement, portal, and session-event contracts; the existing HTTP startup probe exposes admission readiness. flowchart LR
A[Gateway fixture] --> B[Start isolated server]
B --> C[Deferred recovery]
C --> D[Startup probe reports started]
D --> E[Connect WebSocket client]
E --> F[Exercise existing RPC assertions]
Technical reviewBest possible solution: Use the existing public admission helper at these fixture connection boundaries while preserving production recovery ordering. Do we have a high-confidence way to reproduce the issue? Source and the merged sibling repair establish that startupSettled can precede connection admission; this review ran no tests under the read-only constraint. Is this the best way to solve the issue? The patch is the smallest complete fixture repair: it reuses the existing readiness owner without adding machinery, weakening assertions, or changing shared harness semantics. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e23f46b53463. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +10. Total +10 across 4 files. Added test files: 0. View PR surface stats
LabelsLabel changes:
Label justifications:
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 Reviewed October 23, 2026, 6:59 AM ET / 10:59 UTC. |
|
Merged via squash.
|
…aw#181571) Co-authored-by: Vincent Koc <[email protected]>
Four real Gateway fixtures connect after startupSettled but before public connection admission opens. This produces UNAVAILABLE/startup-sidecars failures in scheduled CI, including run39932927548/job120345797211.
Await the existing /startupz helper before the first raw client handshake in the portal, placement scopes, session row baselines and worker startup fixtures. Preserve production startup ordering, shared harness defaults and timeout limits.
Validation: 5 focused files / 10 tests passed, including the unchanged projection-warm ordering tests; changed Gateway test graph typecheck and focused lint passed; independent P0–P2 review clean; formatting and git diff --check passed.