Repository navigation
test(interop): INC_RECURSE sender fuzz against upstream rsync (#1863) - #4199
Merged
Merged
Conversation
Adds tests/inc_recurse_sender_fuzz_1863.rs, a sister harness to
live_interop_fuzz_1196.rs that focuses on the oc-rsync sender path with
INC_RECURSE ('i') negotiated on. Two `#[ignore]` smoke and extended
tiers generate random source trees, push them through both a local
oc-rsync invocation and a pipe-driven `--server --sender` against
upstream rsync 3.0.9/3.1.3/3.4.1 receivers, and assert byte-identical
destinations via sha256.
Runtime opt-in: `--inc-recursive` CLI flag (no env var or build toggle
required). The flag flips ClientConfig::inc_recursive_send to true,
which causes build_capability_string to include 'i' in the -e string
advertised to the peer.
Skips cleanly when no upstream rsync binary is available, mirroring the
behaviour of the existing live interop fuzzer.
oferchen
force-pushed
the
test/inc-recurse-sender-fuzz-1863
branch
from
May 17, 2026 03:43
de4b0c4 to
0188e9d
Compare
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4199) * test(interop): INC_RECURSE sender fuzz against upstream rsync (#1863) Adds tests/inc_recurse_sender_fuzz_1863.rs, a sister harness to live_interop_fuzz_1196.rs that focuses on the oc-rsync sender path with INC_RECURSE ('i') negotiated on. Two `#[ignore]` smoke and extended tiers generate random source trees, push them through both a local oc-rsync invocation and a pipe-driven `--server --sender` against upstream rsync 3.0.9/3.1.3/3.4.1 receivers, and assert byte-identical destinations via sha256. Runtime opt-in: `--inc-recursive` CLI flag (no env var or build toggle required). The flag flips ClientConfig::inc_recursive_send to true, which causes build_capability_string to include 'i' in the -e string advertised to the peer. Skips cleanly when no upstream rsync binary is available, mirroring the behaviour of the existing live interop fuzzer. * style(tests): apply rustfmt to inc_recurse_sender_fuzz_1863 * test(interop): remove unused gen_bool helper from fuzz harness
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…#4199) * test(interop): INC_RECURSE sender fuzz against upstream rsync (#1863) Adds tests/inc_recurse_sender_fuzz_1863.rs, a sister harness to live_interop_fuzz_1196.rs that focuses on the oc-rsync sender path with INC_RECURSE ('i') negotiated on. Two `#[ignore]` smoke and extended tiers generate random source trees, push them through both a local oc-rsync invocation and a pipe-driven `--server --sender` against upstream rsync 3.0.9/3.1.3/3.4.1 receivers, and assert byte-identical destinations via sha256. Runtime opt-in: `--inc-recursive` CLI flag (no env var or build toggle required). The flag flips ClientConfig::inc_recursive_send to true, which causes build_capability_string to include 'i' in the -e string advertised to the peer. Skips cleanly when no upstream rsync binary is available, mirroring the behaviour of the existing live interop fuzzer. * style(tests): apply rustfmt to inc_recurse_sender_fuzz_1863 * test(interop): remove unused gen_bool helper from fuzz harness
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…#4199) * test(interop): INC_RECURSE sender fuzz against upstream rsync (#1863) Adds tests/inc_recurse_sender_fuzz_1863.rs, a sister harness to live_interop_fuzz_1196.rs that focuses on the oc-rsync sender path with INC_RECURSE ('i') negotiated on. Two `#[ignore]` smoke and extended tiers generate random source trees, push them through both a local oc-rsync invocation and a pipe-driven `--server --sender` against upstream rsync 3.0.9/3.1.3/3.4.1 receivers, and assert byte-identical destinations via sha256. Runtime opt-in: `--inc-recursive` CLI flag (no env var or build toggle required). The flag flips ClientConfig::inc_recursive_send to true, which causes build_capability_string to include 'i' in the -e string advertised to the peer. Skips cleanly when no upstream rsync binary is available, mirroring the behaviour of the existing live interop fuzzer. * style(tests): apply rustfmt to inc_recurse_sender_fuzz_1863 * test(interop): remove unused gen_bool helper from fuzz harness
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/inc_recurse_sender_fuzz_1863.rs, an opt-in fuzz harness thatexercises the oc-rsync sender path with INC_RECURSE negotiated on, pushing
randomised trees to upstream rsync 3.0.9 / 3.1.3 / 3.4.1 receivers and
asserting byte-identical destinations via sha256.
live interop fuzzer (PR test(interop): live transfer fuzzer with seedable RNG (#1196) #4185 / tracker Prevent module burst from raising daemon bwlimit #1196).
--inc-recursiveflipsClientConfig::inc_recursive_sendtotrue, whichcauses
build_capability_string(the single source of truth incrates/transfer/src/setup/capability.rs) to include the'i'capabilityin the
-estring advertised to the peer.--server --senderthrough bidirectional pipes, mimicking what an SSHtransport would do. A lighter-weight local push pass guards the
inc_recursive_sendplumbing in environments without upstream rsync.inc_recurse_sender_fuzz_smokeandinc_recurse_sender_fuzz_extendedare
#[ignore]so they only run via--run-ignored=all.Reproducibility
All randomness flows through a single xorshift64* PRNG seeded by either
the system clock or
OC_RSYNC_FUZZ_SEED. On failure the test prints theseed and the exact reproducer command.
Test plan
#[ignore], nocoverage change on the default run)
OC_RSYNC_FUZZ_BUDGET_SECS=120 cargo nextest run --workspace \ -E 'test(inc_recurse_sender_fuzz)' --run-ignored=alltarget/interop/upstream-install/*/bin/rsyncis absent (the test prints
skip:and returns without failing).