Skip to content

fix(core): restore inc_recursive_send=false default to fix v0.6.1 push regression - #3744

Merged
oferchen merged 4 commits into
masterfrom
fix/inc-recurse-sender-default-revert
May 6, 2026
Merged

oferchen merged 4 commits into
masterfrom
fix/inc-recurse-sender-default-revert

Conversation

@oferchen

@oferchen oferchen commented May 5, 2026

Copy link
Copy Markdown
Owner

Summary

Hotfix for the v0.6.1 push performance regression. Restores the v0.6.0 sender-side inc_recursive_send default of false. Push paths in v0.6.1 are reported as 95-201x slower over both SSH and daemon transports compared to v0.6.0.

Root cause

PR #3557 (commit 39d4772) flipped the default to true, advertising the INC_RECURSE ('i') capability bit on push by default. The sender-side INC_RECURSE state machine has not been validated against upstream rsync interop and is not performance-tuned, so enabling it by default exercises a slow path on every push.

Fix

  • inc_recursive_send default flips back to false in ClientConfigBuilder::build() and ClientConfig::default().
  • All affected unit tests updated: setter docs, default-state assertions, SSH and daemon orchestration capability-string tests.
  • --inc-recursive CLI opt-in is preserved for users who want to exercise the sender-side state machine (e.g. interop testing).

Scope

This is a default-only flip. The wire format, CLI surface, and pull-side behavior are unchanged. The longer-term fix - profiling and tuning the sender-side INC_RECURSE state machine so it matches upstream wire performance - is tracked separately.

Test plan

  • CI fmt+clippy passes
  • CI nextest passes (renamed/flipped tests)
  • Interop matrix passes with default-off behavior
  • Manual confirmation that push throughput on master + this PR matches v0.6.0 baseline

…#1862)

PR #3557 (commit 39d4772) flipped the sender-side INC_RECURSE default
to true, advertising the `'i'` capability bit on push transfers. This
caused severe performance regressions in v0.6.1 - push paths went 95-201x
slower over both SSH and daemon transports.

The sender-side INC_RECURSE state machine has not been validated against
upstream rsync interop, and enabling it by default exercises a code path
that is not yet performance-tuned. Restore the v0.6.0 default of `false`
so push performance returns to baseline. Pull transfers are unaffected -
they continue to negotiate INC_RECURSE normally because the flag governs
what we advertise, and the sender on a pull is the remote.

Users who want to exercise the sender-side state machine for interop
validation can opt in with `--inc-recursive` (the existing CLI flag is
preserved). The longer-term fix is to profile the sender-side state
machine, identify the bottleneck, and re-enable by default once it
matches upstream wire performance.

Tests:
- inc_recursive_send_default_is_true -> _is_false
- default_inc_recursive_send_is_true -> _is_false
- ssh_sender_advertises_inc_recurse_capability_by_default ->
  ssh_sender_omits_inc_recurse_capability_by_default
- ssh_receiver_advertises_inc_recurse_capability_by_default ->
  ssh_receiver_omits_inc_recurse_capability_by_default
- build_full_args_pull_advertises_inc_recurse_capability_by_default ->
  build_full_args_pull_omits_inc_recurse_capability_by_default
- builds_receiver_invocation_with_sender_flag and
  builds_sender_invocation_no_sender_flag updated to expect
  build_capability_string(false)

upstream: compat.c:161-179 allow_inc_recurse - the gate semantics.
upstream: options.c:3003-3050 maybe_add_e_option - capability string.
@github-actions github-actions Bot added the bug Something isn't working label May 5, 2026
@oferchen
oferchen merged commit b3a2640 into master May 6, 2026
39 checks passed
@oferchen
oferchen deleted the fix/inc-recurse-sender-default-revert branch May 6, 2026 18:56
oferchen added a commit that referenced this pull request May 7, 2026
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M
directory pushes after #1862 landed sender INC_RECURSE. Captures the
state machine in crates/transfer/src/generator/file_list/inc_recurse.rs
plus the receiver-side path in receiver/file_list.rs, and ties the bench
gate to the v0.6.1 push regression revert (#3744) so default-flip needs
both wall-clock and RSS evidence.

Refs #1864, #1862, #966, #971, #972, #2088.
oferchen added a commit that referenced this pull request May 18, 2026
…h regression (#3744)

* fix(core): default inc_recursive_send to false to fix push regression (#1862)

PR #3557 (commit 39d4772) flipped the sender-side INC_RECURSE default
to true, advertising the `'i'` capability bit on push transfers. This
caused severe performance regressions in v0.6.1 - push paths went 95-201x
slower over both SSH and daemon transports.

The sender-side INC_RECURSE state machine has not been validated against
upstream rsync interop, and enabling it by default exercises a code path
that is not yet performance-tuned. Restore the v0.6.0 default of `false`
so push performance returns to baseline. Pull transfers are unaffected -
they continue to negotiate INC_RECURSE normally because the flag governs
what we advertise, and the sender on a pull is the remote.

Users who want to exercise the sender-side state machine for interop
validation can opt in with `--inc-recursive` (the existing CLI flag is
preserved). The longer-term fix is to profile the sender-side state
machine, identify the bottleneck, and re-enable by default once it
matches upstream wire performance.

Tests:
- inc_recursive_send_default_is_true -> _is_false
- default_inc_recursive_send_is_true -> _is_false
- ssh_sender_advertises_inc_recurse_capability_by_default ->
  ssh_sender_omits_inc_recurse_capability_by_default
- ssh_receiver_advertises_inc_recurse_capability_by_default ->
  ssh_receiver_omits_inc_recurse_capability_by_default
- build_full_args_pull_advertises_inc_recurse_capability_by_default ->
  build_full_args_pull_omits_inc_recurse_capability_by_default
- builds_receiver_invocation_with_sender_flag and
  builds_sender_invocation_no_sender_flag updated to expect
  build_capability_string(false)

upstream: compat.c:161-179 allow_inc_recurse - the gate semantics.
upstream: options.c:3003-3050 maybe_add_e_option - capability string.

* fix(core,tests): update post-revert default tests to expect no 'i' bit

* fix(tests): align push-direction inc_recurse test with new default

* fix(tests): explicitly enable inc_recursive_send in all-flags test
oferchen added a commit that referenced this pull request May 18, 2026
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M
directory pushes after #1862 landed sender INC_RECURSE. Captures the
state machine in crates/transfer/src/generator/file_list/inc_recurse.rs
plus the receiver-side path in receiver/file_list.rs, and ties the bench
gate to the v0.6.1 push regression revert (#3744) so default-flip needs
both wall-clock and RSS evidence.

Refs #1864, #1862, #966, #971, #972, #2088.
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 24, 2026
…-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
oferchen added a commit that referenced this pull request May 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.
oferchen added a commit that referenced this pull request Aug 24, 2026
…h regression (#3744)

* fix(core): default inc_recursive_send to false to fix push regression (#1862)

PR #3557 (commit 39d4772) flipped the sender-side INC_RECURSE default
to true, advertising the `'i'` capability bit on push transfers. This
caused severe performance regressions in v0.6.1 - push paths went 95-201x
slower over both SSH and daemon transports.

The sender-side INC_RECURSE state machine has not been validated against
upstream rsync interop, and enabling it by default exercises a code path
that is not yet performance-tuned. Restore the v0.6.0 default of `false`
so push performance returns to baseline. Pull transfers are unaffected -
they continue to negotiate INC_RECURSE normally because the flag governs
what we advertise, and the sender on a pull is the remote.

Users who want to exercise the sender-side state machine for interop
validation can opt in with `--inc-recursive` (the existing CLI flag is
preserved). The longer-term fix is to profile the sender-side state
machine, identify the bottleneck, and re-enable by default once it
matches upstream wire performance.

Tests:
- inc_recursive_send_default_is_true -> _is_false
- default_inc_recursive_send_is_true -> _is_false
- ssh_sender_advertises_inc_recurse_capability_by_default ->
  ssh_sender_omits_inc_recurse_capability_by_default
- ssh_receiver_advertises_inc_recurse_capability_by_default ->
  ssh_receiver_omits_inc_recurse_capability_by_default
- build_full_args_pull_advertises_inc_recurse_capability_by_default ->
  build_full_args_pull_omits_inc_recurse_capability_by_default
- builds_receiver_invocation_with_sender_flag and
  builds_sender_invocation_no_sender_flag updated to expect
  build_capability_string(false)

upstream: compat.c:161-179 allow_inc_recurse - the gate semantics.
upstream: options.c:3003-3050 maybe_add_e_option - capability string.

* fix(core,tests): update post-revert default tests to expect no 'i' bit

* fix(tests): align push-direction inc_recurse test with new default

* fix(tests): explicitly enable inc_recursive_send in all-flags test
oferchen added a commit that referenced this pull request Aug 24, 2026
Plan re-baselines peak RSS for full vs incremental flist on 100K and 1M
directory pushes after #1862 landed sender INC_RECURSE. Captures the
state machine in crates/transfer/src/generator/file_list/inc_recurse.rs
plus the receiver-side path in receiver/file_list.rs, and ties the bench
gate to the v0.6.1 push regression revert (#3744) so default-flip needs
both wall-clock and RSS evidence.

Refs #1864, #1862, #966, #971, #972, #2088.
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

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant