Repository navigation
Refactor fallback binary and special executor modules - #2076
Conversation
There was a problem hiding this comment.
💡 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".
| 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; |
There was a problem hiding this comment.
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 👍 / 👎.
| //! 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}; |
There was a problem hiding this comment.
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 👍 / 👎.
#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).
#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).
#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).
Summary
Testing
[Codex Task](