Skip to content

refactor(cli, engine): remove --delete-strict-order flag (#2270, #2271, #2273, #2274) - #4263

Merged
oferchen merged 1 commit into
masterfrom
refactor/remove-delete-strict-order-flag-2270
May 17, 2026
Merged

oferchen merged 1 commit into
masterfrom
refactor/remove-delete-strict-order-flag-2270

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Summary

Part of the DDP (parallel-flist deterministic delete) series tracked
by docs/design/parallel-deterministic-delete.md. The opt-in
--delete-strict-order flag (PR #4245, issue #1940) is being
superseded by a single deterministic per-directory delete model that
reproduces upstream rsync 3.4.1 ordering byte-for-byte without a
user-visible flag and without a fallback path.

This PR removes only the flag (DDP-F1, F2, F4, F5). The existing
batched post-transfer --delete-during sweep is intentionally
retained
for now: until DDP-E1..E5 wire the new emitter as the
live deletion path, removing the batched sweep would break
--delete-during. DDP-F3 will drop the batched sweep once the
emitter is the live replacement.

Changes

  • CLI: deleted --delete-strict-order / --no-delete-strict-order
    argument definitions, ParsedArgs::delete_strict_order, parser
    plumbing, help text, supported-options string, and four parser
    unit tests.
  • Core: removed ClientConfig::delete_strict_order,
    ClientConfigBuilder::delete_strict_order, the run-side
    plumbing into LocalCopyOptions, and the
    delete_strict_order_default_is_false test.
  • Engine: removed the LocalCopyOptions::delete_strict_order field
    and setter, the delete_strict_order_enabled accessor, the four
    unit tests in options/deletion.rs, the builder field, default,
    and setter, and the two integration tests in
    local_copy/tests/delete.rs.
  • Engine executor: removed the --delete-strict-order strict-order
    branch and the if !strict_order_active { ... } gate around the
    batched post-transfer sweep in directory/recursive/mod.rs. The
    batched sweep now runs unconditionally for --delete-during,
    restoring the pre-feat(cli): --delete-strict-order opt-in gate for --delete-during (#1940) #4245 behaviour and preserving the live
    --delete-during path until DDP-E1..E5 land.

Design reference

docs/design/parallel-deterministic-delete.md (sections 1.2 and 2)
explains why the opt-in flag was the wrong shape and how the new
two-phase emitter replaces it without a fallback.

Test plan

  • CI: fmt + clippy across the workspace.
  • CI: nextest stable on Linux, macOS, Windows, Linux musl.
  • CI: interop validation against rsync 3.0.9 / 3.1.3 / 3.4.1.
  • Verify --delete-during continues to remove extraneous
    destination entries via the existing batched post-transfer sweep
    (no behavioural change for users who never set
    --delete-strict-order).

Part of the DDP (parallel-flist deterministic delete) series. The
opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is
replaced by a single deterministic per-directory deletion model
described in docs/design/parallel-deterministic-delete.md. The new
emitter wiring lands in DDP-E1..E5; until then the existing batched
post-transfer sweep remains the live `--delete-during` path, so this
PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will
follow once the emitter is wired as the live replacement.

Removed across cli, core, and engine: the CLI argument definitions,
parsed-args field, parser plumbing, help and supported-options
strings, ClientConfig field/setter/accessor/default test, the run
plumbing into LocalCopyOptions, the engine options field/setter/
accessor and four unit tests, the builder field/setter/default, and
the strict-order branch plus the suppressed-post-transfer-sweep gate
in the recursive directory executor.

Closes #2270, #2271, #2273, #2274.
@oferchen
oferchen merged commit 8f7c796 into master May 17, 2026
12 of 13 checks passed
oferchen added a commit that referenced this pull request May 18, 2026
Part of the DDP (parallel-flist deterministic delete) series. The
opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is
replaced by a single deterministic per-directory deletion model
described in docs/design/parallel-deterministic-delete.md. The new
emitter wiring lands in DDP-E1..E5; until then the existing batched
post-transfer sweep remains the live `--delete-during` path, so this
PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will
follow once the emitter is wired as the live replacement.

Removed across cli, core, and engine: the CLI argument definitions,
parsed-args field, parser plumbing, help and supported-options
strings, ClientConfig field/setter/accessor/default test, the run
plumbing into LocalCopyOptions, the engine options field/setter/
accessor and four unit tests, the builder field/setter/default, and
the strict-order branch plus the suppressed-post-transfer-sweep gate
in the recursive directory executor.

Closes #2270, #2271, #2273, #2274.
oferchen added a commit that referenced this pull request May 18, 2026
Part of the DDP (parallel-flist deterministic delete) series. The
opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is
replaced by a single deterministic per-directory deletion model
described in docs/design/parallel-deterministic-delete.md. The new
emitter wiring lands in DDP-E1..E5; until then the existing batched
post-transfer sweep remains the live `--delete-during` path, so this
PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will
follow once the emitter is wired as the live replacement.

Removed across cli, core, and engine: the CLI argument definitions,
parsed-args field, parser plumbing, help and supported-options
strings, ClientConfig field/setter/accessor/default test, the run
plumbing into LocalCopyOptions, the engine options field/setter/
accessor and four unit tests, the builder field/setter/default, and
the strict-order branch plus the suppressed-post-transfer-sweep gate
in the recursive directory executor.

Closes #2270, #2271, #2273, #2274.
@oferchen
oferchen deleted the refactor/remove-delete-strict-order-flag-2270 branch May 19, 2026 19:28
oferchen added a commit that referenced this pull request Aug 24, 2026
Part of the DDP (parallel-flist deterministic delete) series. The
opt-in `--delete-strict-order` flag (PR #4245, issue #1940) is
replaced by a single deterministic per-directory deletion model
described in docs/design/parallel-deterministic-delete.md. The new
emitter wiring lands in DDP-E1..E5; until then the existing batched
post-transfer sweep remains the live `--delete-during` path, so this
PR removes only the flag, not the sweep. DDP-F3 (sweep removal) will
follow once the emitter is wired as the live replacement.

Removed across cli, core, and engine: the CLI argument definitions,
parsed-args field, parser plumbing, help and supported-options
strings, ClientConfig field/setter/accessor/default test, the run
plumbing into LocalCopyOptions, the engine options field/setter/
accessor and four unit tests, the builder field/setter/default, and
the strict-order branch plus the suppressed-post-transfer-sweep gate
in the recursive directory executor.

Closes #2270, #2271, #2273, #2274.
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