Skip to content

Fix missing imports in daemon tests#1687

Merged
oferchen merged 1 commit into
masterfrom
task-title-5eupdr
Oct 30, 2025
Merged

Fix missing imports in daemon tests#1687
oferchen merged 1 commit into
masterfrom
task-title-5eupdr

Conversation

@oferchen
Copy link
Copy Markdown
Owner

Summary

  • import the fallback auto delegate environment constant into the daemon tests
  • add the version info report import needed for version string expectations

Testing

  • cargo test -p rsync-daemon --no-run

https://chatgpt.com/codex/tasks/task_e_69035f181f2083238601ee68426396b3

@oferchen oferchen merged commit 453eab3 into master Oct 30, 2025
@oferchen oferchen deleted the task-title-5eupdr branch October 30, 2025 12:56
oferchen added a commit that referenced this pull request May 1, 2026
…nsport (#1938) (#3525)

Formalizes the SSH stdio transport audit at docs/audits/ssh-socketpair-vs-pipes.md
under tracker #1938, consolidating prior #1686 working notes (PR #3438), the
io_uring boundary documented for #1858 (PR #3418), and the stderr socketpair
shipped under #1689 (PR #3383). Restructures the document into the formal
seven-section layout (summary, upstream reference, current implementation,
trade-offs, decision matrix, recommendation, implementation notes) plus
findings and references.

Recommends keeping anonymous pipes for the SSH wire and not pursuing the
socketpair migration: splice(2) and vmsplice(2) require a pipe end, the
zero-copy plan in #1860 depends on that, and the unified-FD argument is
subsumed by the async-transport refactor (#2068, #1655). Closes #1687
(prototype socketpair wire) as do-not-implement and #1902 (verify wire
claim against rsync_io source) as verified.

Citations were re-checked against worktree source: builder.rs:300-301
(Stdio::piped on the wire), aux_channel.rs:263-285 (UnixStream::pair for
stderr, Unix only), connection.rs:30-39 (SshConnection struct),
mod.rs:57-75 (io_uring boundary). Upstream evidence verified against
target/interop/upstream-src/rsync-3.4.1/: pipe.c:48-97 (piped_child),
util1.c:74-96 (fd_pair), main.c:504-663 (do_cmd dispatch),
clientserver.c:116-148 (daemon TCP wire), socket.c:736-846 (sock_exec
test escape).
oferchen added a commit that referenced this pull request May 5, 2026
…nsport (#1938) (#3525)

Formalizes the SSH stdio transport audit at docs/audits/ssh-socketpair-vs-pipes.md
under tracker #1938, consolidating prior #1686 working notes (PR #3438), the
io_uring boundary documented for #1858 (PR #3418), and the stderr socketpair
shipped under #1689 (PR #3383). Restructures the document into the formal
seven-section layout (summary, upstream reference, current implementation,
trade-offs, decision matrix, recommendation, implementation notes) plus
findings and references.

Recommends keeping anonymous pipes for the SSH wire and not pursuing the
socketpair migration: splice(2) and vmsplice(2) require a pipe end, the
zero-copy plan in #1860 depends on that, and the unified-FD argument is
subsumed by the async-transport refactor (#2068, #1655). Closes #1687
(prototype socketpair wire) as do-not-implement and #1902 (verify wire
claim against rsync_io source) as verified.

Citations were re-checked against worktree source: builder.rs:300-301
(Stdio::piped on the wire), aux_channel.rs:263-285 (UnixStream::pair for
stderr, Unix only), connection.rs:30-39 (SshConnection struct),
mod.rs:57-75 (io_uring boundary). Upstream evidence verified against
target/interop/upstream-src/rsync-3.4.1/: pipe.c:48-97 (piped_child),
util1.c:74-96 (fd_pair), main.c:504-663 (do_cmd dispatch),
clientserver.c:116-148 (daemon TCP wire), socket.c:736-846 (sock_exec
test escape).
oferchen added a commit that referenced this pull request May 5, 2026
…3697)

Re-checks the thirteen testable claims in
docs/audits/ssh-socketpair-vs-pipes.md against current
crates/rsync_io/src/ssh/ source. All claims confirmed; two file:LINE
citations drifted because of intervening commits (#3637 added the
SSH/rsync compression warning, growing builder.rs by ~60 lines).
Behaviour is unchanged: anonymous pipes on the wire, socketpair on
stderr, no socketpair anywhere on the SSH wire path. Reaffirms the
prior recommendation that #1687 (socketpair-prototype) stays closed.
oferchen added a commit that referenced this pull request May 17, 2026
…#4193)

Narrow-scope audit for the single-FD wire variant (one socketpair
shared between the child's fd 0 and fd 1) that #1687 proposes.
Complements ssh-socketpair-vs-pipes.md (#1938), which ruled out the
two-socketpair-per-direction variant. Recommends do-not-implement on
the basis of splice eligibility loss, EOF-propagation regression at
goodbye, no parent-side simplification, no upstream parity, and the
cross-platform asymmetry. Adds a one-line cross-reference in
crates/rsync_io/src/ssh/mod.rs so the disposition is discoverable
from source.
oferchen added a commit that referenced this pull request May 18, 2026
…3697)

Re-checks the thirteen testable claims in
docs/audits/ssh-socketpair-vs-pipes.md against current
crates/rsync_io/src/ssh/ source. All claims confirmed; two file:LINE
citations drifted because of intervening commits (#3637 added the
SSH/rsync compression warning, growing builder.rs by ~60 lines).
Behaviour is unchanged: anonymous pipes on the wire, socketpair on
stderr, no socketpair anywhere on the SSH wire path. Reaffirms the
prior recommendation that #1687 (socketpair-prototype) stays closed.
oferchen added a commit that referenced this pull request May 18, 2026
…#4193)

Narrow-scope audit for the single-FD wire variant (one socketpair
shared between the child's fd 0 and fd 1) that #1687 proposes.
Complements ssh-socketpair-vs-pipes.md (#1938), which ruled out the
two-socketpair-per-direction variant. Recommends do-not-implement on
the basis of splice eligibility loss, EOF-propagation regression at
goodbye, no parent-side simplification, no upstream parity, and the
cross-platform asymmetry. Adds a one-line cross-reference in
crates/rsync_io/src/ssh/mod.rs so the disposition is discoverable
from source.
oferchen added a commit that referenced this pull request May 18, 2026
…#4193)

Narrow-scope audit for the single-FD wire variant (one socketpair
shared between the child's fd 0 and fd 1) that #1687 proposes.
Complements ssh-socketpair-vs-pipes.md (#1938), which ruled out the
two-socketpair-per-direction variant. Recommends do-not-implement on
the basis of splice eligibility loss, EOF-propagation regression at
goodbye, no parent-side simplification, no upstream parity, and the
cross-platform asymmetry. Adds a one-line cross-reference in
crates/rsync_io/src/ssh/mod.rs so the disposition is discoverable
from source.
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