Repository navigation
docs: comment cleanup in logging and logging-sink crates - #3490
Merged
Merged
Conversation
Add docs/daemon/filter-precedence.md covering the three filter rule sources (daemon module config, client CLI, per-directory .rsync-filter), their evaluation order, the wire format, and a worked example showing why a client --include cannot override a daemon-side exclude. Cites build_daemon_filter_rules() in helpers.rs:223, the prepend logic in transfer.rs:868-879, and the wire encoding in wire.rs, with references to upstream clientserver.c:874-893 and exclude.c:1658.
2 tasks
oferchen
added a commit
that referenced
this pull request
Jun 3, 2026
… (#5396) * test: add interop tests for --iconv with non-ASCII filter rules (#3490) Verify that filter rules containing non-ASCII patterns interact correctly with --iconv filename transcoding. Tests cover: - Exclude patterns with non-ASCII chars preventing iconv-transcoded copy - Include patterns with non-ASCII chars allowing files under iconv - Filter evaluation in reverse iconv direction (Latin-1 to UTF-8) - Surviving files correctly transcoded when filter is active - Encoding mismatch edge case (UTF-8 pattern vs Latin-1 source names) - Mixed include/exclude chains with multiple non-ASCII patterns - Nested directory filtering under iconv All tests are gated on cfg(all(target_os = "linux", feature = "iconv")) because macOS/Windows filesystems reject raw non-UTF-8 byte sequences. * style: apply cargo fmt formatting * fix: add directory include rule to iconv filter test The include_non_ascii_pattern_allows_file_under_iconv test used --include='résumé*' --exclude='*' without a directory traversal rule. The --exclude='*' matched the source directory itself, preventing any files from being copied. Add --include='*/' to permit directory traversal, matching the standard upstream rsync idiom for include+exclude-all filter chains. * fix: canonicalize tempdir path in relative-source test for macOS On macOS, /var is a symlink to /private/var. TempDir creates paths under /var/folders/... but emit_implied_parents uses symlink_metadata which returns false for is_dir() on symlink components. This caused the ancestor assertion to fail looking for a bare "var" directory entry. Canonicalizing the tempdir path resolves the symlink before building the test source path, ensuring all ancestor components are real directories.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
… (#5396) * test: add interop tests for --iconv with non-ASCII filter rules (#3490) Verify that filter rules containing non-ASCII patterns interact correctly with --iconv filename transcoding. Tests cover: - Exclude patterns with non-ASCII chars preventing iconv-transcoded copy - Include patterns with non-ASCII chars allowing files under iconv - Filter evaluation in reverse iconv direction (Latin-1 to UTF-8) - Surviving files correctly transcoded when filter is active - Encoding mismatch edge case (UTF-8 pattern vs Latin-1 source names) - Mixed include/exclude chains with multiple non-ASCII patterns - Nested directory filtering under iconv All tests are gated on cfg(all(target_os = "linux", feature = "iconv")) because macOS/Windows filesystems reject raw non-UTF-8 byte sequences. * style: apply cargo fmt formatting * fix: add directory include rule to iconv filter test The include_non_ascii_pattern_allows_file_under_iconv test used --include='résumé*' --exclude='*' without a directory traversal rule. The --exclude='*' matched the source directory itself, preventing any files from being copied. Add --include='*/' to permit directory traversal, matching the standard upstream rsync idiom for include+exclude-all filter chains. * fix: canonicalize tempdir path in relative-source test for macOS On macOS, /var is a symlink to /private/var. TempDir creates paths under /var/folders/... but emit_implied_parents uses symlink_metadata which returns false for is_dir() on symlink components. This caused the ancestor assertion to fail looking for a bare "var" directory entry. Canonicalizing the tempdir path resolves the symlink before building the test source path, ensuring all ancestor components are real directories.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
loggingandlogging-sinkcrates per the project's comment-cleanup rules.RsyncLayer, level-1/level-2 verbosity boundaries).SAFETYinvariants, and existing rustdoc are preserved.Net: 7 files changed, +36 / -64.
Tracks in-progress task #2039.
Test plan
cargo fmt --all -- --check