Skip to content

Stop delegating --server to system rsync - #2260

Merged
oferchen merged 2 commits into
masterfrom
remove-delegation-logic-from-oc-rsync
Nov 30, 2025
Merged

oferchen merged 2 commits into
masterfrom
remove-delegation-logic-from-oc-rsync

Conversation

@oferchen

@oferchen oferchen commented Nov 30, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • replace the --server entrypoint delegation with a branded error explaining native server mode is not yet available
  • refresh CLI server tests to ensure no external fallback binary is spawned and trailers are attached
  • update embedding tests to expect the new server-mode diagnostics

Testing

  • cargo fmt
  • cargo test -p cli server_mode_reports_unavailability -- --nocapture

[Codex Task](

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@oferchen
oferchen merged commit 11ae74f into master Nov 30, 2025
@oferchen
oferchen deleted the remove-delegation-logic-from-oc-rsync branch November 30, 2025 13:28
oferchen added a commit that referenced this pull request May 17, 2026
#2259)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request May 17, 2026
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request May 17, 2026
DDP-C2 (#2260): full dispatch by entry kind matching upstream
delete.c::delete_item. Directories try rmdir first; on ENOTEMPTY the
emitter drains the nested DeletePlan (if published) and retries the
rmdir, or falls back to DeleteFs::remove_dir_all when no plan exists -
mirroring delete_dir_contents (delete.c:48-122). The DeleteFs trait
gains remove_dir_all so the recording fake can observe the fallback.

DDP-C3 (#2261): EmitterErrorPolicy { ignore_errors, continue_on_error }
mirrors upstream's --ignore-errors and continue-on-error semantics
(delete.c:178-207). Non-fatal failures set io_error (IOERR_GENERAL or a
vanished-only bit for NotFound) and the drain keeps going. Fatal
classifications (PermissionDenied / EPERM-class) abort and surface
Err. New exit_code() maps the accumulated io_error to RERR_PARTIAL
(23) or RERR_VANISHED (24).

DDP-C4 (#2262): nine new unit tests covering mixed-kind dispatch
order, ENOTEMPTY recursion via nested plan, ENOTEMPTY fallback to
remove_dir_all, non-fatal mid-plan continuation, fatal EPERM abort,
--ignore-errors suppression, vanished-only exit code mapping,
continue_on_error=false abort, and plan-map exhaustion no-op.
oferchen added a commit that referenced this pull request May 17, 2026
DDP-C2 (#2260): full dispatch by entry kind matching upstream
delete.c::delete_item. Directories try rmdir first; on ENOTEMPTY the
emitter drains the nested DeletePlan (if published) and retries the
rmdir, or falls back to DeleteFs::remove_dir_all when no plan exists -
mirroring delete_dir_contents (delete.c:48-122). The DeleteFs trait
gains remove_dir_all so the recording fake can observe the fallback.

DDP-C3 (#2261): EmitterErrorPolicy { ignore_errors, continue_on_error }
mirrors upstream's --ignore-errors and continue-on-error semantics
(delete.c:178-207). Non-fatal failures set io_error (IOERR_GENERAL or a
vanished-only bit for NotFound) and the drain keeps going. Fatal
classifications (PermissionDenied / EPERM-class) abort and surface
Err. New exit_code() maps the accumulated io_error to RERR_PARTIAL
(23) or RERR_VANISHED (24).

DDP-C4 (#2262): nine new unit tests covering mixed-kind dispatch
order, ENOTEMPTY recursion via nested plan, ENOTEMPTY fallback to
remove_dir_all, non-fatal mid-plan continuation, fatal EPERM abort,
--ignore-errors suppression, vanished-only exit code mapping,
continue_on_error=false abort, and plan-map exhaustion no-op.
oferchen added a commit that referenced this pull request May 18, 2026
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request May 18, 2026
DDP-C2 (#2260): full dispatch by entry kind matching upstream
delete.c::delete_item. Directories try rmdir first; on ENOTEMPTY the
emitter drains the nested DeletePlan (if published) and retries the
rmdir, or falls back to DeleteFs::remove_dir_all when no plan exists -
mirroring delete_dir_contents (delete.c:48-122). The DeleteFs trait
gains remove_dir_all so the recording fake can observe the fallback.

DDP-C3 (#2261): EmitterErrorPolicy { ignore_errors, continue_on_error }
mirrors upstream's --ignore-errors and continue-on-error semantics
(delete.c:178-207). Non-fatal failures set io_error (IOERR_GENERAL or a
vanished-only bit for NotFound) and the drain keeps going. Fatal
classifications (PermissionDenied / EPERM-class) abort and surface
Err. New exit_code() maps the accumulated io_error to RERR_PARTIAL
(23) or RERR_VANISHED (24).

DDP-C4 (#2262): nine new unit tests covering mixed-kind dispatch
order, ENOTEMPTY recursion via nested plan, ENOTEMPTY fallback to
remove_dir_all, non-fatal mid-plan continuation, fatal EPERM abort,
--ignore-errors suppression, vanished-only exit code mapping,
continue_on_error=false abort, and plan-map exhaustion no-op.
oferchen added a commit that referenced this pull request May 18, 2026
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request May 18, 2026
DDP-C2 (#2260): full dispatch by entry kind matching upstream
delete.c::delete_item. Directories try rmdir first; on ENOTEMPTY the
emitter drains the nested DeletePlan (if published) and retries the
rmdir, or falls back to DeleteFs::remove_dir_all when no plan exists -
mirroring delete_dir_contents (delete.c:48-122). The DeleteFs trait
gains remove_dir_all so the recording fake can observe the fallback.

DDP-C3 (#2261): EmitterErrorPolicy { ignore_errors, continue_on_error }
mirrors upstream's --ignore-errors and continue-on-error semantics
(delete.c:178-207). Non-fatal failures set io_error (IOERR_GENERAL or a
vanished-only bit for NotFound) and the drain keeps going. Fatal
classifications (PermissionDenied / EPERM-class) abort and surface
Err. New exit_code() maps the accumulated io_error to RERR_PARTIAL
(23) or RERR_VANISHED (24).

DDP-C4 (#2262): nine new unit tests covering mixed-kind dispatch
order, ENOTEMPTY recursion via nested plan, ENOTEMPTY fallback to
remove_dir_all, non-fatal mid-plan continuation, fatal EPERM abort,
--ignore-errors suppression, vanished-only exit code mapping,
continue_on_error=false abort, and plan-map exhaustion no-op.
oferchen added a commit that referenced this pull request Aug 24, 2026
#2259) (#4260)

Scaffolds the single-threaded emitter half of the parallel-deterministic
delete pipeline (design: parallel-deterministic-delete.md). Lands the
DeleteFs trait so the dispatch table per upstream entry kind (delete.c
delete_item:144-176) is mockable in tests, a RealDeleteFs production
impl backed by std::fs, a RecordingDeleteFs test fake that captures the
syscall sequence, and the DeleteEmitter::emit_all drain loop that walks
DirTraversalCursor in upstream traversal order and increments
DeleteStats per planned entry.

The DeletePlan, DeletePlanMap, and DirTraversalCursor types are
declared as in-file placeholders (matching the names DDP-A3 #2253 and
DDP-A4 #2254 will produce) so the scaffold is independently mergeable;
the type substitution at merge is mechanical. Syscall hardening
(DDP-C2 #2260) and upstream error policy (DDP-C3 #2261) come next.

Tests cover the empty-map base case, the full File/Dir/Symlink/
Device/Special dispatch matrix, multi-directory cursor-order traversal
with within-directory plan order, and the cursor-outpaces-plans gap
where emit_all parks and resumes on a later call.
oferchen added a commit that referenced this pull request Aug 24, 2026
DDP-C2 (#2260): full dispatch by entry kind matching upstream
delete.c::delete_item. Directories try rmdir first; on ENOTEMPTY the
emitter drains the nested DeletePlan (if published) and retries the
rmdir, or falls back to DeleteFs::remove_dir_all when no plan exists -
mirroring delete_dir_contents (delete.c:48-122). The DeleteFs trait
gains remove_dir_all so the recording fake can observe the fallback.

DDP-C3 (#2261): EmitterErrorPolicy { ignore_errors, continue_on_error }
mirrors upstream's --ignore-errors and continue-on-error semantics
(delete.c:178-207). Non-fatal failures set io_error (IOERR_GENERAL or a
vanished-only bit for NotFound) and the drain keeps going. Fatal
classifications (PermissionDenied / EPERM-class) abort and surface
Err. New exit_code() maps the accumulated io_error to RERR_PARTIAL
(23) or RERR_VANISHED (24).

DDP-C4 (#2262): nine new unit tests covering mixed-kind dispatch
order, ENOTEMPTY recursion via nested plan, ENOTEMPTY fallback to
remove_dir_all, non-fatal mid-plan continuation, fatal EPERM abort,
--ignore-errors suppression, vanished-only exit code mapping,
continue_on_error=false abort, and plan-map exhaustion no-op.
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