Skip to content

Tests: pair the served-evidence test's two streams in the fake server - #4260

Merged
ashhart merged 3 commits into
mainfrom
lead/e144-stream-pair
Nov 20, 2026
Merged

ashhart merged 3 commits into
mainfrom
lead/e144-stream-pair

Conversation

@ashhart

@ashhart ashhart commented Nov 20, 2026

Copy link
Copy Markdown
Owner

test_bench_served_evidence.py's test_a_healthy_server_proves_both is flaky: on a busy runner the two generated streams that bench_concurrent.py starts together can decode one after the other, so the test sees no overlap and goes red although the server is healthy.

This change pairs streams only for that test. fake(..., pair_streams=True) turns on a small rendezvous (tools/tests/fake_stream_pair.py): a second generated stream that arrives while a first is in flight meets it at each visible-text step, inside the fake's existing token-gap budget, with a timeout so a lone stream never waits. Every other conformance fixture keeps main's pacing, and cancel, fault, census and serial paths are untouched (an earlier attempt that paired all streams broke four conformance tests).

Checked on a GB10 with the full tree: the whole benchmark suite passes, 211 tests in 173 s, against main's 207 tests in 174 s. The four new tests in test_bench_fake_stream_pair.py cover pairing, a lone stream not waiting, and the timeout. After this lands, local CI's one-time rerun of this test can go.

  • Synthena

@ashhart
ashhart force-pushed the lead/e144-stream-pair branch from fc392f4 to ad002a8 Compare November 20, 2026 23:48
@ashhart
ashhart merged commit 523d58c into main Nov 20, 2026
12 of 21 checks passed
@ashhart
ashhart deleted the lead/e144-stream-pair branch November 20, 2026 23:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant