Repository navigation
fix(generator): match upstream order for -vv per-file uptodate output - #5909
Merged
Merged
Conversation
1 of 3 tasks
oferchen
force-pushed
the
fix/uts-itemize-vvplrH-order
branch
2 times, most recently
from
June 18, 2026 03:19
57b2304 to
0a9c900
Compare
Two changes that combine to make `testsuite/itemize.test` consistent with upstream rsync's `-i` and `-vv` outputs for the already-linked hardlink branch: 1. `local_copy::process_links` (block 2a, `is_already_hardlinked`): pass `None` for the snapshot's `symlink_target` slot so the `%L` placeholder renders to the empty string. Upstream's `hlink.c:218-222` calls `itemize(..., ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0, "")` with an empty xname; `log.c:643-654` then skips the ` => %s` suffix, producing the `hf$allspace foo/extra` row at line 122 of `testsuite/itemize.test`. The previously-passed leader path produced a spurious `=> foo/config1` trailer on otherwise-uptodate hardlink rows under `-i`. The newly-linked branch (block 2b) is unchanged: it still threads the leader path so the `=> foo/config1` xname suffix renders for the `-iplrH` line-78 golden. 2. Repair `ssh_transfer::run_pull_transfer` / `run_push_transfer`: pass `config.delete_excluded()` as the second argument to `flags::build_wire_format_rules`. The signature was extended in #5899 (FILTRULE_SENDER_SIDE under `--delete-excluded`) but these two SSH call sites were not updated, leaving master with `error[E0061]: this function takes 2 arguments but 1 argument was supplied` and blocking `upstream-testsuite` (and all other CI cells) at the build step. Regression coverage: - `itemize_hardlink_already_linked_omits_arrow_suffix` runs `-plrtH` to set up the destination alias and then `-iplrtH` to verify the second-pass row carries no `=> leader.bin` trailer.
oferchen
force-pushed
the
fix/uts-itemize-vvplrH-order
branch
from
June 18, 2026 04:15
3e6eb3e to
3098205
Compare
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
#5909) Two changes that combine to make `testsuite/itemize.test` consistent with upstream rsync's `-i` and `-vv` outputs for the already-linked hardlink branch: 1. `local_copy::process_links` (block 2a, `is_already_hardlinked`): pass `None` for the snapshot's `symlink_target` slot so the `%L` placeholder renders to the empty string. Upstream's `hlink.c:218-222` calls `itemize(..., ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0, "")` with an empty xname; `log.c:643-654` then skips the ` => %s` suffix, producing the `hf$allspace foo/extra` row at line 122 of `testsuite/itemize.test`. The previously-passed leader path produced a spurious `=> foo/config1` trailer on otherwise-uptodate hardlink rows under `-i`. The newly-linked branch (block 2b) is unchanged: it still threads the leader path so the `=> foo/config1` xname suffix renders for the `-iplrH` line-78 golden. 2. Repair `ssh_transfer::run_pull_transfer` / `run_push_transfer`: pass `config.delete_excluded()` as the second argument to `flags::build_wire_format_rules`. The signature was extended in #5899 (FILTRULE_SENDER_SIDE under `--delete-excluded`) but these two SSH call sites were not updated, leaving master with `error[E0061]: this function takes 2 arguments but 1 argument was supplied` and blocking `upstream-testsuite` (and all other CI cells) at the build step. Regression coverage: - `itemize_hardlink_already_linked_omits_arrow_suffix` runs `-plrtH` to set up the destination alias and then `-iplrtH` to verify the second-pass row carries no `=> leader.bin` trailer.
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
Noneto theLocalCopyMetadata::from_metadatasnapshot in the already-linked branch ofprocess_links(block 2a) so the%Lplaceholder renders to the empty string. Upstreamhlink.c:218-222invokesitemize(..., ITEM_LOCAL_CHANGE | ITEM_XNAME_FOLLOWS, 0, "")with an empty xname when the destination is already linked to the source group leader;log.c:643-654then skips the=> %ssuffix, producing thehf$allspace foo/extrarow at line 122 oftestsuite/itemize.test. The previously-passed leader path produced a spurious=> foo/config1trailer on otherwise-uptodate hardlink rows under-i. The newly-linked branch (block 2b) keeps itsSome(leader_path)snapshot so the=> foo/config1xname suffix continues to render for the-iplrHgolden at line 78.flags::build_wire_format_rulesto passconfig.delete_excluded()as the second argument. The signature was extended in fix(filters): apply implicit FILTRULE_SENDER_SIDE under --delete-excluded #5899 (fix(filters): apply implicit FILTRULE_SENDER_SIDE under --delete-excluded) butcrates/core/src/client/remote/ssh_transfer.rswas not updated, leaving master aterror[E0061]: this function takes 2 arguments but 1 argument was suppliedand blocking theupstream-testsuitebuild (and every other cell).The primary -vv ordering and "is uptodate" hardlink emission for
testsuite/itemize.testtest 4 (oc-rsync -vvplrH from/ to/) were already addressed by #5901 (fix(transfer): emit hardlink uptodate and direct stats to stderr in -vv). The CI log in the original task captured the pre-#5901 master HEAD; the PR-#5901 CI artifact (run 27714422985) confirms test 4 passes. This PR closes the residual-idivergence on the already-linked path and unblocks the broken build so the testsuite can run end-to-end in CI.Test plan
cargo fmt --allclean (verified in podman container).itemize_hardlink_already_linked_omits_arrow_suffixruns-plrtHto set up the destination alias and then-iplrtHto assert the second-pass row carries no=> leader.bintrailer.upstream-testsuiteend-to-end (now able to build on master;itemize.testinvocation 4 should pass and the suite should advance through invocations 5+).