Skip to content

Add remote fallback execution for remote operands - #905

Merged
oferchen merged 2 commits into
masterfrom
implement-missing-components-for-oc-rsync-mqi60d
Oct 22, 2025
Merged

oferchen merged 2 commits into
masterfrom
implement-missing-components-for-oc-rsync-mqi60d

Conversation

@oferchen

@oferchen oferchen commented Oct 22, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • add a remote-transfer fallback that delegates remote operands to an external rsync binary when native networking is unavailable
  • document the fallback behaviour across client docs and feature matrix, and surface the new EnvGuard utilities
  • cover the fallback path with integration tests including missing binary handling, files-from propagation, and option forwarding

Testing

  • cargo test -p rsync-cli

@oferchen
oferchen merged commit 7a08d4a into master Oct 22, 2025
@oferchen
oferchen deleted the implement-missing-components-for-oc-rsync-mqi60d branch October 22, 2025 20:45

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread crates/cli/src/lib.rs
Comment on lines +3198 to +3204
let stdout_data = match stdout_thread.join() {
Ok(Ok(data)) => data,
Ok(Err(error)) => {
let message = rsync_error!(
1,
format!("failed to read stdout from fallback rsync: {error}")
)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Stream fallback stdout/stderr instead of buffering

The fallback code reads the child’s stdout and stderr into vectors via stdout_thread.join() and only forwards them after the process has exited (later at stdout.write_all(&stdout_data) and stderr.write_all(&stderr_data)). Because nothing is written to the user until the subprocess completes, any interactive prompts (password entry, host key verification) or progress output from the real rsync binary are invisible while the transfer is running. This makes remote copies appear hung and prevents users from responding to prompts. The command should forward data as it arrives rather than waiting for completion.

Useful? React with 👍 / 👎.

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