Repository navigation
test: add --partial-dir mid-transfer interrupt interop tests - #5395
Merged
Merged
Conversation
Verify that interrupted transfers with --partial-dir correctly move partial files to the partial directory, not the final destination. Tests cover: abort mid-stream, channel disconnect (kill simulation), auto-creation of missing partial-dir, intermediate file size verification, and successful transfer leaving no leftover in the partial-dir.
oferchen
force-pushed
the
test/partial-dir-mid-transfer-kill
branch
from
June 3, 2026 16:07
963c74f to
610854b
Compare
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* test: add --partial-dir mid-transfer interrupt interop tests (#3465) Verify that interrupted transfers with --partial-dir correctly move partial files to the partial directory, not the final destination. Tests cover: abort mid-stream, channel disconnect (kill simulation), auto-creation of missing partial-dir, intermediate file size verification, and successful transfer leaving no leftover in the partial-dir. * style: apply cargo fmt formatting * fix: inline format args in partial-dir test assertions
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
crates/transfer/src/disk_commit/tests.rsverifying--partial-dirbehavior when a transfer is interrupted mid-stream (PIR-6.b, fix(checksums): apply checksum_seed to MD4 strong checksum (upstream parity) #3465)Test Details
partial_dir_abort_mid_stream_moves_to_partial_dirFileMessage::Abortafter 2 chunkspartial_dir_channel_disconnect_moves_to_partial_dirdrop(file_tx)partial_dir_auto_created_on_interruptFileMessage::Shutdownpartial_dir_mid_stream_has_intermediate_sizeFileMessage::Abortafter 300/1000 bytespartial_dir_whole_file_success_no_leftover_in_partial_dirTest plan