codex/codex-rs/core/tests/common
jif 7769bccbb2 Avoid WebSocket connection waits in Guardian v2 classification (#43408)
## Why

When no healthy pooled WebSocket is available, classification waits for a new connection to open and can stall on its handshake.

## What changed

- Use HTTP streaming when no healthy idle WebSocket is ready, and replenish the pool in the background with a five-minute cooldown after connection timeouts.
- Share concurrency limits and the sampling retry budget across both transports, and bound the wait for HTTP response headers.
- Cancel superseded requests while awaiting response headers and stop SSE polling when the consumer closes.

## Testing

Add coverage for HTTP fallback and recovery after cooldown, shared transport capacity, stalled response headers, and cancellation before headers or during body draining. Update sampler and extension tests to cover fallback after socket expiry, authentication changes, and transient failures.

GitOrigin-RevId: 0b23ccc1bfb2dfdbc8d2791d097706cd4dd44f39
History 2026-09-07 09:24:03 +00:00
..
apps_test_server.rs Make the Apps recovery exposure test deterministic (#35196) 2026-07-24 14:41:21 +00:00
BUILD.bazel Remove CODEX_RS_SSE_FIXTURE test hook (#22413) 2026-05-13 03:08:01 +00:00
Cargo.toml Support metadata staging for reserved thread IDs (#38819) 2026-08-16 00:57:28 +00:00
context_snapshot.rs Track deferred tool namespaces in world state (#35063) 2026-07-24 01:20:04 +00:00
hooks.rs Add keyed shell environment policy filters (#34590) 2026-07-21 18:23:26 +00:00
lib.rs Harden core test fixture startup assertions (#41194) 2026-08-27 19:58:09 +00:00
process.rs feat: close unified_exec at end of turn (#8052) 2025-12-16 12:16:43 +00:00
responses.rs Avoid WebSocket connection waits in Guardian v2 classification (#43408) 2026-09-07 09:24:03 +00:00
startup.rs Harden core test fixture startup assertions (#41194) 2026-08-27 19:58:09 +00:00
startup_tests.rs Harden core test fixture startup assertions (#41194) 2026-08-27 19:58:09 +00:00
streaming_sse.rs Persist Daybreak preferences in thread metadata (#42854) 2026-09-04 21:17:25 +00:00
test_codex.rs Add an injectable attachment store to ThreadManager (#42634) 2026-09-03 23:20:54 +00:00
test_codex_exec.rs [codex] Use expect in integration tests (#28441) 2026-06-15 21:53:47 -07:00
test_environment.rs test: branch on target OS instead of runner flavor (#29712) 2026-06-23 14:27:13 -07:00
test_environment_tests.rs test: branch on target OS instead of runner flavor (#29712) 2026-06-23 14:27:13 -07:00
tracing.rs feat(core, tracing): create turn spans over websockets (#14632) 2026-03-19 03:41:06 +00:00
zsh_fork.rs Deduplicate zsh fork test setup (#39790) 2026-08-20 19:43:54 +00:00