Skip to content

test(oracle): ratchet the inherited reld-diff default ignores (reld#13) - #160

Merged
zackees merged 1 commit into
mainfrom
feat/13-ratchet-default-ignores
Sep 17, 2026
Merged

zackees merged 1 commit into
mainfrom
feat/13-ratchet-default-ignores

Conversation

@zackees

@zackees zackees commented Sep 17, 2026

Copy link
Copy Markdown
Collaborator

Advances #13 (Wave 2 of #153). Does not close it: this makes the inherited list shrinkable; the entries themselves come off in follow-ups driven by what this reports.

The gap

A caller-supplied ignore is already ratcheted per fixture — the fixture that declares it must still observe it, or the run fails and tells you to delete it. The ~90 inherited --reld-defaults patterns in apply_reld_defaults had no equivalent, because each suppresses differences across every fixture and no single fixture can say whether it is still needed.

So nothing ever removed one. TrackedIgnore::new("section.data.rel.ro", 13) still says "We don't yet support these sections", which stopped being true in #155.

What this adds

Each report now exposes the defaults that were in play for its architecture (Report::declared_default_ignores), and Report::used_ignores already records a default when it suppresses something. The acceptance harness aggregates both across the run — the same shape as the existing AggregateOracleCoverage — and at the end of a full run prints the defaults no fixture observed. Those are the removal candidates.

The union is the point: a default one fixture did not need may be the only thing keeping another green, so only a pattern unobserved by every fixture counts.

It prints rather than fails, because which defaults get exercised depends on which fixtures a host can run. RELD_RATCHET_DEFAULT_IGNORES=1 turns the report into a failure with the list and the instruction to remove them, for a run that covers the matrix.

Note on the acceptance criteria

full-diff CI configuration cannot inject suite-global ignores that evade fixture ratcheting

Already covered — full_diff_config_rejects_unratcheted_suite_global_ignores in acceptance_policy_tests.rs. And every default already carries a tracking issue, validated by an existing check that rejects tracking_issue == 0. What was missing was only the removal half, which is this.

Verification

  • cargo test -p reld --test acceptance-policy — 11 passed, including two new ones covering the union behaviour and the "all observed" case.
  • cargo fmt --all -- --check, cargo clippy -p reld -p reld-diff --all-targets -- -D warnings — clean.
  • The local acceptance run cannot produce the list (this NixOS host records no oracle reports: no static glibc, 11 pre-existing environmental failures on main too). The list will be in this PR's Linux acceptance job log, and the stale entries come off in a follow-up.

🤖 Generated with Claude Code

A caller-supplied ignore is ratcheted per fixture: the fixture that declares it
must still observe it. The ~90 inherited `--reld-defaults` patterns had no such
check, because each one suppresses differences across every fixture and no
single fixture can say whether it is still needed. Nothing removed them, so a
default outlived the divergence it described — `.data.rel.ro` is listed as a
section reld does not support, which stopped being true in #155.

The run now takes the union instead. Every report contributes the defaults it
declared and the ignores it observed, and at the end of a full acceptance run
the harness prints the defaults no fixture observed. Those are removal
candidates for reld#13, which is how the inherited list shrinks.

It prints rather than fails, because which defaults get exercised depends on
which fixtures the host can run. `RELD_RATCHET_DEFAULT_IGNORES=1` turns the
report into a failure, for a run that covers the matrix.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@zackees
zackees merged commit 65f5947 into main Sep 17, 2026
18 checks passed
@zackees
zackees deleted the feat/13-ratchet-default-ignores branch September 17, 2026 22:10
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