Repository navigation
Remove system rsync delegation for server mode - #2255
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
PR Compliance Guide 🔍Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label |
||||||||||||||||||||||||
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||
CI Feedback 🧐A test triggered by this PR failed. Here is an AI-generated analysis of the failure:
|
…lel deterministic delete (#2253, #2254) (#4259) * feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254) Adds the data-structure foundation for the parallel-deterministic-delete pipeline described in docs/design/parallel-deterministic-delete.md (PR #4257). Three new modules under crates/engine/src/delete/: - plan.rs: DeletePlan (sorted, frozen per-directory work item), DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp (PR #4256) ascending then reverses, matching delete_in_dir's loop at generator.c:320. - plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous between phase-1 workers and the phase-2 emitter. Backed by Mutex<HashMap> for now; bench-driven choice between Mutex, DashMap, and a sharded map is deferred to task DDP-B4 (see code comment). - traversal.rs: DirTraversalCursor, yields directories in upstream's depth-first f_name_cmp-ascending order. Tree built from observed flist segments via observe_segment(); next_ready() returns the next directory whose parent has been emitted. Pure data structures, no callers; phase-1 and phase-2 wiring lands in later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent inserts and takes from 16 threads, out-of-order segment observation, non-directory filtering, duplicate observations, and high-byte basename ordering on Unix. * fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready Splits the frame inspection from the mutation so the mutable borrow of the top frame is released before pushing a new frame or popping the old one. Functionally equivalent.
#4262) Phase 1 of the parallel-deterministic-delete pipeline: a pure function that lists a destination directory, set-subtracts entries present in the corresponding flist segment, and classifies surviving entries by kind so the caller can wrap them in a DeletePlan, sort to upstream emission order, and publish to the DeletePlanMap. Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir) basename-keyed set subtraction against the active flist via flist_find_ignore_dirness. Symlinks classify by symlink_metadata so they map to DeleteEntryKind::Symlink instead of the link target type. Hardlink-cohort tagging is left to task DDP-D2; entries here always carry hardlink_cohort: None. Cross-platform: device/FIFO/socket classification gated to Unix via FileTypeExt; on Windows non-dir, non-symlink entries collapse to DeleteEntryKind::File matching upstream's fallback behaviour.
…lel deterministic delete (#2253, #2254) (#4259) * feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254) Adds the data-structure foundation for the parallel-deterministic-delete pipeline described in docs/design/parallel-deterministic-delete.md (PR #4257). Three new modules under crates/engine/src/delete/: - plan.rs: DeletePlan (sorted, frozen per-directory work item), DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp (PR #4256) ascending then reverses, matching delete_in_dir's loop at generator.c:320. - plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous between phase-1 workers and the phase-2 emitter. Backed by Mutex<HashMap> for now; bench-driven choice between Mutex, DashMap, and a sharded map is deferred to task DDP-B4 (see code comment). - traversal.rs: DirTraversalCursor, yields directories in upstream's depth-first f_name_cmp-ascending order. Tree built from observed flist segments via observe_segment(); next_ready() returns the next directory whose parent has been emitted. Pure data structures, no callers; phase-1 and phase-2 wiring lands in later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent inserts and takes from 16 threads, out-of-order segment observation, non-directory filtering, duplicate observations, and high-byte basename ordering on Unix. * fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready Splits the frame inspection from the mutation so the mutable borrow of the top frame is released before pushing a new frame or popping the old one. Functionally equivalent.
#4262) Phase 1 of the parallel-deterministic-delete pipeline: a pure function that lists a destination directory, set-subtracts entries present in the corresponding flist segment, and classifies surviving entries by kind so the caller can wrap them in a DeletePlan, sort to upstream emission order, and publish to the DeletePlanMap. Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir) basename-keyed set subtraction against the active flist via flist_find_ignore_dirness. Symlinks classify by symlink_metadata so they map to DeleteEntryKind::Symlink instead of the link target type. Hardlink-cohort tagging is left to task DDP-D2; entries here always carry hardlink_cohort: None. Cross-platform: device/FIFO/socket classification gated to Unix via FileTypeExt; on Windows non-dir, non-symlink entries collapse to DeleteEntryKind::File matching upstream's fallback behaviour.
…lel deterministic delete (#2253, #2254) (#4259) * feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254) Adds the data-structure foundation for the parallel-deterministic-delete pipeline described in docs/design/parallel-deterministic-delete.md (PR #4257). Three new modules under crates/engine/src/delete/: - plan.rs: DeletePlan (sorted, frozen per-directory work item), DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp (PR #4256) ascending then reverses, matching delete_in_dir's loop at generator.c:320. - plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous between phase-1 workers and the phase-2 emitter. Backed by Mutex<HashMap> for now; bench-driven choice between Mutex, DashMap, and a sharded map is deferred to task DDP-B4 (see code comment). - traversal.rs: DirTraversalCursor, yields directories in upstream's depth-first f_name_cmp-ascending order. Tree built from observed flist segments via observe_segment(); next_ready() returns the next directory whose parent has been emitted. Pure data structures, no callers; phase-1 and phase-2 wiring lands in later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent inserts and takes from 16 threads, out-of-order segment observation, non-directory filtering, duplicate observations, and high-byte basename ordering on Unix. * fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready Splits the frame inspection from the mutation so the mutable borrow of the top frame is released before pushing a new frame or popping the old one. Functionally equivalent.
#4262) Phase 1 of the parallel-deterministic-delete pipeline: a pure function that lists a destination directory, set-subtracts entries present in the corresponding flist segment, and classifies surviving entries by kind so the caller can wrap them in a DeletePlan, sort to upstream emission order, and publish to the DeletePlanMap. Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir) basename-keyed set subtraction against the active flist via flist_find_ignore_dirness. Symlinks classify by symlink_metadata so they map to DeleteEntryKind::Symlink instead of the link target type. Hardlink-cohort tagging is left to task DDP-D2; entries here always carry hardlink_cohort: None. Cross-platform: device/FIFO/socket classification gated to Unix via FileTypeExt; on Windows non-dir, non-symlink entries collapse to DeleteEntryKind::File matching upstream's fallback behaviour.
…lel deterministic delete (#2253, #2254) (#4259) * feat(engine): DeletePlan, DeletePlanMap, DirTraversalCursor (#2253, #2254) Adds the data-structure foundation for the parallel-deterministic-delete pipeline described in docs/design/parallel-deterministic-delete.md (PR #4257). Three new modules under crates/engine/src/delete/: - plan.rs: DeletePlan (sorted, frozen per-directory work item), DeleteEntry, DeleteEntryKind (mirrors DeleteStats buckets), and a HardlinkCohortId newtype. sort_by_name() uses upstream's f_name_cmp (PR #4256) ascending then reverses, matching delete_in_dir's loop at generator.c:320. - plan_map.rs: DeletePlanMap, the publish-once concurrent rendezvous between phase-1 workers and the phase-2 emitter. Backed by Mutex<HashMap> for now; bench-driven choice between Mutex, DashMap, and a sharded map is deferred to task DDP-B4 (see code comment). - traversal.rs: DirTraversalCursor, yields directories in upstream's depth-first f_name_cmp-ascending order. Tree built from observed flist segments via observe_segment(); next_ready() returns the next directory whose parent has been emitted. Pure data structures, no callers; phase-1 and phase-2 wiring lands in later tasks (#2255-#2278). Unit tests cover plan ordering, concurrent inserts and takes from 16 threads, out-of-order segment observation, non-directory filtering, duplicate observations, and high-byte basename ordering on Unix. * fix(engine): avoid borrow-checker conflict in DirTraversalCursor::next_ready Splits the frame inspection from the mutation so the mutable borrow of the top frame is released before pushing a new frame or popping the old one. Functionally equivalent.
#4262) Phase 1 of the parallel-deterministic-delete pipeline: a pure function that lists a destination directory, set-subtracts entries present in the corresponding flist segment, and classifies surviving entries by kind so the caller can wrap them in a DeletePlan, sort to upstream emission order, and publish to the DeletePlanMap. Mirrors upstream rsync 3.4.1 generator.c:272-347 (delete_in_dir) basename-keyed set subtraction against the active flist via flist_find_ignore_dirness. Symlinks classify by symlink_metadata so they map to DeleteEntryKind::Symlink instead of the link target type. Hardlink-cohort tagging is left to task DDP-D2; entries here always carry hardlink_cohort: None. Cross-platform: device/FIFO/socket classification gated to Unix via FileTypeExt; on Windows non-dir, non-symlink entries collapse to DeleteEntryKind::File matching upstream's fallback behaviour.
User description
Summary
--serverpath from spawning an external rsync binary and emit a branded unsupported message insteadTesting
[Codex Task](
PR Type
Enhancement
Description
Remove system rsync delegation from
--servermodeReplace fallback binary spawning with explicit error message
Simplify server handler by eliminating process management code
Update documentation to reflect native-only server requirement
Consolidate tests to verify no delegation occurs
Diagram Walkthrough
File Walkthrough
mod.rs
Update frontend module documentation for server modecrates/cli/src/frontend/mod.rs
delegation
error
--servernow reports error until native implementationcomplete
OC_RSYNC_FALLBACKenvironment variableinternal docs
Update agent documentation to remove fallback guardrailsinternal docs
binary validation
core::fallbackhelper functions and cachingbehavior
execute natively
OC_RSYNC_FALLBACKare ignoredserver.rs
Remove fallback binary delegation from server handlercrates/cli/src/frontend/server.rs
utilities
run_server_modeimplementation with simple error reportingwrite_server_fallback_errortowrite_server_unavailable_errorthread management
server.rs
Consolidate server tests to verify no delegationcrates/cli/src/frontend/tests/server.rs
#[cfg(unix)]guards from testsdelegation occurs
recursive fallback detection
displayed