Repository navigation
test: run the lsm tests in CI and fix the one that rotted - #608
Conversation
The test job never enabled `lsm`, so its tests were compiled by clippy and skipped by every test run, and one of them went red unnoticed: expect_window_descriptor_mismatch_fails_before_decode compressed 512 KiB in one shot and expected a window descriptor. With the content size known the window is fitted to the input and the frame is single-segment, as upstream zstd emits it; the test now compresses past the default level's largest window (2 MiB), where the descriptor is on the wire. Closes #607
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
## 🤖 New release * `structured-zstd`: 0.2.2 -> 0.2.3 <details><summary><i><b>Changelog</b></i></summary><p> <blockquote> ## [0.2.3](v0.2.2...v0.2.3) - 2026-10-19 ### Added - *(c-api)* the experimental zstd.h and zdict.h surface ([#602](#602)) ### Fixed - *(decoder)* hand out every decoded byte, not only what left the window ([#605](#605)) - *(encoder)* take table pointers from the table, not a slice ([#598](#598)) ### Testing - *(ci)* prove the drop-in claim against upstream's suites, the reference CLI and real consumers ([#610](#610)) - run the lsm tests in CI and fix the one that rotted ([#608](#608)) </blockquote> </p></details> --- This PR was generated with [release-plz](https://github.com/release-plz/release-plz/). Co-authored-by: sw-release-bot[bot] <255865126+sw-release-bot[bot]@users.noreply.github.com>
Summary
testjob runs thelsmtests, which every test run compiled out until now.expect_window_descriptor_mismatch_fails_before_decodecompresses past the default level's largest window, so its frame carries a window descriptor; a one-shot frame of known size is single-segment, as upstream emits it.Changes
.github/workflows/ci.yml:lsmjoins the first suite's feature set.zstd/src/decoding/frame_decoder/tests.rs: 3 MiB input instead of 512 KiB, with the reason at the test.Testing
cargo nextest run -p structured-zstd --features hash,std,dict-builder,lsmpasses locally; fmt clean.Closes #607
Summary by CodeRabbit