Skip to content

ci: fail missing upstream oracles and run every oracle cell in CI - #8320

Merged
oferchen merged 6 commits into
masterfrom
ci/upstream-oracle-gate
Nov 15, 2026
Merged

oferchen merged 6 commits into
masterfrom
ci/upstream-oracle-gate

Conversation

@oferchen

@oferchen oferchen commented Nov 3, 2026

Copy link
Copy Markdown
Owner

Summary

CI never ran the cross-implementation oracle tests. They resolved upstream rsync from paths no job built, printed a skip line and passed. This makes a missing oracle a failure in CI and runs every oracle cell in the interop job.

  • test_support::require_upstream_rsync panics instead of skipping when OC_RSYNC_UPSTREAM_COMPAT=1. Local runs without an upstream build still skip.
  • The tests that pointed at target/interop/upstream-src/rsync-<v>/rsync (a path no CI job builds) now resolve through require_upstream_rsync:
    • block_size_suffix_grammar;
    • the daemon auth, filter-file, hosts-allow and log-host tests;
    • empty_size_value_parity, filter_file_open_failure_parity;
    • local_progress_output_order;
    • daemon_push_refused_file_reports_error.
  • filter_nested_rsync_filter_stress moves from 3.4.2 to 3.4.4. 3.4.2 was never in the interop build, so the cell could never run.
  • tools/ci/run_interop.sh builds 3.4.1 as an oracle-only version. 3.4.1 is a supported interop version, and its tarball is already pinned in upstream-tarballs.sha256. It joins no interop scenario, and a failed build is fatal.
  • tools/ci/upstream_oracle_tests.py has two commands:
    • args derives the nextest selection from the tree: every top-level test file that calls the resolver.
    • check-log rejects a run with any skip line or zero tests.
    • It has unit tests in tools/tests/.
  • The _interop.yml change, which goes in separately, replaces the five per-binary oracle steps with one step over the derived set. It also adds 3.4.1 to the fetch list and keys the cache on upstream-tarballs.sha256.

Cells this gate surfaces

With the oracles built, 95 cells run: 90 pass and 5 fail. All 5 failures are real divergences from 3.5.1, on the push leg:

  • checksum_choice_none_refused::push_refuses_in_the_local_sender: exits 12 where 3.5.1 exits 4 (checksum.c:549). Tracked as task 555.
  • 4 cells in upstream_compat_filter_rule_parse: the client prints "connection unexpectedly closed" instead of 3.5.1's parse error (exclude.c:131-136, :1376-1379, :1452, :1475). Tracked with task 547.
    • c_modifier_inside_a_per_directory_merge_file
    • merge_file_rules_end_where_upstream_ends_them
    • naming_both_sides_still_names_a_side
    • sided_merge_file_refuses_a_sided_rule

This merges after those fixes, or with them folded in.

Test plan

  • OC_RSYNC_UPSTREAM_COMPAT=1 cargo nextest run $(upstream_oracle_tests.py args) on Linux with all 8 upstream versions built: 95 run, 90 passed, and the 5 above failed.
  • python3 -m unittest tools.tests.test_upstream_oracle_tests: 7 tests pass.
  • check_bin_build_coverage.py passes with the workflow change.
  • cargo fmt --all -- --check and check_rustfmt_all.py pass.

@oferchen
oferchen force-pushed the ci/upstream-oracle-gate branch from a5f73d7 to a8e56e7 Compare November 4, 2026 09:04
Base automatically changed from test/upstream-351-oracle to master November 4, 2026 12:48
@github-actions github-actions Bot added the ci label Nov 4, 2026
@oferchen
oferchen force-pushed the ci/upstream-oracle-gate branch 3 times, most recently from 338b18b to 2556be7 Compare November 13, 2026 12:04
require_upstream_rsync panics instead of skipping under OC_RSYNC_UPSTREAM_COMPAT=1. The src-path oracle tests now resolve through it, filter_nested moves from the never-built 3.4.2 to 3.4.4, run_interop.sh builds 3.4.1 as an oracle-only version, and tools/ci/upstream_oracle_tests.py derives the nextest selection and rejects skipped or empty runs.
Build 3.4.1 alongside the other oracle versions, key the upstream cache on the tarball checksum manifest, and replace the five per-binary oracle steps with one step that runs every test binary calling require_upstream_rsync. OC_RSYNC_UPSTREAM_COMPAT=1 makes a missing or wrong oracle a failure, and check-log rejects any skip line or a run of zero tests even when nextest fails.
@oferchen
oferchen force-pushed the ci/upstream-oracle-gate branch from 2556be7 to d76d801 Compare November 15, 2026 17:10
@oferchen
oferchen marked this pull request as ready for review November 15, 2026 17:29
@oferchen
oferchen force-pushed the ci/upstream-oracle-gate branch from bc548c5 to 66df39f Compare November 15, 2026 17:51
@oferchen
oferchen force-pushed the ci/upstream-oracle-gate branch from 66df39f to 8fbcf4b Compare November 15, 2026 17:54
@oferchen
oferchen merged commit ce807b8 into master Nov 15, 2026
89 checks passed
@oferchen
oferchen deleted the ci/upstream-oracle-gate branch November 15, 2026 18:49
oferchen added a commit that referenced this pull request Nov 17, 2026
…8395)

## Summary
- **CONTRIBUTING.md**: pin the upstream tree, tarball URL, line
manifest, surface diff and citation example at rsync 3.5.2; list all
sixteen required checks (`rustdoc links` was missing); put blank lines
around headings and `---` rules. Four rules sat directly under a
paragraph, which rendered that paragraph as a heading.
- **SECURITY.md**: order the 3.5.1 and 3.5.2 sections by release, like
the summary table, and keep the 3.5.2 testsuite note with the 3.5.2
section. No status or evidence text changed.
- **CHANGELOG.md**: add entries for #8320, #8385, #8387 and #8392; add
the missing PR numbers (#8382, #8383); name 3.5.2 as the reference and
as the gated test suite; fix heading spacing.
- **README.md**: name the one internal feature the feature table's "Not
listed" note left out. The testsuite counts, CVE counts, protocol table,
links and feature table were checked against the tree and are current.

## Verification
- Every relative link in the four files resolves.
- The README feature table matches the `[features]` tables of the
workspace and every crate.
- Required-check list compared with the ruleset (16 contexts).
- Testsuite counts compared with `tools/ci/upstream-3.5.2-expect.*.txt`;
CVE counts compared with the SECURITY.md rows.
- `cargo xtask citations` passes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant