Repository navigation
test(daemon): report the whole exchange when the accept-loop pin fails - #7620
Conversation
`session_error_does_not_stop_the_accept_loop` fails on every Linux cell of
every open PR, and its assertion discards the evidence needed to diagnose it:
first client must be dropped mid-session, not answered;
got ["@error: Unknown module '@rsyncd: 32.0 md5 md4'"]
That names the symptom - the daemon answered the client's VERSION line as if
it were the module request - and then throws away everything that identifies
which line the daemon read first: the greeting the provoker actually received,
the daemon's own log, and both peers' results. The assertion two blocks above
it already carries `log_contents`; this one, the one that actually fires, does
not.
It is not deterministic. #7615's own `nextest (stable)` was SUCCESS on this
exact merge commit, and it fails on other PRs' merge commits with the same
base - so it is a flake that reproduces only in CI. 65 local runs across five
regimes on an aarch64 Linux host all pass: 3x alone (default features), 6x
alone (--all-features), the parallel package run, 24-way concurrent, and
32-way pinned to a single CPU. No x86_64 Linux host is reachable to run the
real cell (`--workspace --all-features`, 33482 tests), so the next CI failure
is the only instrument available - and it has to carry more than it does now.
Two changes, both test-only:
1. `run_provoker` returns a named `ProvokerOutcome { greeting, trailing }`
instead of a bare `Vec<String>`. The greeting was read and dropped; it is
the control for "did the daemon speak first at all", which is precisely the
question the failure raises.
2. The non-vacuity assertion reports the greeting, the trailing lines, both
results and the daemon log.
Nothing about the property under test moves: the same condition is asserted on
the same value.
Verified: the diagnostic is non-vacuous - mutating the predicate to `false`
makes it fire and print the greeting (`@RSYNCD: 32.0 sha512 sha256 sha1 md5
md4`), both results, and the full daemon log including the
`failed to serve legacy handshake ... stream did not contain valid UTF-8`
line. Restored, re-run, green. `rustfmt --edition 2024 --check` clean.
|
Narrowing from a fresh CI capture (run 33582539617, job 100105256144, #7619
That pins a necessary condition. At Ok(LegacyDaemonMessage::Version(version)) if negotiated_protocol.is_none() => { ... }and Excluded by reading, so nobody re-checks them:
What supplies the earlier Version line is not answerable from source; the widened assert here is what will say. One caveat worth stating: the diagnostic only helps once it is on master, since it fires nowhere else. Worth merging as soon as this is green rather than holding it. |
`## [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.
… 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.
test(daemon): report the whole exchange when the accept-loop pin fails
session_error_does_not_stop_the_accept_loopfails on every Linux cell ofevery open PR, and its assertion discards the evidence needed to diagnose it:
That names the symptom - the daemon answered the client's VERSION line as if
it were the module request - and then throws away everything that identifies
which line the daemon read first: the greeting the provoker actually received,
the daemon's own log, and both peers' results. The assertion two blocks above
it already carries
log_contents; this one, the one that actually fires, doesnot.
It is not deterministic. #7615's own
nextest (stable)was SUCCESS on thisexact merge commit, and it fails on other PRs' merge commits with the same
base - so it is a flake that reproduces only in CI. 65 local runs across five
regimes on an aarch64 Linux host all pass: 3x alone (default features), 6x
alone (--all-features), the parallel package run, 24-way concurrent, and
32-way pinned to a single CPU. No x86_64 Linux host is reachable to run the
real cell (
--workspace --all-features, 33482 tests), so the next CI failureis the only instrument available - and it has to carry more than it does now.
Two changes, both test-only:
run_provokerreturns a namedProvokerOutcome { greeting, trailing }instead of a bare
Vec<String>. The greeting was read and dropped; it isthe control for "did the daemon speak first at all", which is precisely the
question the failure raises.
The non-vacuity assertion reports the greeting, the trailing lines, both
results and the daemon log.
Nothing about the property under test moves: the same condition is asserted on
the same value.
Verified: the diagnostic is non-vacuous - mutating the predicate to
falsemakes it fire and print the greeting (
@RSYNCD: 32.0 sha512 sha256 sha1 md5 md4), both results, and the full daemon log including thefailed to serve legacy handshake ... stream did not contain valid UTF-8line. Restored, re-run, green.
rustfmt --edition 2024 --checkclean.