Repository navigation
test: add delay-updates sweep tests for remote transfer path - #5397
Merged
Merged
Conversation
oferchen
force-pushed
the
feature/pir-5c-delay-updates-sweep-tests
branch
from
June 3, 2026 16:39
1739860 to
c414c85
Compare
Add handle_delayed_updates() function and integration tests verifying the --delay-updates bulk rename sweep in the disk commit layer. The implementation mirrors upstream receiver.c:422-450 where files are first committed to .~tmp~/ staging directories during transfer, then renamed to their final destinations in a single sweep. Tests cover: - staging path computation via delay_updates_staging_path() - single and multiple file rename sweep - staging directory cleanup after sweep - nested directory structures with per-directory staging - end-to-end flow through the disk commit thread - whole-file coalesced writes with delayed sweep - replacement of existing destination files - empty outcomes as no-op
oferchen
force-pushed
the
feature/pir-5c-delay-updates-sweep-tests
branch
from
June 3, 2026 19:11
d8a0023 to
7c61fb6
Compare
Master introduced a private CommitOutcome struct in commit_file() with fields was_copy and delayed_path. The delay-updates sweep struct used the same name with different fields (staging_path, final_path), causing a duplicate definition error when CI merges master into the branch. Rename the sweep struct to DelayedUpdateEntry to disambiguate.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
* test: add delay-updates sweep tests for remote transfer path (#3462) Add handle_delayed_updates() function and integration tests verifying the --delay-updates bulk rename sweep in the disk commit layer. The implementation mirrors upstream receiver.c:422-450 where files are first committed to .~tmp~/ staging directories during transfer, then renamed to their final destinations in a single sweep. Tests cover: - staging path computation via delay_updates_staging_path() - single and multiple file rename sweep - staging directory cleanup after sweep - nested directory structures with per-directory staging - end-to-end flow through the disk commit thread - whole-file coalesced writes with delayed sweep - replacement of existing destination files - empty outcomes as no-op * fix: correct off-by-one in delay_updates whole_file test data length * style: apply cargo fmt formatting * style: fix import ordering in disk_commit tests * fix: rename CommitOutcome to DelayedUpdateEntry to avoid name collision Master introduced a private CommitOutcome struct in commit_file() with fields was_copy and delayed_path. The delay-updates sweep struct used the same name with different fields (staging_path, final_path), causing a duplicate definition error when CI merges master into the branch. Rename the sweep struct to DelayedUpdateEntry to disambiguate. * fix: resolve clippy unnecessary_lazy_evaluations lint in disk commit * style: apply cargo fmt to disk_commit process module
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
handle_delayed_updates()function implementing the upstreamreceiver.c:422-450bulk rename sweep for--delay-updatesin the remote receiver pathdelay_updates_staging_path()helper to compute.~tmp~/staging pathsCommitOutcomestruct to track staging-to-final path mappingsDELAY_UPDATES_PARTIAL_DIRconstant (.~tmp~) to the disk commit config moduleTest plan
.~tmp~/staging directory cleanup after sweep