Skip to content

Align skip-copy logic with rsync quick check - #2075

Merged
oferchen merged 1 commit into
masterfrom
fix-test-failures-in-transfer-requests
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-test-failures-in-transfer-requests

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • avoid computing checksums during the default quick-check so that matching size+mtime files are skipped without --ignore-times
  • scope the checksum-driven rewrite test to the checksum path so default comparisons retain upstream behaviour

Testing

  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test -p oc-rsync-cli frontend::tests::transfer_request_with_ignore_times_tests::transfer_request_with_ignore_times_forces_copy_despite_matching_timestamps -- --nocapture

[Codex Task](

@oferchen
oferchen merged commit 2711acd into master Nov 8, 2025
@oferchen
oferchen deleted the fix-test-failures-in-transfer-requests branch November 8, 2025 17:45
oferchen added a commit that referenced this pull request May 17, 2026
Add a daemon-vs-daemon byte equivalence probe that captures upstream
rsync 3.4.1 and oc-rsync running the same push scenario via tcpdump,
strips IP/TCP framing with tshark, normalizes ephemeral ports, and
compares the resulting application payload hashes.

* scripts/wire-equivalence-tcpdump.sh - self-contained harness that
  spins up both daemons on loopback inside a per-invocation scratch
  directory (never touches the workspace), runs an identical small-tree
  scenario through each, and exits 0 on match, 1 on divergence, 77 on
  skip (missing CAP_NET_RAW, no upstream binary, non-Linux host).
* tools/ci/run_wire_equivalence.sh - CI wrapper that probes the host
  for tcpdump/tshark and the two rsync binaries, skipping gracefully
  on platforms that cannot capture loopback traffic.
* crates/protocol/tests/wire_equivalence_tcpdump.rs - integration test
  that shells out to the harness when prerequisites are present and
  treats a missing toolchain as a non-fatal skip.

Known limitations documented in the test header: per-session random
seeds make a full byte match aspirational, so a divergence is a
triage signal, not a proof of bug. Retained pcaps under the scratch
dir support root-cause analysis.
oferchen added a commit that referenced this pull request May 18, 2026
Add a daemon-vs-daemon byte equivalence probe that captures upstream
rsync 3.4.1 and oc-rsync running the same push scenario via tcpdump,
strips IP/TCP framing with tshark, normalizes ephemeral ports, and
compares the resulting application payload hashes.

* scripts/wire-equivalence-tcpdump.sh - self-contained harness that
  spins up both daemons on loopback inside a per-invocation scratch
  directory (never touches the workspace), runs an identical small-tree
  scenario through each, and exits 0 on match, 1 on divergence, 77 on
  skip (missing CAP_NET_RAW, no upstream binary, non-Linux host).
* tools/ci/run_wire_equivalence.sh - CI wrapper that probes the host
  for tcpdump/tshark and the two rsync binaries, skipping gracefully
  on platforms that cannot capture loopback traffic.
* crates/protocol/tests/wire_equivalence_tcpdump.rs - integration test
  that shells out to the harness when prerequisites are present and
  treats a missing toolchain as a non-fatal skip.

Known limitations documented in the test header: per-session random
seeds make a full byte match aspirational, so a divergence is a
triage signal, not a proof of bug. Retained pcaps under the scratch
dir support root-cause analysis.
oferchen added a commit that referenced this pull request May 18, 2026
Add a daemon-vs-daemon byte equivalence probe that captures upstream
rsync 3.4.1 and oc-rsync running the same push scenario via tcpdump,
strips IP/TCP framing with tshark, normalizes ephemeral ports, and
compares the resulting application payload hashes.

* scripts/wire-equivalence-tcpdump.sh - self-contained harness that
  spins up both daemons on loopback inside a per-invocation scratch
  directory (never touches the workspace), runs an identical small-tree
  scenario through each, and exits 0 on match, 1 on divergence, 77 on
  skip (missing CAP_NET_RAW, no upstream binary, non-Linux host).
* tools/ci/run_wire_equivalence.sh - CI wrapper that probes the host
  for tcpdump/tshark and the two rsync binaries, skipping gracefully
  on platforms that cannot capture loopback traffic.
* crates/protocol/tests/wire_equivalence_tcpdump.rs - integration test
  that shells out to the harness when prerequisites are present and
  treats a missing toolchain as a non-fatal skip.

Known limitations documented in the test header: per-session random
seeds make a full byte match aspirational, so a divergence is a
triage signal, not a proof of bug. Retained pcaps under the scratch
dir support root-cause analysis.
oferchen added a commit that referenced this pull request Aug 24, 2026
Add a daemon-vs-daemon byte equivalence probe that captures upstream
rsync 3.4.1 and oc-rsync running the same push scenario via tcpdump,
strips IP/TCP framing with tshark, normalizes ephemeral ports, and
compares the resulting application payload hashes.

* scripts/wire-equivalence-tcpdump.sh - self-contained harness that
  spins up both daemons on loopback inside a per-invocation scratch
  directory (never touches the workspace), runs an identical small-tree
  scenario through each, and exits 0 on match, 1 on divergence, 77 on
  skip (missing CAP_NET_RAW, no upstream binary, non-Linux host).
* tools/ci/run_wire_equivalence.sh - CI wrapper that probes the host
  for tcpdump/tshark and the two rsync binaries, skipping gracefully
  on platforms that cannot capture loopback traffic.
* crates/protocol/tests/wire_equivalence_tcpdump.rs - integration test
  that shells out to the harness when prerequisites are present and
  treats a missing toolchain as a non-fatal skip.

Known limitations documented in the test header: per-session random
seeds make a full byte match aspirational, so a divergence is a
triage signal, not a proof of bug. Retained pcaps under the scratch
dir support root-cause analysis.
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