Repository navigation
Ensure delete-after uses content verification before skipping copy - #2080
Merged
Merged
Conversation
4 tasks
oferchen
added a commit
that referenced
this pull request
May 5, 2026
) Pin the parameters, invariants, and pass/fail thresholds for the extreme sparse-match fixture: a 100 MiB basis where one block in 25600 matches the target. The fixture is the principal large-N evidence gate for the bithash prefilter (#2061) before it lands in release configuration.
5 tasks done
oferchen
added a commit
that referenced
this pull request
May 16, 2026
…2079 #2080) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
oferchen
added a commit
that referenced
this pull request
May 16, 2026
…2079 #2080) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
oferchen
added a commit
that referenced
this pull request
May 16, 2026
…2079 #2080) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
oferchen
added a commit
that referenced
this pull request
May 16, 2026
…2079 #2080) (#4164) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
4 tasks
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Pin the parameters, invariants, and pass/fail thresholds for the extreme sparse-match fixture: a 100 MiB basis where one block in 25600 matches the target. The fixture is the principal large-N evidence gate for the bithash prefilter (#2061) before it lands in release configuration.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2079 #2080) (#4164) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…2079 #2080) (#4164) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) Pin the parameters, invariants, and pass/fail thresholds for the extreme sparse-match fixture: a 100 MiB basis where one block in 25600 matches the target. The fixture is the principal large-N evidence gate for the bithash prefilter (#2061) before it lands in release configuration.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…2079 #2080) (#4164) Combine the two zsync-prefilter adversarial regression gates the optimisation tracker calls out in project_zsync_optimizations.md: - #2079 shifted-insertion: extend the existing 32 KiB fixture with a 1 MiB-basis case driven by a deterministic xorshift64* PRNG. Asserts that the delta references basis blocks on both sides of the insertion for a parameterised (N, M) vector covering aligned, sub-block, sub-word, and tail-edge insert positions. Lost-block tolerance is one block (the boundary block of an unaligned insert). - #2080 sparse-match: new internal unit test sitting inside src/index/ so it can probe the otherwise private bithash field without enlarging the public API. Builds a 100 MiB basis + 100 MiB target whose only overlap is a single 4 KiB planted region, then drives the rolling window over the full target asserting (a) exactly one block-aligned match per basis block in the planted region, (b) the match's offset and length, and (c) a >= 70 % bithash rejection rate over the non-planted region. The 100 MiB case is marked #[ignore] so the default nextest run stays fast; stress runs invoke it explicitly via --run-ignored. Both tests use deterministic xorshift PRNGs so the inputs are reproducible without committing binary fixtures to the test tree. Files: - crates/matching/tests/shifted_insertion_fixture.rs (+234) - crates/matching/src/index/sparse_match_tests.rs (new, +312) - crates/matching/src/index/mod.rs (+2, register submodule)
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
Testing
cargo test -p oc-rsync-engine execute_with_delete_after_removes_extraneous_entries -- --nocapturecargo test -p oc-rsync-engine execute_with_delete_delay_removes_extraneous_entries -- --nocapture[Codex Task](