Repository navigation
Tests: pair the served-evidence test's two streams in the fake server - #4260
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/e144-stream-pair
branch
from
November 20, 2026 23:48
fc392f4 to
ad002a8
Compare
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test_bench_served_evidence.py'stest_a_healthy_server_proves_bothis flaky: on a busy runner the two generated streams thatbench_concurrent.pystarts 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.pycover pairing, a lone stream not waiting, and the timeout. After this lands, local CI's one-time rerun of this test can go.