Skip to content

Refactor fallback binary and special executor modules - #2076

Merged
oferchen merged 1 commit into
masterfrom
fix-clippy-warnings
Nov 8, 2025
Merged

oferchen merged 1 commit into
masterfrom
fix-clippy-warnings

Conversation

@oferchen

@oferchen oferchen commented Nov 8, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • split the fallback binary logic into availability, candidate, diagnostics, unix, and test modules
  • break the special-file executor into focused fifo, device, and symlink implementations

Testing

  • cargo clippy --workspace --all-targets --all-features -- -D warnings
  • cargo test -p oc-rsync-core --all-features (fails: client::tests::sequential_runs_respect_ignore_times)

[Codex Task](

@oferchen
oferchen merged commit ec19f3e into master Nov 8, 2025
@oferchen
oferchen deleted the fix-clippy-warnings branch November 8, 2025 17:57

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +1 to +12
mod availability;
mod candidates;
mod diagnostics;
#[cfg(unix)]
mod unix;

pub use self::availability::fallback_binary_available;
pub use self::candidates::fallback_binary_candidates;
pub use self::diagnostics::describe_missing_fallback_binary;

#[cfg(test)]
mod tests;

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge Do not define fallback::binary module twice

The new module scaffold in fallback/binary/mod.rs is added while the old monolithic crates/core/src/fallback/binary.rs still exists. Because fallback.rs declares mod binary;, Rust now sees both a binary.rs file and a binary/mod.rs directory for the same module and emits a "module defined multiple times" error, preventing the crate from compiling. Remove the legacy file or move its contents into the new directory before introducing the split submodules.

Useful? React with 👍 / 👎.

Comment on lines +1 to +9
//! Copy logic for FIFOs, devices, and symbolic links.

mod device;
mod fifo;
mod symlink;

pub(crate) use device::copy_device;
pub(crate) use fifo::copy_fifo;
pub(crate) use symlink::{copy_symlink, create_symlink, symlink_target_is_safe};

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P0 Badge local_copy::executor::special is duplicated as file and directory

A parallel issue exists in the local copy executor: special/mod.rs is introduced but the original crates/engine/src/local_copy/executor/special.rs remains. With executor/mod.rs still declaring mod special;, the compiler finds both a file and a directory of that name, causing a duplicate module error and breaking the build. The refactor needs to remove or integrate the old file so the module is defined exactly once.

Useful? React with 👍 / 👎.

oferchen added a commit that referenced this pull request May 5, 2026
#3723)

Add design note for the canonical zsync-style insertion adversary at
docs/design/zsync-shifted-insertion-test.md, pinning the public-API
guard for the four pipeline optimizations enumerated in
docs/design/zsync-inspired-matching.md (#2053). Documents the
fixture parameters, expected match output for aligned vs unaligned
regimes, the upstream rsync --stats comparison oracle, CI integration
gated by SIMD parity (#2077), and the failure modes (signed-byte
regression #2076 class, off-by-one in seek, bithash false negative
#2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs,
strong-checksum truncation drift, ring-buffer wrap bugs).

Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs,
the sibling rsum-collision fixture from #2078, and the rolling
sign-extension fix from PR #3560 (commit 723a0a0).
oferchen added a commit that referenced this pull request May 18, 2026
#3723)

Add design note for the canonical zsync-style insertion adversary at
docs/design/zsync-shifted-insertion-test.md, pinning the public-API
guard for the four pipeline optimizations enumerated in
docs/design/zsync-inspired-matching.md (#2053). Documents the
fixture parameters, expected match output for aligned vs unaligned
regimes, the upstream rsync --stats comparison oracle, CI integration
gated by SIMD parity (#2077), and the failure modes (signed-byte
regression #2076 class, off-by-one in seek, bithash false negative
#2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs,
strong-checksum truncation drift, ring-buffer wrap bugs).

Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs,
the sibling rsum-collision fixture from #2078, and the rolling
sign-extension fix from PR #3560 (commit 723a0a0).
oferchen added a commit that referenced this pull request Aug 24, 2026
#3723)

Add design note for the canonical zsync-style insertion adversary at
docs/design/zsync-shifted-insertion-test.md, pinning the public-API
guard for the four pipeline optimizations enumerated in
docs/design/zsync-inspired-matching.md (#2053). Documents the
fixture parameters, expected match output for aligned vs unaligned
regimes, the upstream rsync --stats comparison oracle, CI integration
gated by SIMD parity (#2077), and the failure modes (signed-byte
regression #2076 class, off-by-one in seek, bithash false negative
#2061-#2063 class, want_i hint off-by-one, rolling-window reset bugs,
strong-checksum truncation drift, ring-buffer wrap bugs).

Cites the existing fixture at crates/match/tests/shifted_insertion_fixture.rs,
the sibling rsum-collision fixture from #2078, and the rolling
sign-extension fix from PR #3560 (commit 723a0a0).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant