Repository navigation
Tests: the Responses cancel test waits for its first token (main red at 4cfd955737) - #3255
Merged
Merged
Conversation
…cancels The fake lane counts the tokens it hands a sink, and the test cancels only past the first, so a turn always has text so far. On a slow Windows runner the cancel reached the engine before the worker's first token: the output array was empty and the test indexed it (main red at 4cfd955). The server is unchanged.
ashhart
added a commit
that referenced
this pull request
Nov 13, 2026
Figures and scope corrected to the PRs (#2948, #2863, #2934, #2933, #2921, #2906, #2878, #2892, #2851, #2728, #3072, #2915, #2864, #2854 and others), promises of later work removed (#2903, #2875, #1630, #1720), #3074 and #3047/#3046 said as their PRs scope them, the duplicate #2861, #2585, #2321 and #2719 entries and two copies of released 1.2.5 lines removed, #1953's line named for its PR, and a line for #3255. Released sections unchanged.
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.
Main went red on zig-windows at 4cfd955:
cancel_route_test's Responses case cancelled a turn as soon as it was queued, and on a slow runner the fake lane had not streamed a token yet, sooutputwas empty and the test indexed it (index 0, len 0). The test passed on the train's tip; it is a race in the test, not the server.The fake lane now counts the tokens it hands a sink, and the test cancels only after the first, as the chat cancel test already does by waiting for the stream's id. The server is unchanged.
Checked:
zig build -Dfixed-cpu test-server-cpupasses on macOS.