Skip to content

test: expect 3.5.1's inflate error text in the zstd-batch replay test - #8370

Merged
oferchen merged 1 commit into
masterfrom
fix/batch-test-inflate-message
Nov 11, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/batch-test-inflate-message

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Master's required nextest (stable) and Linux musl (stable) have been red since 899a1c9 (#8352) on one test:

batch tests::integration::test_replay_zstd_magic_payload_not_autodetected
panicked at crates/batch/src/tests.rs:1374:9:
the zlib inflater must be what rejects the zstd frame: oc-rsync error: batch replay failed: inflate returned -3 (0 bytes) (code 1)

#8352 made the zlib inflater print upstream's own line, inflate returned %d (%d bytes) (token.c:667). This test still asserted oc's old invented text, deflate decompression error. The test's intent hasn't changed: replay must fail and the zlib inflater must be what rejects the zstd frame. Only the expected string moves to the upstream text, with the citation. No other test asserts the old text (git grep).

Verification: the failing master runs (42980782556, 42988312596) show stderr containing inflate returned -3 (0 bytes), which the new assertion matches. This PR's CI runs the test.

@github-actions github-actions Bot added the test label Nov 11, 2026
@oferchen
oferchen force-pushed the fix/batch-test-inflate-message branch 2 times, most recently from adef0c1 to c3d8838 Compare November 11, 2026 10:30
@oferchen
oferchen force-pushed the fix/batch-test-inflate-message branch from c3d8838 to d2a1813 Compare November 11, 2026 10:49
#8352 made the zlib inflater print upstream's own line,
"inflate returned %d (%d bytes)" (token.c:667), in place of oc's
invented "deflate decompression error". This test still asserted the
old text, so the required nextest has been red on master since
899a1c9.
@oferchen
oferchen force-pushed the fix/batch-test-inflate-message branch from d2a1813 to 6153f22 Compare November 11, 2026 11:02
@oferchen
oferchen merged commit 838c931 into master Nov 11, 2026
31 checks passed
@oferchen
oferchen deleted the fix/batch-test-inflate-message branch November 11, 2026 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant