Repository navigation
test(gateway): align E2E handshake timeout - #117791
Conversation
cb43705 to
56f5d3c
Compare
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 12:09 AM ET / 04:09 UTC. ClawSweeper reviewWhat this changesThe branch makes the Gateway E2E helper pass its caller’s connection budget to the client’s pre-auth WebSocket handshake timeout and raises the SQLite sessions/transcripts flip-proof connection budget from 20 to 60 seconds. Merge readiness✅ Ready for maintainer review The patch correctly closes the test-helper timeout gap described in the linked report, but this fresh PR has a Priority: P3 Review scores
Verification
How this fits togetherThe SQLite flip-proof starts a real Gateway test instance and connects several test clients through the shared Gateway E2E helper. That helper sets the client’s connection behavior before the proof exercises session and transcript lifecycle operations. flowchart LR
A[SQLite flip-proof] --> B[Gateway test instance]
B --> C[Shared E2E helper]
C --> D[Gateway client]
D --> E[WebSocket opening handshake]
E --> F[Session and transcript proof]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +2, Tests 0. Total +2 across 2 files. View PR surface stats
Review metricsNone. Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Merge the narrow helper-to-client timeout alignment after the required maintainer review; keep production Gateway defaults unchanged and retain the focused client handshake and SQLite proof coverage. Do we have a high-confidence way to reproduce the issue? Yes — current source shows that Is this the best way to solve the issue? Yes — forwarding the existing overall test connection budget into the existing client pre-auth timeout is the narrowest owner-boundary repair, and the 60-second override is limited to the heavyweight proof clients rather than production defaults. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 862339134a9b. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Land-ready verification completed for exact head Root cause: the shared Gateway E2E helper's Verification:
Known proof gaps: none for the changed test-harness surface. |
|
Merged via squash.
|
Summary
Fixes #117790
Verification
pnpm exec oxlint --type-aware src/gateway/test-helpers.e2e.ts test/helpers/sqlite-sessions-transcripts-flip-proof.tspnpm exec vitest run packages/gateway-client/src/client.handshake.test.ts test/helpers/openclaw-test-instance.test.ts(6 passed)node scripts/run-vitest.mjs run --config test/vitest/vitest.e2e.config.ts test/scripts/sqlite-sessions-transcripts-flip-proof.e2e.test.ts(1 passed, 143.76s)pnpm exec oxfmt --check src/gateway/test-helpers.e2e.ts test/helpers/sqlite-sessions-transcripts-flip-proof.tsgit diff --check