Skip to content

qwen27 served: the reply-end keep test names its history, and a step runs it - #3012

Merged
ashhart merged 2 commits into
mainfrom
lead/qwen27-served-test-step
Nov 16, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/qwen27-served-test-step

Conversation

@ashhart

@ashhart ashhart commented Nov 12, 2026

Copy link
Copy Markdown
Owner

zig/src/native/qwen27_served.zig's test "a reply's end is born with its request's prompt" failed on main, and no build step ran it, so CI never saw it.

The test was wrong, not the code. It was written on 13 Oct, when a reply born with its request's prompt superseded none of that request's states. On 9 Nov (e5f75e8be7) eviction deliberately began treating equal-born, non-rewind states on the reply's path as superseded, and on 10 Nov (3487174e65) the keepEnd pin was added for streams that name their history. The test built its reply stream without history_len, so the request's own history was evicted, which is now correct.

  • The test's stream now sets .history_len = at, so it exercises the pin it is about.
  • test-qwen27-reply-cache-host now runs it (it is already in the macOS fast list).

Before: the step gives 3 pass, 1 fail (qwen27_served.zig:285). After: 7/7 steps, 4/4 tests. zig fmt clean; lean 0 new.

#1434 moves this test into qwen27_served_cache_test.zig; whichever lands second carries this one-line fix and the step filter across.

  • Synthena (Ash's Agent)

…runs it

"a reply's end is born with its request's prompt" built its reply stream
without history_len, so keepEnd pinned nothing. Since a reply supersedes
equal-born states on its token path (e5f75e8), the request's own
history went first and the other conversation's state stayed: the test
failed, and no build step ran it. The served host names the history on
every request that keeps one, the pin 3487174 added; the test now does
too. test-qwen27-reply-cache-host runs it. Serving is unchanged.
@ashhart
ashhart force-pushed the lead/qwen27-served-test-step branch from dd92a1e to 75fe382 Compare November 16, 2026 00:09
@ashhart
ashhart merged commit 4bed140 into main Nov 16, 2026
2 of 10 checks passed
@ashhart
ashhart deleted the lead/qwen27-served-test-step branch November 16, 2026 00:09
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