Skip to content

fix(generator): match upstream order for -vv per-file uptodate output - #5909

Merged
oferchen merged 1 commit into
masterfrom
fix/uts-itemize-vvplrH-order
Jun 18, 2026
Merged

oferchen merged 1 commit into
masterfrom
fix/uts-itemize-vvplrH-order

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • Pass None to the LocalCopyMetadata::from_metadata snapshot in the already-linked branch of process_links (block 2a) so the %L placeholder renders to the empty string. Upstream hlink.c:218-222 invokes itemize(..., 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-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) keeps its Some(leader_path) snapshot so the => foo/config1 xname suffix continues to render for the -iplrH golden at line 78.
  • Repair the two SSH call sites of flags::build_wire_format_rules to pass config.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) but crates/core/src/client/remote/ssh_transfer.rs was not updated, leaving master at error[E0061]: this function takes 2 arguments but 1 argument was supplied and blocking the upstream-testsuite build (and every other cell).

The primary -vv ordering and "is uptodate" hardlink emission for testsuite/itemize.test test 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 -i divergence on the already-linked path and unblocks the broken build so the testsuite can run end-to-end in CI.

Test plan

  • cargo fmt --all clean (verified in podman container).
  • New unit test itemize_hardlink_already_linked_omits_arrow_suffix runs -plrtH to set up the destination alias and then -iplrtH to assert the second-pass row carries no => leader.bin trailer.
  • CI: fmt+clippy, nextest (stable), Windows/macOS/Linux musl matrices.
  • CI: upstream-testsuite end-to-end (now able to build on master; itemize.test invocation 4 should pass and the suite should advance through invocations 5+).

@github-actions github-actions Bot added the bug Something isn't working label Jun 17, 2026
@oferchen
oferchen force-pushed the fix/uts-itemize-vvplrH-order branch 2 times, most recently from 57b2304 to 0a9c900 Compare June 18, 2026 03:19
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
oferchen force-pushed the fix/uts-itemize-vvplrH-order branch from 3e6eb3e to 3098205 Compare June 18, 2026 04:15
@oferchen
oferchen merged commit f620674 into master Jun 18, 2026
2 of 3 checks passed
@oferchen
oferchen deleted the fix/uts-itemize-vvplrH-order branch June 18, 2026 04:16
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant