Skip to content

fix: use shared base directory for --files-from file list building - #2746

Merged
oferchen merged 3 commits into
masterfrom
fix/files-from-interop
Mar 17, 2026
Merged

oferchen merged 3 commits into
masterfrom
fix/files-from-interop

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

  • The generator's build_file_list treated each --files-from path as its own base directory in walk_path(base, path), producing file entries with empty relative names. This caused exit code 23 (partial transfer) in daemon push interop tests.
  • Add build_file_list_with_base() that uses the source directory (argv[0]) as a shared base for all listed files, matching upstream rsync's chdir(argv[0]) behavior in flist.c:2240-2264.
  • Remove oc:files-from from KNOWN_FAILURES in the interop harness.

Test plan

  • CI interop tests pass for oc:files-from scenario (previously a known failure)
  • New unit tests verify build_file_list_with_base produces correct relative names
  • New unit test verifies missing files are gracefully skipped with io_error
  • All existing tests continue to pass (no regression in normal file list building)

@github-actions github-actions Bot added the bug Something isn't working label Mar 16, 2026
The generator's build_file_list treated each --files-from path as its
own base directory, producing entries with empty relative names. This
caused the daemon receiver to receive files with no name, resulting
in exit code 23 (partial transfer) during interop tests.

Add build_file_list_with_base() that uses the source directory (argv[0])
as a shared base for all listed files, matching upstream rsync's
chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now
computed correctly by stripping the common base prefix.

Remove oc:files-from from KNOWN_FAILURES in the interop harness.
@oferchen
oferchen force-pushed the fix/files-from-interop branch from d48618f to e7b5e4c Compare March 17, 2026 01:16
@oferchen
oferchen merged commit 179ea99 into master Mar 17, 2026
36 of 37 checks passed
@oferchen
oferchen deleted the fix/files-from-interop branch March 17, 2026 04:49
oferchen added a commit that referenced this pull request May 1, 2026
…2746)

* fix: use shared base directory for --files-from file list building

The generator's build_file_list treated each --files-from path as its
own base directory, producing entries with empty relative names. This
caused the daemon receiver to receive files with no name, resulting
in exit code 23 (partial transfer) during interop tests.

Add build_file_list_with_base() that uses the source directory (argv[0])
as a shared base for all listed files, matching upstream rsync's
chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now
computed correctly by stripping the common base prefix.

Remove oc:files-from from KNOWN_FAILURES in the interop harness.

* style: fix rustfmt formatting in file_list and tests

* style: fix rustfmt formatting for CI stable
oferchen added a commit that referenced this pull request May 5, 2026
…2746)

* fix: use shared base directory for --files-from file list building

The generator's build_file_list treated each --files-from path as its
own base directory, producing entries with empty relative names. This
caused the daemon receiver to receive files with no name, resulting
in exit code 23 (partial transfer) during interop tests.

Add build_file_list_with_base() that uses the source directory (argv[0])
as a shared base for all listed files, matching upstream rsync's
chdir(argv[0]) behavior in flist.c:2240-2264. Relative names are now
computed correctly by stripping the common base prefix.

Remove oc:files-from from KNOWN_FAILURES in the interop harness.

* style: fix rustfmt formatting in file_list and tests

* style: fix rustfmt formatting for CI stable
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