Repository navigation
test(ci): gate on the rsync 3.5.0 testsuite instead of 3.4.4 - #7387
Merged
Merged
Conversation
The project targets upstream 3.5.0, but the only checks that can block a PR ran 3.4.4's testsuite. That gap is not cosmetic: 3.5.0 is wire-identical to 3.4.4 (PROTOCOL_VERSION 32, SUBPROTOCOL_VERSION 0, unchanged errcode.h), so what 3.5.0 changed is behaviour - 33 CVEs, a rewritten path resolver, new options and daemon directives. The interop cells exercise the axis that did not move; the axis that did had no blocking gate at all. Flip the testsuite pins to 3.5.0. No driver change is needed: the harness already dispatches on the extracted tree's SHAPE, so 3.5.0 selects upstream's own runtests.py (345 `*_test.py`) where 3.4.4 selected the 57 `*.test` shell scripts. Add the generator for runtests.py's `--expect-result` manifest. That option runs ONLY the tests the file names and fails on any mismatch including an unexpected PASS, which makes it the right shape for a known-divergence ledger - and also means a hand-curated file shrinks coverage silently as it drifts. So the manifest is derived from a real run and never typed. Both legs emit theirs and upload it, and `expect_result` is threaded as a workflow input for once the baselines are committed. The two legs need SEPARATE manifests. Measured on a 4-leg run: 348 distinct test names, 78 of which resolve to a different outcome between privilege levels - a shared manifest would be wrong for 78 tests. The gate reads its own `UPSTREAM_TESTSUITE_VERSION` variable rather than sharing the interop job's `UPSTREAM_RSYNC_VERSION`. The two now want different versions - interop sweeps a multi-version matrix, this gate pins the single release we conform to - so one shared knob would let an operator override drag the conformance gate back to 3.4.4 as a side effect of retargeting interop. The root leg re-execs under `sudo env`, which scrubs anything not listed, so both new variables are forwarded explicitly; omitting them would have made the emission a silent no-op on exactly that leg. Parser measured against real suite output, not a fixture: runtests.py separates outcome from name with four SPACES, not a tab. The tab assumption parsed zero lines and would have written an empty manifest - which is why the emitter refuses to write one that names no tests, since a later `--expect-result` run against it would pass without executing anything. Verified both directions by extracting the function from the committed script and driving it: 1392 raw lines parse losslessly (SKIP's trailing "(reason)" dropped), and an empty log exits 1.
…seline
The manifest emitter added in the previous commit never ran. Measured on
run 32260924822: the driver log ends at runtests.py's own
`overall result is 71` with no emitter output, and no
`expect-result.*.txt` in the uploaded artifact.
Root cause is `set -e` plus `pipefail`. The suite invocation was a bare
pipeline, so a non-zero runtests.py aborted the script AT that line -
before `rc=${PIPESTATUS[0]}`, before the step summary, and before the
emitter. The generator was therefore reachable only when every test
passed, i.e. exactly when no manifest is needed. Putting the pipeline in
an OR list exempts it from `set -e` while PIPESTATUS still carries
runtests.py's status, which `return "$rc"` propagates unchanged.
Proven both ways on the shape in isolation: with the bare pipeline the
line after it never executes and the script exits 71; with `|| rc=` it
executes and rc is 71.
Commit the baselines, generated by running the committed emitter over the
runtests-output.log artifacts of that same run. Each names all 345 tests,
so coverage is explicit and a dropped test cannot hide behind
--expect-result's run-only-what-is-listed semantics.
non-root 189 pass / 71 fail / 85 skip
root 204 pass / 87 fail / 54 skip
The legs get SEPARATE inputs because 40 of the 345 resolve to a different
outcome between them; one shared file would be wrong for 40 tests.
This is a ledger, not a waiver: --expect-result fails on any mismatch
including an unexpected PASS, so a divergence that gets fixed reddens the
gate until the baseline is regenerated. The set can only shrink
deliberately, never drift.
oferchen
force-pushed
the
chore/upstream-testsuite-350
branch
from
August 19, 2026 14:31
d7453ff to
616452d
Compare
Proving the gate non-vacuous found a real hole in it.
MEASURED against the 3.5.0 runtests.py, both directions:
outcome flip manifest `00-hello fail` vs an actual pass
-> exit 1, "00-hello: expected fail, got pass (xpass)"
line deletion 2-test manifest vs the same file minus one line
-> exit 0 BOTH times, run count 2 -> 1, NO diagnostic
So the gate is self-reporting on outcomes and silent on coverage: a
manifest can erode a line at a time and stay green. The existing guard
only rejected a manifest naming ZERO tests, which is the degenerate case,
not the likely one.
Require the manifest to name every test the extracted tree ships. The
expected count is derived from the tree (`testsuite/*_test.py`), not
hardcoded, so an upstream bump that adds or removes tests re-baselines
instead of tripping a stale constant.
RED/GREEN proven through the real driver against the committed manifest:
345/345 is accepted and reports the ratio; the same file minus one line
exits 1 with "covers 344 of 345 tests ... 1 would silently not run".
Also worth recording: runtests.py's `_cls` puts `fail` and `xfail` in one
equivalence class, so a fail<->xfail flip is NOT a detectable mutation.
Non-vacuity checks on this gate have to cross classes - within-class flips
prove nothing.
ci-skip.yml publishes stand-in green contexts for the required checks so a docs-only pull request is not blocked forever waiting on jobs that never run. It tried to stay out of ci.yml's way by matching `.github/workflows/**` and negating the six files ci.yml watched. That cannot work. GitHub `paths` is an ANY-match over the post-negation set: the negations remove those files from the set, they cannot express "if this file changed, do not skip". A pull request touching an excluded file AND any other workflow file still matched on the latter and fired the shim, which then published a stand-in green for required contexts it never ran. MEASURED on two commits of this branch, both of which change ci.yml and _upstream-testsuite.yml: `upstream-testsuite / upstream testsuite` reported SUCCESS from ci-skip.yml while the real ci.yml run was still queued. Both workflows are named `CI` and emit identical context names, so the provenance is only visible by resolving the run. Make the sets disjoint instead. ci.yml now matches `.github/workflows/**` itself, so every workflow-touching pull request runs the real matrix, and ci-skip.yml drops the directory entry and its six negations entirely. Exactly one workflow emits each required context: no duplicate check runs, no race over which reports last. Verified by evaluating both path lists against representative changed files: 0 overlaps, and each of the nine cases routes to exactly one workflow (workflow + code + tools -> ci.yml, docs + README -> ci-skip). Blast radius, stated plainly: a docs-adjacent workflow tweak now runs full CI where it previously took the stand-in. That is the safe direction - workflow changes are exactly the ones worth validating - and it is what makes the disjointness hold.
The root leg failed with FileNotFoundError: 'tools/ci/upstream-3.5.0-expect.root.txt' immediately after this same script had printed ==> Expected-outcome manifest: tools/ci/upstream-3.5.0-expect.root.txt (345/345 tests) Both lines are correct. The manifest is validated from the workspace root, where the relative path resolves, and is then handed verbatim to runtests.py, which runs inside the extracted upstream tree. The guard was standing next to the defect it could not see, because it and the consumer disagree about cwd. OC_RSYNC_BIN already had a bespoke absolutize block for exactly this reason. The two operator paths added later did not, so replace all three with one helper and state the invariant where it can be found: everything crossing into runtests.py is resolved against the workspace root first. That also closes UPSTREAM_PEER_BIN, which is latent only because the version-mixing leg is not built yet and would have hit the identical failure on its first run. EXPECT_SKIPPED is deliberately left alone - its entries are `@`-prefixed and documented relative to the upstream tree, which is the cwd runtests.py is already in. EMIT_EXPECT_RESULT is likewise unchanged: it is consumed in the parent shell after the subshell exits, and the workflow uploads it by that relative path. Why this was not caught earlier: the baseline that produced the committed manifests ran with EMIT_EXPECT_RESULT set and EXPECT_RESULT unset, so the emit path was exercised and the consume path never was.
oferchen
added a commit
that referenced
this pull request
Aug 19, 2026
…er (#7391) The manifests were baselined at commit 5d11768 and committed by #7387. #7388 then landed behaviour changes that flip two tests from fail to pass, and nothing regenerated the manifests. `upstream testsuite` and `upstream testsuite (root)` - both required contexts - have been red on master ever since, and every open PR inherits the same two mismatches: rename-fullpath-symlink-race: expected fail, got pass (xpass) rrsync-no-overwrite-delay-updates: expected fail, got pass (xpass) Both files are taken verbatim from the expect-result artifacts emitted by master's own run 32296056003 (commit b87da3d), so all 345 outcome rows stay generated rather than typed. Only the Baseline provenance comment is added by hand, matching the convention the previous baseline used. Besides the two flips the diff carries a header-text change (the emitter now names its own regeneration command) and a reposition of `partial_nowrite`, which is a collation artifact: parse_expect_result builds a {testbase: outcome} dict (runtests.py:332), so line order does not affect the gate.
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
oferchen
added a commit
that referenced
this pull request
Aug 24, 2026
…er (#7391) The manifests were baselined at commit 5d11768 and committed by #7387. #7388 then landed behaviour changes that flip two tests from fail to pass, and nothing regenerated the manifests. `upstream testsuite` and `upstream testsuite (root)` - both required contexts - have been red on master ever since, and every open PR inherits the same two mismatches: rename-fullpath-symlink-race: expected fail, got pass (xpass) rrsync-no-overwrite-delay-updates: expected fail, got pass (xpass) Both files are taken verbatim from the expect-result artifacts emitted by master's own run 32296056003 (commit 5af2685), so all 345 outcome rows stay generated rather than typed. Only the Baseline provenance comment is added by hand, matching the convention the previous baseline used. Besides the two flips the diff carries a header-text change (the emitter now names its own regeneration command) and a reposition of `partial_nowrite`, which is a collation artifact: parse_expect_result builds a {testbase: outcome} dict (runtests.py:332), so line order does not affect the gate.
oferchen
added a commit
that referenced
this pull request
Sep 1, 2026
* docs: align the upstream reference and testsuite gate to 3.5.0 The gate moved to the rsync 3.5.0 Python corpus on 2026-08-19 (#7387) and the TCP legs followed on 2026-08-20 (#7408), but README.md and SECURITY.md still described a 3.4.4-gated world and carried outcome figures that no longer match the committed manifests. Every number below is counted from tools/ci/upstream-3.5.0-expect.*.txt with awk '!/^#/ && NF {c[$NF]++; t++} END {print t, c["pass"], c["fail"], c["skip"]}' leg pass fail skip corpus was non-root, pipe 254 6 85 345 252/8/89 of 349 root, pipe 282 7 56 345 280/9/60 of 349 non-root, tcp 101 21 33 155 100/22/36 of 158 root, tcp 113 27 15 155 112/28/18 of 158 The corpus column was the durable error: it was already 345/155 when #7533 last refreshed these tables, so the skip and corpus columns were carried forward untouched while only the pass/fail pair was re-measured. Both docs now name the command that produces the row, so the next refresh is a re-run rather than a transcription. The divergence unions fall the same way: 7 distinct tests across the two full-corpus legs, not 9, and 32 across all four, not 34. Other corrections: - The 3.4.4 shell corpus is not run by any workflow. _interop.yml states explicitly that it does not drive it, and run_upstream_testsuite.sh defaults to UPSTREAM_VERSION=3.5.0. "Against 3.4.4 all tests pass and the roster is empty" was reporting an empty roster as a measurement. - The interop version lists in two README sections were hand copies of versions= in tools/ci/run_interop.sh, which is what drifted last time. They now point at the script; the per-version protocol table stays, since it carries columns the script does not. - The nightly 3.5.0dev tracker badge is removed from the badge row. Every other badge there is a gate, and "3.5.0dev" one glyph from "3.5.0" read as a fifth one. The workflow and its explanatory paragraph both stay - it tracks the moving RsyncProject master, which the release gate cannot see - but its header comment claimed the required gate was still pinned to 3.4.4, which is false. CHANGELOG: the Unreleased section stopped at #7522. Added the 51 pull requests merged since, grouped into the existing sections and derived from their titles via git log v0.6.4..origin/master. * docs: name the one dispatch-only workflow that still pins 3.4.4
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.
Gates oc-rsync on the testsuite shipped with the rsync 3.5.0 release
instead of 3.4.4.
Why this is not cosmetic
3.5.0 is wire-identical to 3.4.4 -
PROTOCOL_VERSION32,SUBPROTOCOL_VERSION0, unchangederrcode.h. What 3.5.0 changed isbehaviour: 33 CVEs, a rewritten path resolver, new options and daemon
directives. The interop cells exercise the axis that did not move. The axis
that did had no blocking gate at all - the only 3.5.0-named testsuite job
tracks a moving git-master snapshot, is
continue-on-error, and never runson PRs.
What changes
Version pins.
_upstream-testsuite.yml, both standalone entry points,and the required
ci.ymlcall site move to3.5.0.No driver change is needed. The harness already dispatches on the extracted
tree's shape, so 3.5.0 selects upstream's own
runtests.py(345*_test.py) where 3.4.4 selected the 57*.testshell scripts.A generator for the
--expect-resultmanifest. That option runs onlythe tests the file names and fails on any mismatch including an unexpected
PASS, which is the right shape for a known-divergence ledger. It also means
a hand-curated file shrinks coverage silently as it drifts. So the manifest
is derived from a real run and never typed. Both legs emit theirs and upload
it;
expect_resultis threaded as a workflow input for once baselines arecommitted.
Separate manifests per leg. Measured on a 4-leg run: 348 distinct test
names, 78 of which resolve to a different outcome between privilege
levels. A shared manifest would be wrong for 78 tests.
Its own version variable. The gate reads
UPSTREAM_TESTSUITE_VERSIONrather than sharing interop's
UPSTREAM_RSYNC_VERSION. The two now wantdifferent versions - interop sweeps a multi-version matrix, this gate pins the
single release we conform to - so one shared knob would let an operator
override drag the conformance gate back to 3.4.4 as a side effect of
retargeting interop.
Notes from measurement
sudo env, which scrubs anything not listed.Both new variables are forwarded explicitly; omitting them would have made
the emission a silent no-op on exactly that leg.
runtests.pyseparates outcome from name with four spaces, not a tab.The tab assumption parsed zero lines and would have written an empty
manifest - which is why the emitter refuses to write one that names no
tests, since a later
--expect-resultrun against it would pass withoutexecuting anything.
script and driving it: 1392 raw outcome lines parse losslessly (SKIP's
trailing
(reason)dropped, zero leakage), and an empty log exits 1.Expected first-run result
This run has no committed manifest yet, so the suite runs in full and the
required contexts will report the real 3.5.0 divergences. The emitted
manifests land as artifacts; committing them and setting
expect_resultturns the gate green with every accepted divergence enumerated in a
reviewable file. That ordering is deliberate - it is the only way to get a
baseline that was measured rather than asserted.
Update: first run measured, emitter bug fixed, baseline committed
The first run did exactly what was predicted — the required contexts went red
on the real 3.5.0 divergences — and it surfaced a defect in the emitter itself.
The emitter never ran. The driver log ends at runtests.py's own
overall result is 71with no emitter output and noexpect-result.*.txtinthe artifact. Root cause:
set -e+pipefailwith a bare pipeline, so anon-zero runtests.py aborted the script at that line — before
rc=${PIPESTATUS[0]}, before the step summary, before the emitter. Thegenerator was reachable only when every test passed, i.e. exactly when no
manifest is needed. Fixed by putting the pipeline in an OR list; proven both
ways on the shape in isolation.
Authoritative Linux baseline (run 32260924822), now committed:
Each manifest names all 345 tests, so coverage is explicit and a dropped
test cannot hide behind
--expect-result's run-only-what-is-listed semantics.The legs take separate inputs: 40 of the 345 resolve to a different outcome
between privilege levels, so one shared file would be wrong for 40 tests.
This is a ledger, not a waiver.
--expect-resultfails on any mismatchincluding an unexpected PASS, so a divergence that gets fixed reddens the gate
until the baseline is regenerated. The set can only shrink deliberately.
What the divergences actually are
Clustering the failing names shows the set is dominated by unshipped 3.5.0
features, not regressions —
rrsync-*(14) fails because no restricted-shellsubcommand exists in
crates/at all;operator-*,proxy-*andmalicious-*await the confinement and proxy-directive epics. Those cannot be debugged into
passing; they need the feature work. That is why the ledger is the right
mechanism to unblock the gate now.
⚠ Do not merge on a green from
ci-skip.yml. Both workflows are namedCIand emit identical context names; provenance has to be read from the run, not
the name. Filed separately: the shim's negated paths cannot express
"don't skip", because GitHub
pathsis an any-match.