Skip to content

stabilize cold streaming smoke test - #155

Merged
raine merged 1 commit into
mainfrom
stabilize-cold-stream-smoke
Sep 14, 2026
Merged

raine merged 1 commit into
mainfrom
stabilize-cold-stream-smoke

Conversation

@raine

@raine raine commented Sep 14, 2026

Copy link
Copy Markdown
Owner

The HTTP streaming smoke test's 500 ms header timeout includes cold provider and tokenizer initialization. That can exceed the limit before streaming starts, especially with native certificate loading.

Raise only that outer deadlock guard to 3 seconds. The 200 ms first-frame assertion stays unchanged, and upstream completion remains blocked until headers and the first frame have arrived.

Validation: the tracked pre-commit hook passed formatting, Clippy, build, and all 1,039 tests. The adjusted test also passed 3 fresh-process diagnostic runs.

The streaming smoke test used a 500 ms deadlock guard around construction of
all provider clients, application setup, lazy tokenizer initialization, and
the HTTP streaming handshake. Measured cold initialization takes roughly 1.4
to 1.6 seconds on macOS: native-root client construction accounts for about
0.9 seconds and first-use tokenizer setup takes about 0.5 seconds.

Use a three-second outer guard so the test accommodates measured cold setup
with CI scheduling margin. The upstream terminal event remains blocked by the
fixture's notification gate, so returning headers still proves streaming
starts before upstream completion. Keep the separate 200 ms first-frame
assertion unchanged.
@raine
raine merged commit 80015f1 into main Sep 14, 2026
3 checks passed
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