Skip to content

test: add SSH transfer integration tests with retry - #2905

Merged
oferchen merged 2 commits into
masterfrom
test/ssh-transfer-integration
Mar 22, 2026
Merged

oferchen merged 2 commits into
masterfrom
test/ssh-transfer-integration

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add SSH transport integration tests in crates/core/tests/ssh_transfer.rs
  • Tests cover push, pull, and recursive transfers to localhost over SSH
  • Verify exit codes for missing shell binary (127), connection failure (255/124), and missing rsync-path
  • Retry flaky SSH connections up to 3 times with 1-second delays
  • All tests skip gracefully when SSH to localhost is unavailable
  • Gated with #[cfg(unix)] for platform safety

Test plan

  • CI fmt+clippy passes
  • CI nextest compiles the test file without errors
  • Tests skip on CI runners without localhost SSH access
  • On environments with localhost SSH: push, pull, recursive transfers succeed
  • Error exit codes match upstream rsync semantics

@github-actions github-actions Bot added the test label Mar 21, 2026
@oferchen
oferchen force-pushed the test/ssh-transfer-integration branch from a616469 to 82b5436 Compare March 22, 2026 06:55
@oferchen
oferchen merged commit 719d6f5 into master Mar 22, 2026
9 of 10 checks passed
@oferchen
oferchen deleted the test/ssh-transfer-integration branch March 22, 2026 09:00
oferchen added a commit that referenced this pull request May 1, 2026
* test: add SSH transfer integration tests with retry

* style: fix cargo fmt formatting
oferchen added a commit that referenced this pull request May 5, 2026
* test: add SSH transfer integration tests with retry

* style: fix cargo fmt formatting
oferchen added a commit that referenced this pull request May 25, 2026
Selects option (a) xattr-passthrough as the official strategy for
NTFS alternate data streams on Windows. Surfaces ADS as
`user.windows.ads.<streamname>` xattrs via the existing `-X` pipeline,
matching upstream rsync's Cygwin default when `-X` is omitted.

Defines concrete acceptance criteria for WPC-3 (#2905) and the
deferred regression test in WPC-4 (#2906). Includes rejected
alternatives, rollback criteria, and cross-platform receiver
behaviour.
oferchen added a commit that referenced this pull request Aug 24, 2026
Selects option (a) xattr-passthrough as the official strategy for
NTFS alternate data streams on Windows. Surfaces ADS as
`user.windows.ads.<streamname>` xattrs via the existing `-X` pipeline,
matching upstream rsync's Cygwin default when `-X` is omitted.

Defines concrete acceptance criteria for WPC-3 (#2905) and the
deferred regression test in WPC-4 (#2906). Includes rejected
alternatives, rollback criteria, and cross-platform receiver
behaviour.
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