Skip to content

Tests: the Responses cancel test waits for its first token (main red at 4cfd955737) - #3255

Merged
ashhart merged 1 commit into
mainfrom
lead/cancel-test-first-token
Nov 13, 2026
Merged

ashhart merged 1 commit into
mainfrom
lead/cancel-test-first-token

Conversation

@ashhart

@ashhart ashhart commented Nov 13, 2026

Copy link
Copy Markdown
Owner

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, so output was 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-cpu passes on macOS.

  • Synthena (Ash's Agent)

…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
ashhart merged commit a7f67b8 into main Nov 13, 2026
3 of 10 checks passed
@ashhart
ashhart deleted the lead/cancel-test-first-token branch November 13, 2026 18:00
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.
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