Skip to content

test: allow clean EOF in auto-create read_session tests - #163

Merged
shikhar merged 1 commit into
mainfrom
test/allow-empty-eof-auto-create-read-session
Nov 27, 2026
Merged

shikhar merged 1 commit into
mainfrom
test/allow-empty-eof-auto-create-read-session

Conversation

@shikhar

@shikhar shikhar commented Nov 27, 2026

Copy link
Copy Markdown
Member

TestAutoCreateStreamConfig._run_with_stream_config opens read_session(start=SeqNum(0), limit=ReadLimit(count=1), stream_config=config) on an empty stream to verify stream auto-creation config handling.

Older servers return 416 (ReadUnwrittenError) when a streaming read starts at the tail without wait, whereas newer servers (s2-streamstore/s2#933, s2-streamstore/s2-cloud#2059) emit a tail heartbeat and end cleanly with no batches.

Accept either outcome here (while still asserting no batches are yielded and still verifying get_stream_config afterwards) so integration tests pass against both server versions during rollout.

@shikhar
shikhar requested a review from a team as a code owner November 27, 2026 03:42
@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · This test-only change appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This test-only change appears safe to merge.

Summary

Updates the auto-create configuration tests to accept either ReadUnwrittenError or clean EOF from an empty read_session.

  • Auto-create read-session tests accept clean EOF on empty streams.

Reviews (1) · Last reviewed commit: "test: allow clean EOF in auto-create rea..." · Reviewed by Greptile

@shikhar
shikhar merged commit 0f94b46 into main Nov 27, 2026
6 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