test: stabilize gateway server shard#77131
Conversation
|
Codex review: needs changes before merge. Summary Reproducibility: Do we have a high-confidence way to reproduce the issue? Source-reproducible, but not live-reproduced in this read-only pass: current main shows the non-isolated shard and first-line log assumption, and upstream Next step before merge Security Review findings
Review detailsBest possible solution: Keep the useful shard isolation and log-record lookup changes, but drain the expected Do we have a high-confidence way to reproduce the issue? Do we have a high-confidence way to reproduce the issue? Source-reproducible, but not live-reproduced in this read-only pass: current main shows the non-isolated shard and first-line log assumption, and upstream Is this the best way to solve the issue? Is this the best way to solve the issue? No, not as submitted. The selected stabilization surfaces are narrow, but the websocket open timeout must keep or install an error listener while closing a CONNECTING socket. Full review comments:
Overall correctness: patch is incorrect Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against e8d0cf75ea0e. |
Summary
Validation
pnpm exec oxfmt --check --threads=1 test/vitest/vitest.gateway-server.config.ts src/gateway/server-http.request-trace.test.ts src/gateway/shared-auth.test-helpers.ts src/gateway/server-network-runtime.e2e.test.ts CHANGELOG.mdOPENCLAW_VITEST_MAX_WORKERS=2 OPENCLAW_VITEST_NO_OUTPUT_TIMEOUT_MS=60000 pnpm exec node scripts/run-vitest.mjs run --config test/vitest/vitest.gateway-server.config.ts --reporter=dotpnpm check:changedpnpm test:changedNotes
Reproduced two failure classes locally before the fix: request-trace assertions reading unrelated startup logs, and a gateway-server no-output timeout under non-isolated parallel file execution. The exact CI-side
server.config-patch.test.tsassertion failure did not reproduce on latest main, but it matched the same shared process-state pattern.