Repository navigation
Stop delegating --server to system rsync - #2260
Merged
Merged
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
oferchen
added a commit
that referenced
this pull request
May 1, 2026
oferchen
added a commit
that referenced
this pull request
May 5, 2026
4 of 5 tasks
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.
3 tasks
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
--serverentrypoint delegation with a branded error explaining native server mode is not yet availableTesting
[Codex Task](