Repository navigation
docs(audits): diff Linux vs Windows nextest coverage to identify untested Windows-only paths (WCI-1) - #5639
Merged
Conversation
…sted Windows-only paths (WCI-1) Inventory `#[cfg(windows)]`, `#[cfg(target_os = "windows")]`, and `#[cfg(target_family = "windows")]` test functions across the workspace and cross-reference each against the four Windows CI cells (Windows, Windows IOCP, Windows ACL/xattr, Windows GNU cross-check) plus the cross-OS feature-flag matrix. Identifies 14 Windows-only `#[test]` functions in 5 crates (daemon, protocol, flist, platform, rsync_io) that no Windows CI cell ever compiles, despite the test source carrying Windows-specific gates. Maps each gap to the WCI-2..9 follow-up subtasks and the existing test infrastructure (WPC-9'.7, WPC-3.wire.4, WPC-5'.10, etc.) that each subtask should reuse. Complements WSD-1's crate-level coverage gap analysis in docs/audit/windows-ci-coverage-gap.md.
3 of 4 tasks
1 of 4 tasks
oferchen
added a commit
that referenced
this pull request
Jun 11, 2026
Master HEAD does not compile on Linux: `delete_extraneous_files` returns `io::Result<(DeleteStats, bool)>` but its callers in `receiver/transfer/pipelined.rs:64` and `receiver/transfer/pipelined_incremental.rs:100` destructure `(ds, exceeded, io_bits)` (3-tuple). The mismatch is from the merge of #5639/#5581 dropping the i32 io_bits slot that c55f044 ("propagate ELOOP from sandboxed delete scan as IOERR_GENERAL") and the UTS-16.b series introduced. Restore the 3-tuple return type and replace the `first_err` accumulator with an `io_err_bits` accumulator. A fail-loud sandbox class (ELOOP / EOPNOTSUPP / ENOTDIR / EPERM) from any worker now ORs IOERR_GENERAL into the third slot instead of converting to `Err`, which is what the receiver-side filter_chain test `reject_symlinked_subdir_via_implied_filter` already asserts and what the UTS-16.b "non-zero exit instead of silent skip" intent documented at `pipelined.rs:59-61` requires. EDG-SANDBOX classification (`fail_loud_unlink_error`) is unchanged; only the propagation channel from worker -> caller switches from `Err` to the i32 bits, which keeps the exit code at 23 (RERR_PARTIAL) by way of `to_exit_code`. The fix is the smallest patch that unbreaks master and matches the caller / test expectations already merged. Catastrophic, non-worker errors above the parallel scan still propagate via `?` and `Err`.
oferchen
added a commit
that referenced
this pull request
Jun 11, 2026
Master HEAD does not compile on Linux: `delete_extraneous_files` returns `io::Result<(DeleteStats, bool)>` but its callers in `receiver/transfer/pipelined.rs:64` and `receiver/transfer/pipelined_incremental.rs:100` destructure `(ds, exceeded, io_bits)` (3-tuple). The mismatch is from the merge of #5639/#5581 dropping the i32 io_bits slot that c55f044 ("propagate ELOOP from sandboxed delete scan as IOERR_GENERAL") and the UTS-16.b series introduced. Restore the 3-tuple return type and replace the `first_err` accumulator with an `io_err_bits` accumulator. A fail-loud sandbox class (ELOOP / EOPNOTSUPP / ENOTDIR / EPERM) from any worker now ORs IOERR_GENERAL into the third slot instead of converting to `Err`, which is what the receiver-side filter_chain test `reject_symlinked_subdir_via_implied_filter` already asserts and what the UTS-16.b "non-zero exit instead of silent skip" intent documented at `pipelined.rs:59-61` requires. EDG-SANDBOX classification (`fail_loud_unlink_error`) is unchanged; only the propagation channel from worker -> caller switches from `Err` to the i32 bits, which keeps the exit code at 23 (RERR_PARTIAL) by way of `to_exit_code`. The fix is the smallest patch that unbreaks master and matches the caller / test expectations already merged. Catastrophic, non-worker errors above the parallel scan still propagate via `?` and `Err`.
5 tasks
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…erage-gap docs(audits): diff Linux vs Windows nextest coverage to identify untested Windows-only paths (WCI-1)
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Adds a nightly workflow that isolates the FindFirstStreamW / FindNextStreamW ADS round-trip path by running the metadata-crate integration tests in `crates/metadata/tests/windows_ads_xattrs_roundtrip.rs` under `--features xattr` (no `acl`). Also runs the CLI preflight smoke test that asserts `--xattrs` on Windows reaches the ADS backend cleanly. Closes the WCI-1 audit gap (PR #5639, docs/audits/wci-1-windows-nextest-coverage-gap.md section 4.2) where the combined `Windows ACL/xattr` cell can mask xattr_windows.rs regressions under acl,xattr feature union. Non-required (informational). Promotion to required-on-PR is gated on a 14-day green bake window per WCI-11 #3705.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
Master HEAD does not compile on Linux: `delete_extraneous_files` returns `io::Result<(DeleteStats, bool)>` but its callers in `receiver/transfer/pipelined.rs:64` and `receiver/transfer/pipelined_incremental.rs:100` destructure `(ds, exceeded, io_bits)` (3-tuple). The mismatch is from the merge of #5639/#5581 dropping the i32 io_bits slot that c55f044 ("propagate ELOOP from sandboxed delete scan as IOERR_GENERAL") and the UTS-16.b series introduced. Restore the 3-tuple return type and replace the `first_err` accumulator with an `io_err_bits` accumulator. A fail-loud sandbox class (ELOOP / EOPNOTSUPP / ENOTDIR / EPERM) from any worker now ORs IOERR_GENERAL into the third slot instead of converting to `Err`, which is what the receiver-side filter_chain test `reject_symlinked_subdir_via_implied_filter` already asserts and what the UTS-16.b "non-zero exit instead of silent skip" intent documented at `pipelined.rs:59-61` requires. EDG-SANDBOX classification (`fail_loud_unlink_error`) is unchanged; only the propagation channel from worker -> caller switches from `Err` to the i32 bits, which keeps the exit code at 23 (RERR_PARTIAL) by way of `to_exit_code`. The fix is the smallest patch that unbreaks master and matches the caller / test expectations already merged. Catastrophic, non-worker errors above the parallel scan still propagate via `?` and `Err`.
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
Inventories every workspace test function gated behind
#[cfg(windows)],#[cfg(target_os = "windows")], or#[cfg(target_family = "windows")]and cross-references each against the actual Windows CI cells (Windows,Windows IOCP,Windows ACL/xattr,Windows GNU cross-check) plus the_test-features.ymlcross-OS matrix.#[test]functions across 11 crates.daemon,protocol,flist,platform,rsync_io) are never compiled by any Windows CI cell - the Windows GNU cross-check verifies they compile underx86_64-pc-windows-gnubut does not execute them.Complements WSD-1 (
docs/audit/windows-ci-coverage-gap.md), which quantified the crate-level coverage gap. WCI-1 narrows to the precise set of tests where the author already wrote a Windows-specific assertion that no Windows CI cell ever exercises.Prioritized gap list (mapped to follow-up subtasks)
-p daemonon nightly)connection_scaling_stress.rsWindows guard-p rsync_io)user_pattern_case_insensitive_on_windowswire_path.rstests at extreme depths-p platform)administrator_resolves_to_rid_500etc.) + flist walkerTest plan
grep -rn '#\[cfg(\(target_os = "windows"\|target_family = "windows"\|windows\))\]' --include="*.rs"output as of HEAD.