Repository navigation
Respect last occurrence for tri-state toggles - #2079
Merged
Merged
Conversation
4 tasks
oferchen
added a commit
that referenced
this pull request
May 5, 2026
#3723) Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
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
#3723) Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
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
#3723) Add design note for the canonical zsync-style insertion adversary at docs/design/zsync-shifted-insertion-test.md, pinning the public-API guard for the four pipeline optimizations enumerated in docs/design/zsync-inspired-matching.md (#2053). Documents the fixture parameters, expected match output for aligned vs unaligned regimes, the upstream rsync --stats comparison oracle, CI integration gated by SIMD parity (#2077), and the failure modes (signed-byte regression #2076 class, off-by-one in seek, bithash false negative #2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs, strong-checksum truncation drift, ring-buffer wrap bugs). Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs, the sibling rsum-collision fixture from #2078, and the rolling sign-extension fix from PR #3560 (commit 723a0a0).
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
--perms/--no-permsand--dirs/--no-dirsto lock down the precedenceTesting
[Codex Task](