Skip to content

docs(audits): diff Linux vs Windows nextest coverage to identify untested Windows-only paths (WCI-1) - #5639

Merged
oferchen merged 1 commit into
masterfrom
docs/wci-1-windows-nextest-coverage-gap
Jun 11, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/wci-1-windows-nextest-coverage-gap

Conversation

@oferchen

@oferchen oferchen commented Jun 11, 2026 •

Copy link
Copy Markdown
Owner

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.yml cross-OS matrix.

  • 72 Windows-only #[test] functions across 11 crates.
  • 14 of them in 5 crates (daemon, protocol, flist, platform, rsync_io) are never compiled by any Windows CI cell - the Windows GNU cross-check verifies they compile under x86_64-pc-windows-gnu but does not execute them.
  • 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 (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)

Subtask Gap closure target Tests it activates
WCI-3 daemon mode (-p daemon on nightly) 2 daemon tests + connection_scaling_stress.rs Windows guard
WCI-4 SSH push via Windows OpenSSH (-p rsync_io) user_pattern_case_insensitive_on_windows
WCI-7 long-path (\?) 4 protocol wire_path.rs tests at extreme depths
WCI-8 reparse points + symlinks flist walker test + protocol wire-path tests at junction targets
WCI-9 case-insensitive collision (-p platform) 6 platform tests (administrator_resolves_to_rid_500 etc.) + flist walker

Test plan

  • CI green (docs-only change; required checks should be a no-op on this surface).
  • Human reviewer confirms the 14-test inventory matches grep -rn '#\[cfg(\(target_os = "windows"\|target_family = "windows"\|windows\))\]' --include="*.rs" output as of HEAD.

…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.
@oferchen
oferchen merged commit cf9f92f into master Jun 11, 2026
9 checks passed
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jun 11, 2026
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
oferchen deleted the docs/wci-1-windows-nextest-coverage-gap branch June 11, 2026 08:31
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 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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant