Repository navigation
test(transfer): sender INC_RECURSE under flist io_error (ISI.f) - #4869
Merged
Merged
Conversation
oferchen
force-pushed
the
test/isi-f-sender-flist-io-error
branch
2 times, most recently
from
May 24, 2026 16:26
31e0427 to
cadaa36
Compare
2 tasks done
oferchen
force-pushed
the
test/isi-f-sender-flist-io-error
branch
from
May 24, 2026 16:35
cadaa36 to
bd487e2
Compare
1 task done
Failure-mode companion to the ISI.c/.d push-interop harnesses. A chmod 0000 subdirectory inside the source tree forces the sender's INC_RECURSE walk to hit EACCES on opendir mid-enumeration; the test locks in the upstream-compatible recovery contract: - record_io_error accumulates IOERR_GENERAL instead of aborting - a partial flist with the readable entries is still sent - io_error rides the flist end marker (flist.c:2518) - both peers exit RERR_PARTIAL (23), not a stream-format error - readable siblings still arrive byte-identical at the destination - the poisoned subtree must not leak into the destination - sender stderr surfaces the failed directory for diagnostics Feature-gated #[cfg(feature = "sender-inc-recurse")] and Linux-only to match the ISI series convention. Skips on root since DAC is bypassed there.
oferchen
force-pushed
the
test/isi-f-sender-flist-io-error
branch
from
May 24, 2026 16:49
bd487e2 to
2087e55
Compare
4 tasks done
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* test(transfer): sender INC_RECURSE under flist io_error (ISI.f) Failure-mode companion to the ISI.c/.d push-interop harnesses. A chmod 0000 subdirectory inside the source tree forces the sender's INC_RECURSE walk to hit EACCES on opendir mid-enumeration; the test locks in the upstream-compatible recovery contract: - record_io_error accumulates IOERR_GENERAL instead of aborting - a partial flist with the readable entries is still sent - io_error rides the flist end marker (flist.c:2518) - both peers exit RERR_PARTIAL (23), not a stream-format error - readable siblings still arrive byte-identical at the destination - the poisoned subtree must not leak into the destination - sender stderr surfaces the failed directory for diagnostics Feature-gated #[cfg(feature = "sender-inc-recurse")] and Linux-only to match the ISI series convention. Skips on root since DAC is bypassed there. * style(transfer): apply rustfmt to inc_recurse_sender_flist_io_error_isi_f.rs * ci(transfer): retrigger CI on ISI.f after master fmt fixup #4891
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
Failure-mode test for the sender-side INC_RECURSE path. A
chmod 0000subdirectory inside the source tree forces the walk to hitEACCESonopendirmid-enumeration. The test asserts the upstream-compatible recovery contract that ISI.c/.d's clean-path harnesses leave unexercised:record_io_erroraccumulatesIOERR_GENERALinstead of aborting the walk (generator/file_list/walk.rs::scan_directory_batched).io_errorbitfield written into the flist end marker (generator/protocol_io.rs::send_file_list->flist.c:2518 write_int(f, io_error)).RERR_PARTIAL(23) instead of crashing with a stream-format / protocol error.flist.c:1842 opendir %s failed).Why it matters
INC_RECURSE dispatches sub-list segments lazily during the transfer loop. A regression that aborted the walk on the first unreadable directory would leave queued segments un-flushed and the receiver waiting on
NDX_FLIST_EOFindefinitely - a hang or stream-IO error instead of the graceful partial transfer upstream guarantees. The v0.5.8 io_error accumulation work made this recovery possible; ISI.f is the regression seed for the sender-side INC_RECURSE path specifically.Gating
#[cfg(all(unix, not(target_os = "macos"), feature = "sender-inc-recurse"))]- matches the rest of the ISI series; macOS / non-Linux have notarget/interop/upstream-installtree.skip:when running as root (DAC bypassed) or when the upstream rsync 3.4.1 binary is missing.Test plan
sender-inc-recursefeature combination once the workspace feature is exercised in CI.