Repository navigation
test: add interop tests for --partial mid-transfer kill retention - #5398
Merged
Merged
Conversation
) Add integration tests verifying that --partial retains partially-received files when a daemon transfer is interrupted mid-stream via SIGTERM. Tests cover four scenarios: - --partial flag retains partial file at destination on kill - No --partial flag cleans up temp files on kill (control test) - --partial-dir retains partial file in designated directory on kill - Upstream rsync 3.4.1 client with --partial against oc-rsync daemon Uses --bwlimit=8 (8 KB/s) to create a reliable kill window for the 2 MB test file. SIGTERM triggers cooperative shutdown so the disk commit thread can execute retain_partial_file() before exiting. Upstream reference: cleanup.c:105-135, receiver.c:340-345 Closes PIR-6.a (#3464)
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) * test: add interop tests for --partial mid-transfer kill retention (#3464) Add integration tests verifying that --partial retains partially-received files when a daemon transfer is interrupted mid-stream via SIGTERM. Tests cover four scenarios: - --partial flag retains partial file at destination on kill - No --partial flag cleans up temp files on kill (control test) - --partial-dir retains partial file in designated directory on kill - Upstream rsync 3.4.1 client with --partial against oc-rsync daemon Uses --bwlimit=8 (8 KB/s) to create a reliable kill window for the 2 MB test file. SIGTERM triggers cooperative shutdown so the disk commit thread can execute retain_partial_file() before exiting. Upstream reference: cleanup.c:105-135, receiver.c:340-345 Closes PIR-6.a (#3464) * style: apply cargo fmt formatting
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/core/tests/partial_mid_transfer_kill.rsverifying--partialfile retention when a daemon transfer is interrupted mid-stream via SIGTERM--partial(retains at destination), no--partial(cleans up temp),--partial-dir(retains in designated directory), and upstream rsync 3.4.1 client interop--bwlimit=8to slow a 2 MB transfer, creating a reliable kill window for SIGTERM to trigger cooperative shutdown and partial retentionTest plan
#[ignore]so they compile but don't run without the binary)#[cfg(unix)]gated since they use SIGTERM vialibc::kill#[ignore = "requires oc-rsync binary"]- they require the binary to be built firsttarget/interop/upstream-install/3.4.1/bin/rsyncCloses PIR-6.a (#3464)