Skip to content

Test: Do not accept an engine error as a streamed reply - #147

Merged
b-re-w merged 1 commit into
developfrom
feat/server-test
Oct 3, 2026
Merged

b-re-w merged 1 commit into
developfrom
feat/server-test

Conversation

@b-re-w

@b-re-w b-re-w commented Oct 3, 2026

Copy link
Copy Markdown
Member

test_streams_tokens_then_eos passed on torchnative 0.1.0b4 + mps although every engine call failed (the reply was an ERROR: frame). It now asserts the reply contains no ERROR: marker. Real-model test: verified by CI on SmolLM2.

Closes #146

test_streams_tokens_then_eos only checked that some text arrived before
<EOS>, so it passed on mps where every engine call failed: the model
layer turns the failure into an 'ERROR:' message frame. It now rejects
that.
@b-re-w
b-re-w merged commit ea2d3e8 into develop Oct 3, 2026
4 checks passed
@b-re-w
b-re-w deleted the feat/server-test branch October 3, 2026 10:33
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