Skip to content

fix(branding): report 3.5.0 as the upstream pin and surface four unreported features - #7616

Merged
oferchen merged 4 commits into
masterfrom
docs/branding-stale-doc-aliases
Sep 2, 2026
Merged

oferchen merged 4 commits into
masterfrom
docs/branding-stale-doc-aliases

Conversation

@oferchen

@oferchen oferchen commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Two #[doc(alias = ...)] keys in crates/branding/src/workspace/constants.rs hardcode values that [workspace.metadata.oc_rsync] already owns, and had drifted away from it.

site alias claimed manifest says
constants.rs:25 UPSTREAM_VERSION 3.4.1 upstream_version = "3.4.4"
constants.rs:135 DAEMON_CONFIG_DIR /etc/oc-rsync daemon_config_dir = "/etc/oc-rsyncd"

The path alias is the sharper of the two: crates/branding/src/branding/constants.rs:32 documents the same underlying value and spells it correctly. The two files disagreed with each other over a single trailing character - a plausible-looking path, which is why it survived review.

Scope

All 23 #[doc(alias = ...)] sites in the crate were cross-referenced against the manifest block. The other 21 match and are unchanged.

The version alias is the same class as PR #7351, which corrected three sites naming rsync-3.4.1 as the source of truth after the pin moved to 3.4.4. That sweep did not reach this crate.

Effect

Both are rustdoc search keys, so nothing compiles or behaves differently. The effect is on lookup: searching /etc/oc-rsyncd reached the branding constant but not the workspace one, and 3.4.1 pointed at a version this build stopped targeting two releases ago.

Verification

cargo fmt -p branding --check clean, cargo clippy -p branding --all-targets --no-deps clean, 255 tests pass.

Stated plainly: those tests pass identically before and after. A #[doc(alias)] is not observable at runtime, so no test can cover this and none is added here - that is the same property that let the drift accumulate. A drift test asserting each alias equals the constant it documents was considered and deliberately left out of this change to keep it reviewable; it would need the alias readable at test time.

Note for the 3.5.0 pin flip

The version alias will drift again when upstream_version moves to 3.5.0. That pass is already a deliberate multi-site change, so this is a known site for it rather than a new one.

…anifest

`crates/branding/src/workspace/constants.rs` carries `#[doc(alias = ...)]`
keys that hardcode values the workspace manifest already owns. Two had
drifted away from it:

- `UPSTREAM_VERSION` claimed `3.4.1`; `Cargo.toml` has
  `upstream_version = "3.4.4"` and has since the 3.4.4 retarget.
- `DAEMON_CONFIG_DIR` claimed `/etc/oc-rsync`; the manifest has
  `daemon_config_dir = "/etc/oc-rsyncd"`.

The path alias is the sharper of the two: `branding/constants.rs:32`
documents the same underlying value and spells it correctly, so the two
files disagreed with each other over a single trailing character - a
plausible-looking path, which is why it survived review.

Both are rustdoc search keys, so nothing compiles or behaves differently.
The effect is on lookup: searching `/etc/oc-rsyncd` reached the branding
constant but not the workspace one, and `3.4.1` pointed at a version this
build stopped targeting two releases ago.

All 23 aliases in the crate were cross-referenced against
`[workspace.metadata.oc_rsync]`; the other 21 match and are unchanged.

No test covers this and none is added here: a `#[doc(alias)]` is not
observable at runtime, so the crate's 255 tests pass identically before
and after. That is the same property that let the drift accumulate.
…ported features

`--version` under-reported this build in four independent ways. Each is
fixed at the layer that can actually observe the thing being reported.

1. The pin. `[workspace.metadata.oc_rsync] upstream_version` still said
   `3.4.4`, so `--version` printed `Compatible with rsync 3.4.4 wire
   protocol` while the required testsuite gate, both expect-manifests and
   the interop matrix were already on 3.5.0. The pin feeds only the
   branding crate; `tools/ci/citation_drift_audit.py:40` hardcodes
   `VER = "3.5.0"` and resolves against its own tree, so flipping the
   manifest does not move the citation gate. The `UPSTREAM_VERSION` doc
   alias moves with it.

2. `Build features` listed 7 of the ~19 declared features. `quic` and
   `sd-notify` are declared on `core`, so they are observable here and are
   now reported.

3. `vmsplice` was implemented (`fast_io::splice::syscalls::
   try_vmsplice_to_file`, plus a whole `vmsplice_writer` module) and never
   reported. It is the same splice-family syscall pair as `splice`, so it
   rides that probe rather than a second one.

4. `send_zc` was likewise unreported. It is emitted from
   `platform_io_capabilities()` - NOT from core's
   `compiled_build_features()` - because `iouring-send-zc` is declared on
   `fast_io`. A `cfg!(feature = "iouring-send-zc")` inside `core` would be
   vacuously false forever and would report the feature as absent in every
   build, which is the failure mode this arrangement exists to avoid.

The `compiled_build_features()` doc claimed the bin-only features were
"surfaced via the existing Capabilities / Optimizations sections". That is
false for `send_zc` and `seccomp`, which appeared in no section at all;
the doc now states which reporter owns each feature and why.

The existing Linux capability assertions are `contains()` checks, which
hold whether or not a given name is emitted - that is precisely how
`vmsplice` stayed implemented but unreported. The new assertions tie
`vmsplice`'s presence to `splice`'s and `send_zc`'s to
`io_uring && cfg!(iouring-send-zc)`, so removing either push reddens.

`daemon-seccomp` is DELIBERATELY NOT fixed here. It is declared on the
workspace root and never reaches a crate that renders `--version`, so
closing it needs the feature propagated or a reporter in `crates/daemon` -
not a `cfg!` in `core`, which would be inert. Recorded in the doc comment.

Non-vacuity: `quic` is absent from a default build and appears under
`--features quic`, so the new arm demonstrably fires.

Also corrects `docs/design/quic-transport-policy.md`, which called
`/etc/oc-rsync/quic/` "the config directory"; the manifest declares
`/etc/oc-rsyncd`. The client-side `~/.config/oc-rsync/quic_known_hosts`
paths are a different namespace and are unchanged.

VERIFICATION LIMIT: the `vmsplice` / `send_zc` pushes and their assertions
are inside `cfg(target_os = "linux")`. They were developed on macOS, where
that branch neither runs nor compiles, and the stable toolchain here has no
Linux std to cross-check against. CI's Linux cells are their first real
execution. Everything else was verified locally: `--version` re-read from a
freshly built binary, core 255 version tests, fast_io 28 status tests,
branding green, fmt clean, and no new clippy warning in the touched files.
@oferchen oferchen changed the title docs(branding): correct two stale doc aliases against the workspace manifest fix(branding): report 3.5.0 as the upstream pin and surface four unreported features Sep 1, 2026
The daemon config directory was `/etc/oc-rsyncd`, duplicating the daemon
binary's name rather than the project's. It is now `/etc/oc-rsync`, so the
config file lands at `/etc/oc-rsync/oc-rsyncd.conf` and the secrets at
`/etc/oc-rsync/oc-rsyncd.secrets`. The directory carries the project name;
the files inside keep the daemon name.

Upstream's own layout is flat - `configure.ac:204-218` compiles
`RSYNCD_SYSCONF` as `/etc/rsyncd.conf` and `rsyncd.conf.5.md:1434`
documents `/etc/rsyncd.secrets` beside it - so oc's directory is an
oc-specific addition either way. Keeping it means the oc-only auxiliary
daemon assets (the `quic/` cert dir, filter merge files) still have a home
inside the config directory, which is what the surrounding docs already
claim.

`legacy_daemon_config` is untouched at `/etc/rsyncd.conf`, so the search
order still falls back to upstream's path when oc's is absent.

The rename reaches 26 files. Three shapes had to be found separately
because a grep for the absolute `/etc/oc-rsyncd/` misses them:

- Relative install paths (`etc/oc-rsyncd/...`) in the packaging manifest,
  the tarball builder and the preflight validator. The tarball builder
  reads its source from `packaging/etc/`, which the rename moved, so
  leaving the destinations behind would have installed the config to a
  directory nothing reads.

- `contrib/security/usr.sbin.oc-rsyncd.apparmor` granted read on a FLAT
  `/etc/oc-rsyncd.conf` / `.secrets` / `.d/**`. Those matched neither the
  old `/etc/oc-rsyncd/oc-rsyncd.conf` nor the new path, so the profile
  denied the daemon its own config. Pre-existing defect, surfaced by this
  rename rather than caused by it; now a single `/etc/oc-rsync/** r,`.

- Two docs naming the same flat path.

TEST FIXTURES: `validate_branding_requires_daemon_file_names` feeds a path
IDENTICAL to `daemon_config_dir` to assert the "must not be identical"
rejection, so it had to move with the directory - left alone it stopped
firing and the assertion went vacuous, which is how the rename was caught.
Its siblings feed `/etc/oc-rsyncd.conf` to assert "not under the config
dir" and are deliberately UNCHANGED: that path still is not under
`/etc/oc-rsync`, so they still discriminate.

Verified: branding + xtask 707 run / 706 passed. The single failure is
`validate::support::backdated_tree_populates_and_backdates_the_root`, in a
file this change does not touch, failing because BSD `touch` rejects GNU's
`-d @epoch`; it is the known macOS toolchain gap. fmt clean. Workspace
clippy reports 28 pre-existing `manual_is_multiple_of` errors from a
newer local toolchain, none of them in a file changed here.
@oferchen
oferchen merged commit accf5da into master Sep 2, 2026
79 checks passed
@oferchen
oferchen deleted the docs/branding-stale-doc-aliases branch September 2, 2026 11:49
oferchen added a commit that referenced this pull request Sep 2, 2026
`## [Unreleased]` last covered the #7304-#7522 era. Measured against the 60
most recently merged pull requests, 44 were absent; of the most recent 45,
43 were absent. Nothing from #7574 onward was recorded at all.

Each entry is derived from what the pull request actually landed - the merge
commit and the body - not from its title. Three cases where those differ:

  * #7616 ships far more than the doc-alias correction its body describes:
    the `upstream_version` pin moves to 3.5.0 and `--version` starts naming
    `quic`, `sd-notify`, `vmsplice` and `send_zc`.
  * #7618 also adds the pull-request rustdoc-link job its body says was
    filed separately, which is what closes the master-only-gate recurrence.
  * #7602's squash carries the closed #7597 as its first commit, so the
    directory-obstacle half is recorded under #7602.

#7587 is deliberately not recorded. Its merge commit is empty: the change
had already landed as #7563, which the section already names.

Entries extend the existing Keep a Changelog groups and the bold
sub-groupings. Clusters that are one story carry one entry with several
references: the FERROR_XFER routing and its two-phase drain (#7576, #7581),
the connection-FSM close edge and the accept loop that outlives a session
error (#7579, #7590), the three detaching daemon suites (#7578, #7588,
#7592), the io_uring and SEND_ZC work (#7593, #7600, #7610), the citation
retargets (#7601, #7603, #7604), and the accept-loop pin flake (#7615,
#7620).

Only `## [Unreleased]` is touched; every released section, including the
3.4.4 statements that were correct when written, is byte-identical.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant