Skip to content

Ensure delete-after uses content verification before skipping copy - #2080

Merged
oferchen merged 1 commit into
masterfrom
fix-failing-tests-in-local_copy-module
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-failing-tests-in-local_copy-module

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • ensure local copy verifies content matches before skipping a transfer when deletions are deferred so stale data is not left behind

Testing

  • cargo test -p oc-rsync-engine execute_with_delete_after_removes_extraneous_entries -- --nocapture
  • cargo test -p oc-rsync-engine execute_with_delete_delay_removes_extraneous_entries -- --nocapture

[Codex Task](

@oferchen
oferchen merged commit 2e53a70 into master Nov 8, 2025
@oferchen
oferchen deleted the fix-failing-tests-in-local_copy-module branch November 8, 2025 19:18
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.
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)
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)
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