Repository navigation
Make Debian alternatives opt-in and clarify amd64 tarball distribution - #1862
Merged
oferchen merged 1 commit intoNov 1, 2025
Merged
Conversation
oferchen
deleted the
allow-side-by-side-installation-of-oc-rsync-and-rsync
branch
November 1, 2025 03:39
1 of 5 tasks
oferchen
added a commit
that referenced
this pull request
Apr 28, 2026
…ine (#3418) Adds two doc-only notes covering recurring questions: - crates/rsync_io/src/ssh/mod.rs: explains why SSH transfers cannot use the fast_io socket reader/writer paths. The data channel is the inherited stdio pipe pair from the spawned ssh child, not an AF_INET socket, so the io_uring socket fast path is unreachable. Mirrors upstream main.c:504 do_cmd(). Cross-references tasks #1859 (pipe-FD io_uring) and #1860 (splice-based zero-copy) and notes that daemon TCP and local-disk transfers still benefit from fast_io. - crates/transfer/src/generator/mod.rs: documents the sender-side INC_RECURSE state machine (Idle -> ScanDir -> SendChunk -> WaitAck -> NextDir -> Done) with upstream citations to flist.c:2192 send_file_list(), sender.c:199 send_files(), generator.c:2226 generate_files(), receiver.c:522 recv_files(), and compat.c:161 set_allow_inc_recurse(). Documents that the sender side is implemented but disabled in build_capability_string until interop is validated (task #1862); the 'i' capability is not advertised when oc-rsync is sender. Closes #1858, #1865.
4 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
…ine (#3418) Adds two doc-only notes covering recurring questions: - crates/rsync_io/src/ssh/mod.rs: explains why SSH transfers cannot use the fast_io socket reader/writer paths. The data channel is the inherited stdio pipe pair from the spawned ssh child, not an AF_INET socket, so the io_uring socket fast path is unreachable. Mirrors upstream main.c:504 do_cmd(). Cross-references tasks #1859 (pipe-FD io_uring) and #1860 (splice-based zero-copy) and notes that daemon TCP and local-disk transfers still benefit from fast_io. - crates/transfer/src/generator/mod.rs: documents the sender-side INC_RECURSE state machine (Idle -> ScanDir -> SendChunk -> WaitAck -> NextDir -> Done) with upstream citations to flist.c:2192 send_file_list(), sender.c:199 send_files(), generator.c:2226 generate_files(), receiver.c:522 recv_files(), and compat.c:161 set_allow_inc_recurse(). Documents that the sender side is implemented but disabled in build_capability_string until interop is validated (task #1862); the 'i' capability is not advertised when oc-rsync is sender. Closes #1858, #1865.
7 of 8 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
#1862) (#3528) Add a `--inc-recursive-send` CLI flag that, when set, advertises the `'i'` INC_RECURSE capability bit when oc-rsync is acting as the sender. Default off so existing push transfers continue to suppress the capability while sender-side incremental recursion is validated against upstream rsync 3.0.9 / 3.1.3 / 3.4.1. The sender-side state machine and segment scheduler are already implemented in `crates/transfer/src/generator/`; this flag exposes them end-to-end for interop testing without changing default behaviour. The flag is plumbed from the CLI through ParsedArgs and ConfigInputs to ClientConfig::inc_recursive_send(). Both SSH (RemoteInvocationBuilder) and daemon (build_full_daemon_args) callers now compute allow_inc_recurse as `we_are_receiver || (we_are_sender && inc_recursive_send)` when invoking `build_capability_string()`. The single source of truth for the capability string remains `crates/transfer/src/setup/capability.rs::build_capability_string()`. Tests: - ClientConfigBuilder default + setter + clear paths. - CLI parser default + long-flag. - SSH builder: sender omits 'i' by default; sender advertises 'i' when flag set; receiver direction unaffected. - Daemon arguments: push omits 'i' by default; push advertises 'i' when flag set; pull continues to advertise 'i' regardless of flag. upstream: compat.c:720 set_allow_inc_recurse() - capability gate. upstream: options.c:3003-3050 maybe_add_e_option() - capability string.
5 of 6 tasks
oferchen
added a commit
that referenced
this pull request
May 1, 2026
Adds scripts/benchmark_flist_memory.sh which compares peak RSS of oc-rsync against upstream rsync 3.4.1 at 100K and 1M directory scales under three flist modes: - Mode A: full flist (--no-inc-recursive) - Mode B: default (receiver INC_RECURSE) - Mode C: sender INC_RECURSE (skipped, pending #1862 opt-in flag) Measures wall-clock time and peak RSS via /usr/bin/time -v, runs each mode 3 times and takes the median, writes TSV to target/benchmarks/ and emits an optional markdown summary. Fixtures live under /tmp/oc-rsync-bench (not bind-mounted) with a path guard that refuses to rm anywhere outside that prefix. Documents 2026-05-01 baseline numbers in docs/benchmarks/flist-memory-baseline-2026-05-01.md - upstream peak RSS drops from 76.8 MB (Mode A) to 7.5 MB (Mode B) at 1M files, while oc-rsync stays at ~218 MB across both modes (sender-side INC_RECURSE not yet active). Refs #966/#971 for the RSS gap context.
4 tasks
oferchen
added a commit
that referenced
this pull request
May 2, 2026
The capability info string emitted by the receiver direction now includes 'i' (INC_RECURSE sender capability) when inc_recursive_send defaults to true. Update test_remote_invocation_with_multiple_paths to expect "-e.iLsfxCIvu" instead of "-e.LsfxCIvu".
oferchen
added a commit
that referenced
this pull request
May 2, 2026
* feat(transfer): enable INC_RECURSE sender by default (#1862) Mirror upstream rsync 3.4.1's `allow_inc_recurse = 1` initialization in `compat.c`: oc-rsync now advertises the INC_RECURSE ('i') capability bit in the `-e.` string for both transfer directions by default. Pass `--no-inc-recursive` to clear the flag and suppress the bit, matching `set_allow_inc_recurse()` (compat.c:720). Previously the bit was opt-in for sender-side transfers via the non-upstream `--inc-recursive-send` flag, which caused wire-format divergence on every push (no 'i' in the capability string) and forced peers to clear `allow_inc_recurse` on the server side. The opt-in flag is removed; `--inc-recursive` / `--no-inc-recursive` (already supported) now drive the gate in line with upstream popt option semantics (options.c). Both SSH (`RemoteInvocationBuilder`) and daemon (`build_full_daemon_args`) capability-string call sites use the same gate, removing the role-based asymmetry. The CLI tri-state `--inc-recursive` / `--no-inc-recursive` is wired through `ConfigInputs.inc_recursive_send: Option<bool>` so unset preserves the upstream default in `ClientConfigBuilder::build()`. upstream: compat.c:720 set_allow_inc_recurse() - capability gate. upstream: options.c:3003-3050 maybe_add_e_option() - capability string. * fix(core): doc_lazy_continuation in performance.rs Reflow the inc_recursive_send doc comment so the backtick-quoted `--no-inc-recursive` reference no longer starts a continuation line, which clippy::doc_lazy_continuation misread as a blockquote. * fix(core): reword inc-recursive doc to avoid markdown blockquote * test(ssh): update capability assertion for INC_RECURSE sender (#1862) The capability info string emitted by the receiver direction now includes 'i' (INC_RECURSE sender capability) when inc_recursive_send defaults to true. Update test_remote_invocation_with_multiple_paths to expect "-e.iLsfxCIvu" instead of "-e.LsfxCIvu".
oferchen
added a commit
that referenced
this pull request
May 5, 2026
…ine (#3418) Adds two doc-only notes covering recurring questions: - crates/rsync_io/src/ssh/mod.rs: explains why SSH transfers cannot use the fast_io socket reader/writer paths. The data channel is the inherited stdio pipe pair from the spawned ssh child, not an AF_INET socket, so the io_uring socket fast path is unreachable. Mirrors upstream main.c:504 do_cmd(). Cross-references tasks #1859 (pipe-FD io_uring) and #1860 (splice-based zero-copy) and notes that daemon TCP and local-disk transfers still benefit from fast_io. - crates/transfer/src/generator/mod.rs: documents the sender-side INC_RECURSE state machine (Idle -> ScanDir -> SendChunk -> WaitAck -> NextDir -> Done) with upstream citations to flist.c:2192 send_file_list(), sender.c:199 send_files(), generator.c:2226 generate_files(), receiver.c:522 recv_files(), and compat.c:161 set_allow_inc_recurse(). Documents that the sender side is implemented but disabled in build_capability_string until interop is validated (task #1862); the 'i' capability is not advertised when oc-rsync is sender. Closes #1858, #1865.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
#1862) (#3528) Add a `--inc-recursive-send` CLI flag that, when set, advertises the `'i'` INC_RECURSE capability bit when oc-rsync is acting as the sender. Default off so existing push transfers continue to suppress the capability while sender-side incremental recursion is validated against upstream rsync 3.0.9 / 3.1.3 / 3.4.1. The sender-side state machine and segment scheduler are already implemented in `crates/transfer/src/generator/`; this flag exposes them end-to-end for interop testing without changing default behaviour. The flag is plumbed from the CLI through ParsedArgs and ConfigInputs to ClientConfig::inc_recursive_send(). Both SSH (RemoteInvocationBuilder) and daemon (build_full_daemon_args) callers now compute allow_inc_recurse as `we_are_receiver || (we_are_sender && inc_recursive_send)` when invoking `build_capability_string()`. The single source of truth for the capability string remains `crates/transfer/src/setup/capability.rs::build_capability_string()`. Tests: - ClientConfigBuilder default + setter + clear paths. - CLI parser default + long-flag. - SSH builder: sender omits 'i' by default; sender advertises 'i' when flag set; receiver direction unaffected. - Daemon arguments: push omits 'i' by default; push advertises 'i' when flag set; pull continues to advertise 'i' regardless of flag. upstream: compat.c:720 set_allow_inc_recurse() - capability gate. upstream: options.c:3003-3050 maybe_add_e_option() - capability string.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
Adds scripts/benchmark_flist_memory.sh which compares peak RSS of oc-rsync against upstream rsync 3.4.1 at 100K and 1M directory scales under three flist modes: - Mode A: full flist (--no-inc-recursive) - Mode B: default (receiver INC_RECURSE) - Mode C: sender INC_RECURSE (skipped, pending #1862 opt-in flag) Measures wall-clock time and peak RSS via /usr/bin/time -v, runs each mode 3 times and takes the median, writes TSV to target/benchmarks/ and emits an optional markdown summary. Fixtures live under /tmp/oc-rsync-bench (not bind-mounted) with a path guard that refuses to rm anywhere outside that prefix. Documents 2026-05-01 baseline numbers in docs/benchmarks/flist-memory-baseline-2026-05-01.md - upstream peak RSS drops from 76.8 MB (Mode A) to 7.5 MB (Mode B) at 1M files, while oc-rsync stays at ~218 MB across both modes (sender-side INC_RECURSE not yet active). Refs #966/#971 for the RSS gap context.
oferchen
added a commit
that referenced
this pull request
May 5, 2026
* feat(transfer): enable INC_RECURSE sender by default (#1862) Mirror upstream rsync 3.4.1's `allow_inc_recurse = 1` initialization in `compat.c`: oc-rsync now advertises the INC_RECURSE ('i') capability bit in the `-e.` string for both transfer directions by default. Pass `--no-inc-recursive` to clear the flag and suppress the bit, matching `set_allow_inc_recurse()` (compat.c:720). Previously the bit was opt-in for sender-side transfers via the non-upstream `--inc-recursive-send` flag, which caused wire-format divergence on every push (no 'i' in the capability string) and forced peers to clear `allow_inc_recurse` on the server side. The opt-in flag is removed; `--inc-recursive` / `--no-inc-recursive` (already supported) now drive the gate in line with upstream popt option semantics (options.c). Both SSH (`RemoteInvocationBuilder`) and daemon (`build_full_daemon_args`) capability-string call sites use the same gate, removing the role-based asymmetry. The CLI tri-state `--inc-recursive` / `--no-inc-recursive` is wired through `ConfigInputs.inc_recursive_send: Option<bool>` so unset preserves the upstream default in `ClientConfigBuilder::build()`. upstream: compat.c:720 set_allow_inc_recurse() - capability gate. upstream: options.c:3003-3050 maybe_add_e_option() - capability string. * fix(core): doc_lazy_continuation in performance.rs Reflow the inc_recursive_send doc comment so the backtick-quoted `--no-inc-recursive` reference no longer starts a continuation line, which clippy::doc_lazy_continuation misread as a blockquote. * fix(core): reword inc-recursive doc to avoid markdown blockquote * test(ssh): update capability assertion for INC_RECURSE sender (#1862) The capability info string emitted by the receiver direction now includes 'i' (INC_RECURSE sender capability) when inc_recursive_send defaults to true. Update test_remote_invocation_with_multiple_paths to expect "-e.iLsfxCIvu" instead of "-e.LsfxCIvu".
3 tasks
oferchen
added a commit
that referenced
this pull request
May 6, 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
3 tasks
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.
4 tasks done
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.
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
Testing