Repository navigation
fix: honour --parallel-delta-scan on remote-shell pushes - #8263
Merged
Merged
Conversation
oferchen
force-pushed
the
feat/pds-gates
branch
from
October 28, 2026 20:11
d596dee to
0d23c75
Compare
Carries the session_fork.rs fix from #8253 so this branch's macOS jobs stop failing on the master test-harness race: on EPERM for our own child, SIGKILL the leader before a blocking WNOWAIT wait, and accept a setpgid refusal when the child already leads its own group. The content is identical to #8253, so the two merge without conflict.
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
--parallel-delta-scanwas silently ignored on remote-shell (ssh/rsh) pushes. The flag never goes on the wire, so each transport has to copy it onto its in-process sender's config. The daemon and embedded-ssh paths did that themselves; the external remote-shell path, which builds its sender config throughapply_common_server_flags, never did. The flag now lives inapply_common_server_flags, which all three transports call, and the two per-path copies are removed.matching::DeltaGenerator::generate_chunkedis deleted (task Add NegotiatedStream array copy coverage #429). It was not a second engine: it wrappedgenerate_chunked_counted, the live parallel scan behind--parallel-delta-scan, and dropped the scan counters. Its only callers were tests, one bench and one example; they now callgenerate_chunked_counted. The rustdoc and three design docs that named it are updated.--parallel-delta-scan, over both a daemon and a remote shell (task Add public API coverage for negotiation prologue sniffer #207, evidence below).Evidence: upstream 3.5.1 as the receiver (task #207)
Fixture: a 96 MiB random basis, and a source with a 4 KiB in-place edit, a 777-byte insertion (shifting every later block off the block grid) and a 333-byte deletion. The destination is pre-seeded with the basis and backdated. The oc sender runs
-a --no-whole-file --parallel-delta-scanwithRAYON_NUM_THREADSswept over 1, 2, 4 and 8. Parallel engagement is observed withstrace -e trace=mmapas the sender's whole-filePROT_READ, MAP_SHAREDmapping of the source; the sequential path reads the file and never maps it. One thread is the negative control: the size gate needs more than one worker. Receiver:rsync version 3.5.1-g04355d27 protocol version 33.Before this change the remote-shell rows showed no parallel scan at any thread count; their destinations were still identical because the scan fell back to sequential.
Pulls
--parallel-delta-scanis not forwarded to a remote sender on a pull, deliberately: an upstream server rejects unknown options, and existing argv tests (kitchen_sink_configin the daemon and remote-shell argument builders) pin that. Measured on this branch, a pull from an oc daemon or an oc remote-shell server does not engage the remote scan. A server-side switch for pulls (daemon parameter and remote-shell environment variable) follows as a separate change.Test plan
rsh_push_sender_config_carries_parallel_delta_scan,daemon_push_sender_config_carries_parallel_delta_scan,embedded_ssh_push_sender_config_carries_parallel_delta_scan, plusapply_common_server_flags_carries_parallel_delta_scan.apply_common_server_flagsfails all four.cargo nextest run -p matching --all-features(376 passed); coretest(parallel_delta_scan); transfertest(delta) | test(chunked).check_rustfmt_all.py, clippy on matching, core and transfer,dead_code_census.py,xtask no-placeholders.Coordination
Pre-merge checklist
cargo fmt --allrun locally.CHANGELOG.mdupdated if user-visible.