Repository navigation
test(engine): isolated unit tests per SpillPolicy knob (STN-13 #2347) - #4393
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/stn-13-unit-tests-per-knob
branch
from
May 18, 2026 00:57
81a0b71 to
0116729
Compare
Cover the SpillPolicy fields whose runtime behaviour is wired today: - threshold_bytes: spill stays off at exactly the threshold, engages on the first byte over, and engages immediately on a zero budget. - dir: the override path is observed by the buffer, items round-trip through it, the directory is created eagerly, the recreate-once recovery path fires when the override vanishes pre-spill, and the default `None` keeps the spooled backend. The remaining knobs (reclaim_mode, granularity, compression) are placeholders for STN-4..7 and have no observable runtime effect yet, so no tests are emitted for them here. Tests are hermetic (TempDir per FS test) and live in a new submodule crates/engine/src/concurrent_delta/spill/tests_per_knob.rs.
oferchen
force-pushed
the
feature/stn-13-unit-tests-per-knob
branch
from
May 18, 2026 01:17
0116729 to
159dd99
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4393) Cover the SpillPolicy fields whose runtime behaviour is wired today: - threshold_bytes: spill stays off at exactly the threshold, engages on the first byte over, and engages immediately on a zero budget. - dir: the override path is observed by the buffer, items round-trip through it, the directory is created eagerly, the recreate-once recovery path fires when the override vanishes pre-spill, and the default `None` keeps the spooled backend. The remaining knobs (reclaim_mode, granularity, compression) are placeholders for STN-4..7 and have no observable runtime effect yet, so no tests are emitted for them here. Tests are hermetic (TempDir per FS test) and live in a new submodule crates/engine/src/concurrent_delta/spill/tests_per_knob.rs.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4393) Cover the SpillPolicy fields whose runtime behaviour is wired today: - threshold_bytes: spill stays off at exactly the threshold, engages on the first byte over, and engages immediately on a zero budget. - dir: the override path is observed by the buffer, items round-trip through it, the directory is created eagerly, the recreate-once recovery path fires when the override vanishes pre-spill, and the default `None` keeps the spooled backend. The remaining knobs (reclaim_mode, granularity, compression) are placeholders for STN-4..7 and have no observable runtime effect yet, so no tests are emitted for them here. Tests are hermetic (TempDir per FS test) and live in a new submodule crates/engine/src/concurrent_delta/spill/tests_per_knob.rs.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#4393) Cover the SpillPolicy fields whose runtime behaviour is wired today: - threshold_bytes: spill stays off at exactly the threshold, engages on the first byte over, and engages immediately on a zero budget. - dir: the override path is observed by the buffer, items round-trip through it, the directory is created eagerly, the recreate-once recovery path fires when the override vanishes pre-spill, and the default `None` keeps the spooled backend. The remaining knobs (reclaim_mode, granularity, compression) are placeholders for STN-4..7 and have no observable runtime effect yet, so no tests are emitted for them here. Tests are hermetic (TempDir per FS test) and live in a new submodule crates/engine/src/concurrent_delta/spill/tests_per_knob.rs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SpillPolicyfield, asserting the observable behaviour implied by the knob.threshold_bytes: exact-threshold non-spill, over-threshold spill, zero-budget spill on first insert.dir: override is observed by the buffer, items round-trip through it, directory is created eagerly, recreate-once recovery fires when the override vanishes pre-spill, defaultNonekeeps the spooled backend.reclaim_mode,granularity,compression- STN-4..7) are intentionally not covered.Test plan
cargo fmt --allcleanCloses #2347.