Skip to content

test: add integration tests for error recovery scenarios - #2947

Merged
oferchen merged 1 commit into
masterfrom
test/error-recovery-integration
Mar 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/error-recovery-integration

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds 11 new integration tests covering error recovery scenarios not previously tested
  • Tests verify that oc-rsync continues transferring remaining files when encountering errors, matching upstream rsync behaviour
  • All tests are unix-only since they rely on POSIX permissions and symlinks

Test Scenarios

  • Unreadable subdirectory: readdir fails with EACCES, remaining files still transfer
  • Unreadable source file: single file skipped, siblings transfer successfully
  • Read-only destination: write fails, appropriate error reported
  • Dangling symlink: preserved correctly with --links flag
  • Multiple dangling symlinks: batch handling of broken symlinks
  • File grows between syncs: delta algorithm handles size increase
  • File shrinks between syncs: delta algorithm handles size decrease
  • Mixed errors: combination of readable files, unreadable file, and dangling symlink
  • Vanished source directory: extends existing vanished-file tests to directories
  • Empty source directory: control test for no spurious errors
  • Transfer to nonexistent destination file: control test for single file copy

Test plan

  • CI nextest passes on Linux, macOS, Windows (unix tests skipped on Windows)
  • No production code modified

@oferchen
oferchen merged commit 43cc25c into master Mar 22, 2026
5 of 10 checks passed
@oferchen
oferchen deleted the test/error-recovery-integration branch March 22, 2026 09:38
@github-actions github-actions Bot added the test label Mar 22, 2026
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