Repository navigation
test(qa): await gateway startup before network probes - #130353
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 5:18 PM ET / 21:18 UTC. ClawSweeper reviewWhat this changesThe PR changes the loopback/LAN Gateway QA producer so it waits for deferred startup settlement before issuing HTTP and WebSocket probes. Merge readinessKeep open for the normal human landing decision: the protected maintainer PR makes the QA probe wait on the Gateway’s documented admission-readiness boundary, and current main still lacks that wait. Priority: P3 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — step 1 Assertions:
How this fits togetherThe QA producer starts an isolated Gateway, then probes loopback and LAN HTTP/WebSocket access with valid and invalid tokens. The Gateway publishes its transport before deferred sidecars settle, so the producer must wait for the generation readiness promise before treating it as admitted. flowchart LR
A[QA producer] --> B[Start isolated Gateway]
B --> C[HTTP transport attached]
C --> D[Deferred sidecars settle]
D --> E[Startup readiness promise]
E --> F[Loopback and LAN probes]
F --> G[Network proof artifact]
Decision needed
Why: The patch is a narrow, source-backed QA repair with no remaining mechanical finding, but the maintainer label and member authorship require an explicit human landing choice. Before merge
Agent review detailsSecurityNone. PR surfaceTests +4. Total +4 across 1 file. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Land the focused readiness-boundary synchronization after the normal maintainer review and merge-result validation. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main starts a deferred Gateway and immediately probes it, while the readiness contract shows sidecar admission can still be pending. The PR body also reports a pre-fix failing artifact, though that artifact was not independently replayed in this read-only review. Is this the best way to solve the issue? Yes: awaiting the owner-native readiness promise at the QA producer is narrower and more deterministic than adding retries, sleeps, or weakened probe assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 549360bc4261. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
* origin/main: (275 commits) fix(ai): require explicit compatible-provider endpoints (#130453) test(control-ui): guard the hand-mirrored theme --bg copies (#130444) fix(onboard): preserve the saved skills package manager (#130438) improve(worker): diagnose admission-deadline failures and widen daemon revalidation budget (#130435) fix(plugins): align diffs external install metadata (#130362) refactor(models): consolidate config normalization (#130439) fix(browser): accept common keyboard aliases (#130401) fix(release): refresh IMAP plugin baselines (#130351) fix(tests): type sticky model agent fixtures (#130441) fix(qa): track current Slack progress cards (#130354) feat(ui): refine the mobile composer (#130308) fix(ui): clarify gateway disconnect status in tab title (#130364) test(qa): await gateway startup before network probes (#130353) fix(qa): run Buzz profile scenarios with pooled credentials (#130316) fix(crabbox): keep the setup failure reason and name its phase (#130425) fix: dashboard tools target the wrong Gateway after admission (#130112) fix(ui): distinguish inherited model defaults from session pins (#120805) feat(feishu): let agents resend received stickers (#130374) refactor(models): prepare selection policy once (#130413) fix(ui): make dashboard side panels enter split view (#130426) ... # Conflicts: # test/scripts/docker-build-helper.test.ts
Problem
Maturity run 32992034783 failed
gateway-loopback-lan-accessafter its LAN HTTP endpoint was attached but before mandatory Gateway startup settled. The invalid-token probe correctly exercised auth, while the immediately following valid-token connection received the intentionalgateway starting; retry shortlyadmission response.startGatewayServerdeliberately publishes the HTTP transport before deferred sidecar startup completes and exposesstartupSettledas the owner-native readiness boundary. The QA producer treated server construction and HTTP health as full admission readiness.Repair
Await the returned server generation’s
startupSettledpromise inside the producer’s startup owner before any loopback or LAN probe. This removes the race without retries, sleeps, timeouts, or weakened assertions.Verification
gateway starting; retry shortly.node scripts/run-vitest.mjs test/e2e/qa-lab/runtime/gateway-loopback-lan-access.test.ts— 3 passed, including the real loopback/LAN HTTP and WebSocket proof.node scripts/check-changed.mjs -- test/e2e/qa-lab/runtime/gateway-loopback-lan-access.ts— passed (test-root typecheck and script/Docker E2E lint included).Test/support LOC: +5/-1. No production LOC. No changelog: QA-only synchronization repair.