Skip to content

docs: correct stale upstream-version and CI-gate claims - #7351

Merged
oferchen merged 1 commit into
masterfrom
docs/correct-stale-upstream-version-and-ci-gate-claims
Aug 15, 2026
Merged

oferchen merged 1 commit into
masterfrom
docs/correct-stale-upstream-version-and-ci-gate-claims

Conversation

@oferchen

Copy link
Copy Markdown
Owner

Four claims in the contributor docs contradict the repository. Each was checked
against the thing it describes, not against another document.

1. The required-check list was missing three gates

ONBOARDING.md listed five required checks. The ruleset returns eight:

$ gh api repos/:owner/:repo/rulesets/12911634 \
    --jq '.rules[] | select(.type=="required_status_checks")
          | .parameters.required_status_checks[].context'
fmt + clippy
nextest (stable)
Windows (stable)
macOS (stable)
Linux musl (stable)
interop / interop with upstream rsync
upstream-testsuite / upstream testsuite
upstream-testsuite / upstream testsuite (root)

The three that were missing are the slow behavioural gates - the ones most
likely to fail after a contributor believes they are done. Check names now match
the ruleset contexts verbatim, so a red check can be mapped to a row without
guessing. TESTING.md repeated the same five-item list and is corrected too.

2. The stated review requirement does not exist

ONBOARDING.md said "PRs require one approving review (admin can bypass)".

$ gh api repos/:owner/:repo/rulesets/12911634 \
    --jq '.rules[] | select(.type=="pull_request") | .parameters.required_approving_review_count'
0

Master is protected and changes do land via PR, but no approving review is
required; CI is the gate. Advertising a review requirement that is not enforced
invites contributors to block on one that will never arrive.

3. Three sites named the wrong upstream release

ONBOARDING.md (twice) and upstream-cross-references.md pointed at
rsync-3.4.1. The pin is 3.4.4:

$ grep -n upstream_version Cargo.toml
461:upstream_version = "3.4.4"

That is the tree every // upstream: citation resolves against, so following
the old instruction produces citations the drift gate then rejects. Each site
now names 3.4.4 and says which key pins it, so the next bump has one obvious
place to look.

4. The interop version list had drifted

TESTING.md hardcoded 3.0.9, 3.1.3, 3.4.1, 3.4.2, 3.4.3 in two places. The
harness declares:

$ grep -n 'versions=(' tools/ci/run_interop.sh
74:versions=(3.0.9 3.1.3 3.4.4 3.5.0)
78:extra_build_versions=(2.6.9)
85:source_only_versions=(2.6.9 3.4.4 3.5.0)

Neither documented list was right, and one named 3.4.2/3.4.3 which the harness
never builds. Both sites now point at the versions=(...) declaration rather
than copying it - the copy is precisely what drifted, so a second copy would
just drift again.

Deliberately not changed

CONTRIBUTING.md:194 also says rsync-3.4.1/, and it is correct. It cites that
path as an example of a citation qualified by a version that is not the pinned
release, to illustrate what falls out of scope. Retargeting it at 3.4.4 would
make it name the pin and destroy the example.

The ## CI Matrix job table in TESTING.md is also left alone: its Required
column is per-job, and the mapping from jobs to the eight required contexts
was not verified here. Only the branch-protection sentence beneath it, which
states the context list directly, is corrected.

Documentation only - no code, no test, no workflow changes.

The contributor docs stated four things the repository contradicts:

- ONBOARDING listed 5 required checks; branch protection requires 8. The
  three missing ones (interop, upstream testsuite, upstream testsuite
  (root)) are exactly the slow behavioural gates a contributor most needs
  to know about before pushing. Check names now match the ruleset contexts
  verbatim so they can be mapped one-to-one.

- ONBOARDING claimed PRs require one approving review. The ruleset sets
  required_approving_review_count to 0; CI is the gate. Stating a review
  requirement that does not exist invites contributors to wait for one.

- Three sites named rsync-3.4.1 as the source of truth. The pin is 3.4.4
  (workspace.metadata.oc_rsync.upstream_version), which is what every
  `// upstream:` citation resolves against, so reading 3.4.1 can produce
  citations the drift gate then rejects.

- TESTING hardcoded the interop version list as 3.0.9/3.1.3/3.4.1/3.4.2/
  3.4.3; the harness actually builds 3.0.9/3.1.3/3.4.4/3.5.0 plus a
  build-only and a source-only set. Both sites now point at the
  `versions=(...)` declaration instead of copying it, since the copy is
  what drifted.

CONTRIBUTING.md's `rsync-3.4.1/` mention is deliberately left alone: it
names a non-pinned version on purpose, to illustrate a citation that is
out of scope. Retargeting it at the pin would destroy the example.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Aug 15, 2026
@oferchen
oferchen merged commit b1b07c8 into master Aug 15, 2026
14 checks passed
@oferchen
oferchen deleted the docs/correct-stale-upstream-version-and-ci-gate-claims branch August 15, 2026 07:26
oferchen added a commit that referenced this pull request Aug 24, 2026
The contributor docs stated four things the repository contradicts:

- ONBOARDING listed 5 required checks; branch protection requires 8. The
  three missing ones (interop, upstream testsuite, upstream testsuite
  (root)) are exactly the slow behavioural gates a contributor most needs
  to know about before pushing. Check names now match the ruleset contexts
  verbatim so they can be mapped one-to-one.

- ONBOARDING claimed PRs require one approving review. The ruleset sets
  required_approving_review_count to 0; CI is the gate. Stating a review
  requirement that does not exist invites contributors to wait for one.

- Three sites named rsync-3.4.1 as the source of truth. The pin is 3.4.4
  (workspace.metadata.oc_rsync.upstream_version), which is what every
  `// upstream:` citation resolves against, so reading 3.4.1 can produce
  citations the drift gate then rejects.

- TESTING hardcoded the interop version list as 3.0.9/3.1.3/3.4.1/3.4.2/
  3.4.3; the harness actually builds 3.0.9/3.1.3/3.4.4/3.5.0 plus a
  build-only and a source-only set. Both sites now point at the
  `versions=(...)` declaration instead of copying it, since the copy is
  what drifted.

CONTRIBUTING.md's `rsync-3.4.1/` mention is deliberately left alone: it
names a non-pinned version on purpose, to illustrate a citation that is
out of scope. Retargeting it at the pin would destroy the example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant