Repository navigation
test(transfer): probe the backup dir the ordinary cells claim to check - #7621
Merged
Merged
Conversation
`an_ordinary_backup_dir_gets_the_pre_transfer_bytes` never read a backup
file. Neither did its `--delay-updates` sibling. `Outcome` carried only
`inside_backup`, which reads `module/realbak/payload` - a path that exists
solely for the `DirSymlinkInsideModule` plant. For `Plant::RealDir` the
backup lands at `module/bak/payload`, and nothing in the harness looked
there.
Both cells therefore asserted exit 0, an updated destination and an
untouched out-of-module marker - all three of which hold identically
whether the backup was taken or silently skipped. The cell named for the
pre-transfer bytes could not observe them.
That matters most on the delayed path. `commit.rs` defers the backup under
`--delay-updates`, so `handle_delayed_updates` is its only caller, mirroring
receiver.c:694 `if (make_backups > 0 && !make_backup(fname, False)) continue;`.
Had `backup_config` failed to reach the sweep, `--backup` would have
silently stopped backing up and no test in the file whose subject is the
backup dir would have failed.
Adds an `Outcome.backup` probe on the `--backup-dir` path itself and asserts
it holds `PRE_IMAGE` in both ordinary cells. No production change: the
wiring is correct today, and both cells pass as written.
Non-vacuity, one mutation per wiring site:
- `handle_delayed_updates(.., backup_cfg -> None)`:
`an_ordinary_backup_dir_works_under_delay_updates` fails
`left: None, right: Some("PRE-IMAGE-IN-MODULE")`, while the plain cell
stays green - the mutation is scoped to the delayed path.
- `commit.rs` backup guard forced off:
`an_ordinary_backup_dir_gets_the_pre_transfer_bytes` fails on the new
assertion, while both `--delay-updates` cells stay green.
5/5 pass unmutated; `cargo fmt --all --check` clean.
oferchen
added a commit
that referenced
this pull request
Sep 2, 2026
… merged PRs (#7634) * docs(rustdoc): reach the public items rustdoc could not see, and gate the class Two halves of the same question - is what a public item says actually reachable from `cargo doc`? Half 1: seven `//` comment blocks documented a `pub` item, so their text never reached the generated docs. Found positionally, not by content: a `//` run whose next non-attribute line declares a `pub` item. A census keyed on comment CONTENT is false-positive dominated; this one is mechanical. Nine sites matched; two are DELIBERATELY left as `//`, because they document the `#[cfg_attr]` / `#[allow]` attribute directly beneath them rather than the item - `local_copy/overrides.rs` and `local_copy/plan/report.rs`. Promoting those would attach a lint rationale to a public surface as if it described the surface. Text is preserved verbatim, upstream citations included (`generator.c:2149` on the obstacle module). The only rewrite is `socket_options/consts.rs`, where one group note covered two constants: split per item, matching the file's own house style where every other const already carries `///`. Half 2: five intra-doc links could not resolve in a DEFAULT build, and the existing gate is structurally unable to see them. crates/fast_io/src/lib.rs, ewma.rs (x4) -> `adaptive_dispatch`, gated by the off-by-default `adaptive-basis-dispatch` feature crates/rsync_io/.../sync_bridge.rs -> `crate::channel_adapter`, gated by the off-by-default `async-ssh` feature crates/fast_io/src/confinement.rs -> `PinnedRoot`, a PRIVATE struct plus one already on the branch in `module_list/types.rs`, where the link was `Transport::Quic` (the `quic` feature) and its surrounding prose still described the variant as unbuilt. Every crate denies `rustdoc::broken_intra_doc_links`, so each of these is a hard `cargo doc` failure, not a warning. MEASURED on the pristine base: cargo doc --no-deps --workspace -> 7 errors, `fast_io` and `rsync_io` could not be documented cargo doc --no-deps --workspace --all-features -> clean That gap is the whole point. Under `--all-features` the gated items EXIST, so the link resolves and the gate is green; in a default build the item is not compiled at all. `ci.yml`'s `rustdoc-links` job runs only `--all-features`, deliberately mirroring `pages.yml` - which is right for the question Pages asks and cannot ask this one. So the fix is paired with a SECOND step on default features, and neither subsumes the other: `crates/fast_io/src/io_uring` is `cfg(all(target_os = "linux", feature = "io_uring"))` and only the all-features run compiles it. The names stay in backticks with the reason stated at each site, rather than being deleted or the links made conditional - the prose still says what it said, and the next reader learns why it is not a link. After: both invocations document all 25 crates cleanly, 0 errors. fmt clean; clippy on the five touched crates reports no new diagnostics. * docs(changelog): record the ten pull requests merged since the last sweep #7624 brought the Unreleased section up to #7620 and then stopped being true: #7621-#7632 landed after it, of which #7624 is itself that changelog pass and #7628 was never merged. Ten entries were missing. Each is placed in the subsection its change belongs to rather than appended in number order, and #7625 is SPLIT across two, because it is two changes: wiring `--force` is a receiver fix, and the synthetic-transfer-root guard that wiring made necessary is a peer-supplied input bound. Filing it once under either heading would have hidden whichever half the reader was looking for. Security / peer-supplied input bounds #7625 (guard half), #7630 Fixed / transfer and receiver #7622, #7625 (--force half), #7627 Fixed / daemon #7629 Testing and CI #7621, #7623, #7632 Documentation #7626, #7631 Wording is taken from each merge commit's own body, not from its title - the titles compress away the part a reader needs. #7629's title says "keep a dead name converter apart from an unknown name"; what makes it worth an entry is that five outcomes collapsed into one `None` and the merge failed OPEN on exactly the mechanism an operator installs to take ownership decisions away from the peer.
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.
test(transfer): probe the backup dir the ordinary cells claim to check
an_ordinary_backup_dir_gets_the_pre_transfer_bytesnever read a backupfile. Neither did its
--delay-updatessibling.Outcomecarried onlyinside_backup, which readsmodule/realbak/payload- a path that existssolely for the
DirSymlinkInsideModuleplant. ForPlant::RealDirthebackup lands at
module/bak/payload, and nothing in the harness lookedthere.
Both cells therefore asserted exit 0, an updated destination and an
untouched out-of-module marker - all three of which hold identically
whether the backup was taken or silently skipped. The cell named for the
pre-transfer bytes could not observe them.
That matters most on the delayed path.
commit.rsdefers the backup under--delay-updates, sohandle_delayed_updatesis its only caller, mirroringreceiver.c:694
if (make_backups > 0 && !make_backup(fname, False)) continue;.Had
backup_configfailed to reach the sweep,--backupwould havesilently stopped backing up and no test in the file whose subject is the
backup dir would have failed.
Adds an
Outcome.backupprobe on the--backup-dirpath itself and assertsit holds
PRE_IMAGEin both ordinary cells. No production change: thewiring is correct today, and both cells pass as written.
Non-vacuity, one mutation per wiring site:
handle_delayed_updates(.., backup_cfg -> None):an_ordinary_backup_dir_works_under_delay_updatesfailsleft: None, right: Some("PRE-IMAGE-IN-MODULE"), while the plain cellstays green - the mutation is scoped to the delayed path.
commit.rsbackup guard forced off:an_ordinary_backup_dir_gets_the_pre_transfer_bytesfails on the newassertion, while both
--delay-updatescells stay green.5/5 pass unmutated;
cargo fmt --all --checkclean.