Skip to content

Remove legacy fallback invocation paths - #2262

Merged
oferchen merged 1 commit into
masterfrom
remove-delegation-and-fallback-logic
Nov 30, 2025
Merged

oferchen merged 1 commit into
masterfrom
remove-delegation-and-fallback-logic

Conversation

@oferchen

@oferchen oferchen commented Nov 30, 2025 •

Copy link
Copy Markdown
Owner

Summary

  • block remote and batch-mode transfers from invoking external fallbacks and surface a client error instead
  • simplify CLI transfer execution to run purely through native client observers without fallback branches
  • drop fallback-specific tests and module registrations now that delegation is disabled, while returning client summaries directly

Testing

  • cargo fmt
  • cargo check -p core -p cli (warnings about unused code to be cleaned up in follow-ups)

[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 4a8c26f into master Nov 30, 2025
@oferchen
oferchen deleted the remove-delegation-and-fallback-logic branch November 30, 2025 13:57
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
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
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
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