Repository navigation
refactor: promote --delay-updates partial_dir at config build time - #4050
Merged
Merged
Conversation
Centralise the `--delay-updates` implicit `partial_dir` promotion rule in a single helper, `LocalCopyOptions::apply_delay_updates_partial_dir_default`, and invoke it from `LocalCopyOptionsBuilder::build_unchecked()` as a deterministic finalisation step. The builder setter no longer eagerly promotes; the rule lives in one place and runs once before engine code observes the options. The struct-level `LocalCopyOptions::delay_updates` setter delegates to the same helper to preserve the existing fluent-API behaviour relied on by unit and integration tests. upstream: options.c:2403 - `if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;`
2 of 3 tasks
oferchen
added a commit
that referenced
this pull request
May 16, 2026
Convert the compatibility-flags mutual-exclusion audit from a current-state inventory into a historical record. Each gap row (G1-G4) now cites the PR that landed the remediation: - G1: --checksum-choice=none promotes whole_file=1 (PR #4066) - G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064) - G3: --append --whole-file rejected at config build time (PR #4049) - G4: --delay-updates partial_dir promotion centralised (PR #4050) Section 5 is replaced with a resolution-summary table. Footnotes [g] and [j] are updated to describe the current behaviour and reference the resolving PRs. The divergence descriptions are preserved so the audit remains a record of the upstream-vs-oc-rsync conflict matrix prior to remediation. Refs: #2151, #2106
oferchen
added a commit
that referenced
this pull request
May 16, 2026
) Convert the compatibility-flags mutual-exclusion audit from a current-state inventory into a historical record. Each gap row (G1-G4) now cites the PR that landed the remediation: - G1: --checksum-choice=none promotes whole_file=1 (PR #4066) - G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064) - G3: --append --whole-file rejected at config build time (PR #4049) - G4: --delay-updates partial_dir promotion centralised (PR #4050) Section 5 is replaced with a resolution-summary table. Footnotes [g] and [j] are updated to describe the current behaviour and reference the resolving PRs. The divergence descriptions are preserved so the audit remains a record of the upstream-vs-oc-rsync conflict matrix prior to remediation. Refs: #2151, #2106
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4050) Centralise the `--delay-updates` implicit `partial_dir` promotion rule in a single helper, `LocalCopyOptions::apply_delay_updates_partial_dir_default`, and invoke it from `LocalCopyOptionsBuilder::build_unchecked()` as a deterministic finalisation step. The builder setter no longer eagerly promotes; the rule lives in one place and runs once before engine code observes the options. The struct-level `LocalCopyOptions::delay_updates` setter delegates to the same helper to preserve the existing fluent-API behaviour relied on by unit and integration tests. upstream: options.c:2403 - `if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;`
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Convert the compatibility-flags mutual-exclusion audit from a current-state inventory into a historical record. Each gap row (G1-G4) now cites the PR that landed the remediation: - G1: --checksum-choice=none promotes whole_file=1 (PR #4066) - G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064) - G3: --append --whole-file rejected at config build time (PR #4049) - G4: --delay-updates partial_dir promotion centralised (PR #4050) Section 5 is replaced with a resolution-summary table. Footnotes [g] and [j] are updated to describe the current behaviour and reference the resolving PRs. The divergence descriptions are preserved so the audit remains a record of the upstream-vs-oc-rsync conflict matrix prior to remediation. Refs: #2151, #2106
oferchen
added a commit
that referenced
this pull request
May 18, 2026
…4050) Centralise the `--delay-updates` implicit `partial_dir` promotion rule in a single helper, `LocalCopyOptions::apply_delay_updates_partial_dir_default`, and invoke it from `LocalCopyOptionsBuilder::build_unchecked()` as a deterministic finalisation step. The builder setter no longer eagerly promotes; the rule lives in one place and runs once before engine code observes the options. The struct-level `LocalCopyOptions::delay_updates` setter delegates to the same helper to preserve the existing fluent-API behaviour relied on by unit and integration tests. upstream: options.c:2403 - `if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;`
oferchen
added a commit
that referenced
this pull request
May 18, 2026
) Convert the compatibility-flags mutual-exclusion audit from a current-state inventory into a historical record. Each gap row (G1-G4) now cites the PR that landed the remediation: - G1: --checksum-choice=none promotes whole_file=1 (PR #4066) - G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064) - G3: --append --whole-file rejected at config build time (PR #4049) - G4: --delay-updates partial_dir promotion centralised (PR #4050) Section 5 is replaced with a resolution-summary table. Footnotes [g] and [j] are updated to describe the current behaviour and reference the resolving PRs. The divergence descriptions are preserved so the audit remains a record of the upstream-vs-oc-rsync conflict matrix prior to remediation. Refs: #2151, #2106
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4050) Centralise the `--delay-updates` implicit `partial_dir` promotion rule in a single helper, `LocalCopyOptions::apply_delay_updates_partial_dir_default`, and invoke it from `LocalCopyOptionsBuilder::build_unchecked()` as a deterministic finalisation step. The builder setter no longer eagerly promotes; the rule lives in one place and runs once before engine code observes the options. The struct-level `LocalCopyOptions::delay_updates` setter delegates to the same helper to preserve the existing fluent-API behaviour relied on by unit and integration tests. upstream: options.c:2403 - `if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;`
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
) Convert the compatibility-flags mutual-exclusion audit from a current-state inventory into a historical record. Each gap row (G1-G4) now cites the PR that landed the remediation: - G1: --checksum-choice=none promotes whole_file=1 (PR #4066) - G2: --inplace --partial-dir gated on CF_INPLACE_PARTIAL_DIR (PR #4064) - G3: --append --whole-file rejected at config build time (PR #4049) - G4: --delay-updates partial_dir promotion centralised (PR #4050) Section 5 is replaced with a resolution-summary table. Footnotes [g] and [j] are updated to describe the current behaviour and reference the resolving PRs. The divergence descriptions are preserved so the audit remains a record of the upstream-vs-oc-rsync conflict matrix prior to remediation. Refs: #2151, #2106
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…4050) Centralise the `--delay-updates` implicit `partial_dir` promotion rule in a single helper, `LocalCopyOptions::apply_delay_updates_partial_dir_default`, and invoke it from `LocalCopyOptionsBuilder::build_unchecked()` as a deterministic finalisation step. The builder setter no longer eagerly promotes; the rule lives in one place and runs once before engine code observes the options. The struct-level `LocalCopyOptions::delay_updates` setter delegates to the same helper to preserve the existing fluent-API behaviour relied on by unit and integration tests. upstream: options.c:2403 - `if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;`
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
Audit follow-up (tasks #2148 / #2149 / #2150): the
--delay-updatesimplicit
partial_dirpromotion to.~tmp~previously lived in twoplaces - the
LocalCopyOptions::delay_updatessetter (engine struct)and the
LocalCopyOptionsBuilder::delay_updatessetter. Once thebuilder is the canonical construction path, the engine-layer promotion
is redundant and risks divergence if either copy drifts.
This change moves the rule into a single helper,
LocalCopyOptions::apply_delay_updates_partial_dir_default, and runsit once as a finalisation step inside
LocalCopyOptionsBuilder::build_unchecked()so the promotion happensdeterministically before any engine code observes the options. The
builder setter is now a plain field setter.
The struct-level fluent setter continues to delegate to the same helper
so existing direct callers (engine integration tests) keep working
without churn.
upstream:
options.c:2403-if (delay_updates && !partial_dir) partial_dir = tmp_partialdir;Test plan
delay_updates_finalisation_sets_default_partial_diranddelay_updates_finalisation_preserves_explicit_partial_dirpassdelay_updates_enables_partialand the broaderexecute_delay_updatessuite remain green