Repository navigation
test(interop): live transfer fuzzer with seedable RNG (#1196) - #4185
Merged
Merged
Conversation
oferchen
force-pushed
the
test/live-interop-fuzz-1196
branch
from
May 16, 2026 20:44
07ea461 to
eb46e7d
Compare
oferchen
force-pushed
the
test/live-interop-fuzz-1196
branch
3 times, most recently
from
May 16, 2026 22:38
823a6de to
7d0b0ee
Compare
Add tests/live_interop_fuzz_1196.rs: a randomised, seedable integration test that drives local transfers through both oc-rsync and an upstream rsync 3.4.x binary, then compares the resulting trees via SHA-256 file-content hashes plus symlink-target equality. Each iteration generates a random tree (files, dirs, mtimes, perms, sparse holes, optional symlinks), runs oc-rsync src->dst_a, runs upstream src->dst_b, and asserts both destinations match the source and each other. About one iteration in three then mutates the source and re-runs to verify reconciliation under --delete. Two tiers are exposed, both #[ignore] so they only run via --run-ignored=all: - live_interop_fuzz_smoke: budget capped at 120 s, small trees only. - live_interop_fuzz_extended: budget governed by OC_RSYNC_FUZZ_BUDGET_SECS (default 60, recommended 3600 for nightly). Reproducibility is via a seedable xorshift64* PRNG; failures print the seed and the env-var command to replay them. The harness skips cleanly when no upstream rsync is available (env OC_RSYNC_FUZZ_UPSTREAM_BIN, target/interop/upstream-install/3.4.x/bin/rsync, or PATH). This complements the static adversarial corpus work by exercising dynamic edge cases the fixed corpus cannot cover.
oferchen
force-pushed
the
test/live-interop-fuzz-1196
branch
from
May 16, 2026 23:19
7d0b0ee to
b82946c
Compare
4 tasks
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add tests/live_interop_fuzz_1196.rs: a randomised, seedable integration test that drives local transfers through both oc-rsync and an upstream rsync 3.4.x binary, then compares the resulting trees via SHA-256 file-content hashes plus symlink-target equality. Each iteration generates a random tree (files, dirs, mtimes, perms, sparse holes, optional symlinks), runs oc-rsync src->dst_a, runs upstream src->dst_b, and asserts both destinations match the source and each other. About one iteration in three then mutates the source and re-runs to verify reconciliation under --delete. Two tiers are exposed, both #[ignore] so they only run via --run-ignored=all: - live_interop_fuzz_smoke: budget capped at 120 s, small trees only. - live_interop_fuzz_extended: budget governed by OC_RSYNC_FUZZ_BUDGET_SECS (default 60, recommended 3600 for nightly). Reproducibility is via a seedable xorshift64* PRNG; failures print the seed and the env-var command to replay them. The harness skips cleanly when no upstream rsync is available (env OC_RSYNC_FUZZ_UPSTREAM_BIN, target/interop/upstream-install/3.4.x/bin/rsync, or PATH). This complements the static adversarial corpus work by exercising dynamic edge cases the fixed corpus cannot cover.
oferchen
added a commit
that referenced
this pull request
May 18, 2026
Add tests/live_interop_fuzz_1196.rs: a randomised, seedable integration test that drives local transfers through both oc-rsync and an upstream rsync 3.4.x binary, then compares the resulting trees via SHA-256 file-content hashes plus symlink-target equality. Each iteration generates a random tree (files, dirs, mtimes, perms, sparse holes, optional symlinks), runs oc-rsync src->dst_a, runs upstream src->dst_b, and asserts both destinations match the source and each other. About one iteration in three then mutates the source and re-runs to verify reconciliation under --delete. Two tiers are exposed, both #[ignore] so they only run via --run-ignored=all: - live_interop_fuzz_smoke: budget capped at 120 s, small trees only. - live_interop_fuzz_extended: budget governed by OC_RSYNC_FUZZ_BUDGET_SECS (default 60, recommended 3600 for nightly). Reproducibility is via a seedable xorshift64* PRNG; failures print the seed and the env-var command to replay them. The harness skips cleanly when no upstream rsync is available (env OC_RSYNC_FUZZ_UPSTREAM_BIN, target/interop/upstream-install/3.4.x/bin/rsync, or PATH). This complements the static adversarial corpus work by exercising dynamic edge cases the fixed corpus cannot cover.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Add tests/live_interop_fuzz_1196.rs: a randomised, seedable integration test that drives local transfers through both oc-rsync and an upstream rsync 3.4.x binary, then compares the resulting trees via SHA-256 file-content hashes plus symlink-target equality. Each iteration generates a random tree (files, dirs, mtimes, perms, sparse holes, optional symlinks), runs oc-rsync src->dst_a, runs upstream src->dst_b, and asserts both destinations match the source and each other. About one iteration in three then mutates the source and re-runs to verify reconciliation under --delete. Two tiers are exposed, both #[ignore] so they only run via --run-ignored=all: - live_interop_fuzz_smoke: budget capped at 120 s, small trees only. - live_interop_fuzz_extended: budget governed by OC_RSYNC_FUZZ_BUDGET_SECS (default 60, recommended 3600 for nightly). Reproducibility is via a seedable xorshift64* PRNG; failures print the seed and the env-var command to replay them. The harness skips cleanly when no upstream rsync is available (env OC_RSYNC_FUZZ_UPSTREAM_BIN, target/interop/upstream-install/3.4.x/bin/rsync, or PATH). This complements the static adversarial corpus work by exercising dynamic edge cases the fixed corpus cannot cover.
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
tests/live_interop_fuzz_1196.rs, a randomised integration test that drivesoc-rsyncand an upstreamrsync3.4.x binary against the same generated tree and verifies both produce a byte-identical copy of the source.oc-rsync src/ dst_a/andrsync src/ dst_b/, then comparessrc,dst_a, anddst_bsnapshots via SHA-256 file-content hashes plus symlink-target equality. About one iteration in three mutatessrc(add / delete / extend files) and re-runs the transfer under--deleteto assert reconciliation.#[ignore]so they only run with--run-ignored=all:live_interop_fuzz_smoke: 60 s default budget, capped at 120 s, small trees only -- suitable for nightly CI.live_interop_fuzz_extended: budget governed byOC_RSYNC_FUZZ_BUDGET_SECS(set to3600for an hour-long extended run), cycles through small / medium / large tree shapes.OC_RSYNC_FUZZ_SEED=<u64>.OC_RSYNC_FUZZ_UPSTREAM_BIN,target/interop/upstream-install/3.4.{1,2}/bin/rsync, thenPATH).Test plan
cargo check --testssucceeds on macOS.cargo clippy --tests --all-features --no-depsis clean for the new file.cargo nextest run --workspace -E 'test(live_interop_fuzz)' --run-ignored=allOC_RSYNC_FUZZ_SEED=<seed> OC_RSYNC_FUZZ_BUDGET_SECS=600 cargo nextest run --workspace -E 'test(live_interop_fuzz)' --run-ignored=allNotes
#![cfg(unix)]so it does not affect Windows builds; this matches the pattern other interop tests use because upstream rsync is Unix-only.checksums::strong::Sha256,filetime,tempfilevia the sharedintegration::helpers). No new external crates added.