Skip to content

test: add comprehensive error recovery integration tests - #2915

Merged
oferchen merged 1 commit into
masterfrom
refactor/decompose-apply-metadata
Mar 22, 2026
Merged

oferchen merged 1 commit into
masterfrom
refactor/decompose-apply-metadata

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Add new integration test file with six error recovery scenarios
  • Tests cover: partial transfer exit codes, symlink loop handling, read-only destination errors, source permission denied, concurrent source modification, and empty directory tree transfers
  • All tests gated with #[cfg(unix)] since they rely on Unix filesystem semantics
  • Each test verifies exit codes match upstream rsync behavior and validates partial results

Test plan

  • CI nextest passes on Linux, macOS, and Windows
  • fmt+clippy checks pass
  • No regressions in existing test suites

@github-actions github-actions Bot added the test label Mar 21, 2026
let result = run_client(config);

// An empty directory tree should transfer successfully.
assert!(

Check failure

Code scanning / CodeQL

Cleartext logging of sensitive information High test

This operation writes
... .write(...)
to a log file.
This operation writes
self.write_uid_field(...)
to a log file.
This operation writes
split_daemon_username(...)
to a log file.
This operation writes
load_daemon_password(...)
to a log file.
@oferchen
oferchen force-pushed the refactor/decompose-apply-metadata branch from 2a83a6e to 2b393bd Compare March 22, 2026 06:55
@oferchen
oferchen merged commit df3de42 into master Mar 22, 2026
17 of 31 checks passed
@oferchen
oferchen deleted the refactor/decompose-apply-metadata branch March 22, 2026 09:00
oferchen added a commit that referenced this pull request May 25, 2026
…C-13) (#4920)

Adds a user-facing matrix at docs/user/windows-support-matrix.md that
states which features are fully supported, partially supported, or
unsupported on the Windows GNU build, and enumerates the known gaps
with explicit WPC-* tracking. Bridges the gap until WPC-3..WPC-12 land.

Refs #2869, #2903 (WPC-1), #2904 (WPC-2), #2915 (WPC-13).
oferchen added a commit that referenced this pull request May 25, 2026
… (WPC-12) (#4939)

Adds the WPC-12 audit at docs/audit/windows-perm-bits-posix-mapping.md
covering the bidirectional Win32 file-attribute - POSIX mode-bit mapping.

Inventories every read-side and write-side conversion site, documents the
wire-encoding constraint (single mode_t field, no Windows-only attribute
slot), enumerates the existing test coverage, and lists six findings plus
four follow-up recommendations.

Tracks #2914 under parent #2869 (Windows real-world parity series).
Cross-links the WPC-13 Windows support matrix (#2915 / PR #4920).
oferchen added a commit that referenced this pull request Aug 24, 2026
…C-13) (#4920)

Adds a user-facing matrix at docs/user/windows-support-matrix.md that
states which features are fully supported, partially supported, or
unsupported on the Windows GNU build, and enumerates the known gaps
with explicit WPC-* tracking. Bridges the gap until WPC-3..WPC-12 land.

Refs #2869, #2903 (WPC-1), #2904 (WPC-2), #2915 (WPC-13).
oferchen added a commit that referenced this pull request Aug 24, 2026
… (WPC-12) (#4939)

Adds the WPC-12 audit at docs/audit/windows-perm-bits-posix-mapping.md
covering the bidirectional Win32 file-attribute - POSIX mode-bit mapping.

Inventories every read-side and write-side conversion site, documents the
wire-encoding constraint (single mode_t field, no Windows-only attribute
slot), enumerates the existing test coverage, and lists six findings plus
four follow-up recommendations.

Tracks #2914 under parent #2869 (Windows real-world parity series).
Cross-links the WPC-13 Windows support matrix (#2915 / PR #4920).
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.

2 participants