Skip to content

test(transfer): v0.6.1 daemon-push perf regression repro under sender-inc-recurse (V61D-2) - #4888

Merged
oferchen merged 3 commits into
masterfrom
test/v61d-2-daemon-push-perf-regression
May 24, 2026
Merged

oferchen merged 3 commits into
masterfrom
test/v61d-2-daemon-push-perf-regression

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds crates/transfer/tests/v61d_2_daemon_push_increcurse_perf_regression.rs, an integration test that reproduces the v0.6.1 daemon-push failure mode the V61D-1 audit (refactor: decompose cli metadata.rs into focused submodules #2840 / docs/audit/v061-daemon-push-regression.md) traced to PR feat(transfer): enable INC_RECURSE sender by default (#1862) #3557.
  • Pushes a ~1 MiB tree from oc-rsync (sender, sender-inc-recurse ON) to a spawned upstream rsync --daemon and asserts the wall-clock stays within 5x of an upstream-sender baseline. v0.6.1 ran 95-201x slower, so 5x catches the real regression with headroom for CI noise.
  • Declares a marker sender-inc-recurse feature on the transfer crate so the test cfg gate resolves; the workspace-level sender-inc-recurse feature now forwards to it. No transfer-crate compile-time effect; the actual default flip still happens in core::client::config::builder.

Beta-v0.6.3 blocker for the un-disable plan tracked in the ISI series (#2737-#2746).

Test plan

  • CI: cargo nextest run -p transfer --features sender-inc-recurse runs the new test on Linux runners with the upstream rsync binary installed.
  • CI: same command on macOS / Windows compiles cleanly and the test is excluded via the cfg(all(unix, not(target_os = "macos"))) gate.
  • CI: builds without the sender-inc-recurse feature still compile - the test file is gated to a no-op without it.
  • Manual: with target/interop/upstream-install/3.4.1/bin/rsync missing, the test prints skip: and returns successfully.

Refs: V61D-1 (#2840), V61D-2 (#2841), docs/audit/v061-daemon-push-regression.md.

@github-actions github-actions Bot added the test label May 24, 2026
@oferchen
oferchen force-pushed the test/v61d-2-daemon-push-perf-regression branch 2 times, most recently from 0e98c2f to 2653017 Compare May 24, 2026 16:26
@oferchen
oferchen force-pushed the test/v61d-2-daemon-push-perf-regression branch from 2653017 to 2fbb786 Compare May 24, 2026 16:35
@oferchen
oferchen force-pushed the test/v61d-2-daemon-push-perf-regression branch 2 times, most recently from e1b1aee to 178d037 Compare May 24, 2026 18:26
oferchen added 3 commits May 24, 2026 22:22
…-inc-recurse (V61D-2)

Adds an integration test that reproduces the v0.6.1 failure mode the
V61D-1 audit identified: with the `sender-inc-recurse` feature on, a
client-as-sender push to an upstream rsync daemon historically ran
95-201x slower than the equivalent upstream-sender baseline because
PR #3557 flipped `inc_recursive_send=true` by default and routed every
push through the un-tuned sender-side INC_RECURSE state machine
(mitigated by PR #3744).

The test pushes a ~1 MiB tree from oc-rsync (sender, feature ON) to a
spawned upstream `rsync --daemon` (receiver) and asserts wall-clock
stays within 5x of an upstream-sender baseline against the same daemon.
Skips cleanly when the upstream rsync binary is not installed at
`target/interop/upstream-install/3.4.1/bin/rsync`.

Linux-only via the same `cfg(all(unix, not(target_os = "macos")))` gate
the ISI.c/d/e sibling tests use. Adds a marker `sender-inc-recurse`
feature to the transfer crate so the test cfg gate resolves; the
workspace-level feature now forwards to it.

Refs: docs/audit/v061-daemon-push-regression.md
Resolve clippy uninlined_format_args at the daemon-timeout and
slowdown-ratio assertion sites.
@oferchen
oferchen force-pushed the test/v61d-2-daemon-push-perf-regression branch from 178d037 to aed2669 Compare May 24, 2026 19:22
@oferchen
oferchen merged commit ea59412 into master May 24, 2026
62 checks passed
@oferchen
oferchen deleted the test/v61d-2-daemon-push-perf-regression branch May 28, 2026 03:37
oferchen added a commit that referenced this pull request Aug 24, 2026
…-inc-recurse (V61D-2) (#4888)

* test(transfer): v0.6.1 daemon-push perf regression repro under sender-inc-recurse (V61D-2)

Adds an integration test that reproduces the v0.6.1 failure mode the
V61D-1 audit identified: with the `sender-inc-recurse` feature on, a
client-as-sender push to an upstream rsync daemon historically ran
95-201x slower than the equivalent upstream-sender baseline because
PR #3557 flipped `inc_recursive_send=true` by default and routed every
push through the un-tuned sender-side INC_RECURSE state machine
(mitigated by PR #3744).

The test pushes a ~1 MiB tree from oc-rsync (sender, feature ON) to a
spawned upstream `rsync --daemon` (receiver) and asserts wall-clock
stays within 5x of an upstream-sender baseline against the same daemon.
Skips cleanly when the upstream rsync binary is not installed at
`target/interop/upstream-install/3.4.1/bin/rsync`.

Linux-only via the same `cfg(all(unix, not(target_os = "macos")))` gate
the ISI.c/d/e sibling tests use. Adds a marker `sender-inc-recurse`
feature to the transfer crate so the test cfg gate resolves; the
workspace-level feature now forwards to it.

Refs: docs/audit/v061-daemon-push-regression.md

* ci(transfer): retrigger CI on V61D-2 after master fmt fixup #4891

* fix(tests): inline format args in v61d_2 regression test

Resolve clippy uninlined_format_args at the daemon-timeout and
slowdown-ratio assertion sites.
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