Repository navigation
test: a third stream past two lanes queues, then runs in every shared round - #3757
Merged
Merged
Conversation
ashhart
force-pushed
the
lead/third-stream-queue-test
branch
2 times, most recently
from
November 18, 2026 17:58
c0b7040 to
e6f3bf3
Compare
This was referenced Nov 19, 2026
With --parallel 2 a third stream waits for a lane and then shares rounds at the normal rate; it is not put on a lone or degraded path. This fake-backend regression pins the engine_busy wait reason, FIFO admission behind the first two streams, and full shared-round decode with the fake's own tokens once a lane frees. Test code only; the engine is unchanged.
The test observed a transient two-admitted/one-queued state within one millisecond and assumed the lone driver never opens. On a busy runner the engine can admit nothing in that window, and the lone driver can take a stream, so the assertions failed even though the lane host queued C and decoded it in shared rounds. Wait up to ten seconds for C's named engine_busy reason, keep A and B long enough for that observation, and remove the lone driver so the lane core is the only path C can take.
ashhart
force-pushed
the
lead/third-stream-queue-test
branch
from
November 20, 2026 09:12
e6f3bf3 to
f46a5c4
Compare
Merged
8 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.
A user report said a third stream on a two-lane server ran slower than the first two. A repro on our Mac Studio showed normal queueing: the third request waits for a lane, then runs at the same per-round rate as the others. This PR pins that behaviour so it cannot regress.
The new fake-backend test in
zig/src/core/lane_host_lone_test.zig:engine_busyreason.Test code only; the engine is unchanged.
zig fmt --checkpasses on the file;test-lane-api-hostruns the new test green (the 12 failures in that step are the knownoriginals_testbaseline, untouched here).