Skip to content

test: add daemon integration test for xattr preservation on push - #2690

Merged
oferchen merged 1 commit into
masterfrom
test/daemon-xattr-push
Mar 14, 2026
Merged

oferchen merged 1 commit into
masterfrom
test/daemon-xattr-push

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Adds end-to-end daemon push test that verifies user.* namespace xattrs are preserved through the full transfer pipeline with the -X flag
  • Adds xattr feature to the daemon crate (forwarding to core/xattr) so --all-features in CI enables xattr support
  • Adds xattr crate as a Unix-only dev-dependency for reading back xattrs in the test
  • Test probes for xattr filesystem support and skips gracefully when unavailable

Test plan

  • CI passes on Linux (primary xattr target)
  • CI passes on macOS (HFS+/APFS support user xattrs)
  • CI passes on Windows (test is gated with #[cfg(unix)])
  • Verify the test exercises: single xattr, multiple xattrs on one file, xattr on nested file in subdirectory

Adds an end-to-end test that verifies extended attributes (xattrs) are
preserved when pushing files via the daemon protocol with the -X flag.
The test sets user.* namespace xattrs on source files, pushes through
a daemon module, and reads them back at the destination.

Also adds the xattr feature to the daemon crate so that
ClientConfig::builder().xattrs(true) activates xattr preservation
when --all-features is used in CI.
@oferchen
oferchen merged commit 46cbf38 into master Mar 14, 2026
10 checks passed
@github-actions github-actions Bot added the test label Mar 14, 2026
@oferchen
oferchen deleted the test/daemon-xattr-push branch March 14, 2026 13:49
oferchen added a commit that referenced this pull request May 1, 2026
Adds an end-to-end test that verifies extended attributes (xattrs) are
preserved when pushing files via the daemon protocol with the -X flag.
The test sets user.* namespace xattrs on source files, pushes through
a daemon module, and reads them back at the destination.

Also adds the xattr feature to the daemon crate so that
ClientConfig::builder().xattrs(true) activates xattr preservation
when --all-features is used in CI.
oferchen added a commit that referenced this pull request May 5, 2026
Adds an end-to-end test that verifies extended attributes (xattrs) are
preserved when pushing files via the daemon protocol with the -X flag.
The test sets user.* namespace xattrs on source files, pushes through
a daemon module, and reads them back at the destination.

Also adds the xattr feature to the daemon crate so that
ClientConfig::builder().xattrs(true) activates xattr preservation
when --all-features is used in CI.
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