Skip to content

test(ci): changes_job_equivalence_15360 fixture is a shared per-PR edit point that conflicts across PRs #21205

Open

Description

@mrveiss

Child of #19673. Pairwise sweep at b4df186 (issuecomment-6724131351): repo_tests/changes_job_equivalence_15360_test.py causes 6 of the 12 remaining conflicting PR pairs. PRs that widen the python path filter add entries to its ALLOWED_ADDITIONS and frozen digest fixture, so adjacent edits conflict.

Acceptance criteria:

  • two PRs that each add a different path to the filter do not conflict on this test or its fixture (e.g. derive allowed additions from the filter diff against the merge base, or a per-entry layout);
  • the equivalence guarantee is unchanged (a control shows an undeclared widening still fails);
  • a re-run pairwise sweep shows 0 conflicts on this file.

Activity

  1. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Proposed designs for #21205 and #21206 (children of #19673)

    Measured against origin/main at b4df186. Both designs gate against the merge base, as #21169 does. Neither touches a floor= line or repins anything, so the rule that a branch doesn't repin (RATCHET_BASELINES.md:604) is not engaged.

    #21205: changes_job_equivalence_15360

    The three per-PR tables are removed: ALLOWED_ADDITIONS, ISSUE_17822_ENTRIES with its count, and the fixture's sha256 digests. They are replaced by these rules:

    1. Every entry in the pre-ci(perf): collapse 15 duplicate paths-filter jobs into one reusable workflow #15360 snapshot is still present in head, in order.
    2. Every head entry not in the snapshot is declared in place, with a #NNNN citation on its line or in the comment block directly above it.
    3. No entry present at the merge base is removed (via _ratchet_base.base_text; fails closed). A deliberate removal needs a # retired #NNNN tombstone.
    4. The inline migration-gate keeps its on.push.paths invariant.

    The fixture keeps the historical content only, and nothing edits it per PR.

    Needs maintainer sign-off: dropping header_sha256, other_jobs_sha256 and other_jobs_if_needs. Those freeze the current workflows rather than the conversion, which is why they were re-frozen in #20900, #19676 and #19406.

    Controls: an uncited entry fails; a removal without a tombstone fails; BaseUnavailable propagates; a planted pair of adds that each cite a different block merges cleanly.

    #21206: reach_scope_claim_17844, _reach_policy_verdicts and _reach_unscoped

    Scope. The hand copy _DECLARED_SCOPES and its 58 imports are replaced by a base check: for every scoped declaration present at the merge base, the base's roots must be a subset of head's roots (via a roots-only mode of _reach_base). Widening is free. A deliberate narrowing takes a new declaration name, which needs a pinned floor for one landing, per #19676.

    Verdicts and unscoped reasons. Reach/declare() gain verdict= and unscoped=, and the registry tests read those instead of the shared tables. The migration is staged: the framework accepts either source, guards are converted in chunks of at most 100 files, then the tables are deleted.

    Conflict to settle first: open PR #21162 moves _DECLARED_SCOPES verbatim into a new shared module, _reach_declared_scopes.py. That is the same shared table under a new name.

    Controls: a narrowed root fails and names the root; BaseUnavailable propagates; a growth= declaration without verdict= fails; a planted pair of new guards merges cleanly.

    Acceptance

    Re-run the pairwise sweep. The 12 remaining conflicting pairs should reach 0 on these files.

  2. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Maintainer decision (owner sign-off): drop header_sha256, other_jobs_sha256 and other_jobs_if_needs from the #15360 fixture, replaced by the in-place #NNNN citation rule and the # retired #NNNN tombstone rule against the merge base, per the design comment above.

  3. mrveiss commented on Nov 11, 2026

    @mrveiss
    OwnerAuthor

    Partially delivered by #21211 (landed in #21323, a0cfcc1). Left open.

    AC Status Evidence on main
    Two PRs that each add a different path do not conflict Delivered repo_tests/_filter_entries.py; filter_equivalence_base_21205_test.py::test_two_prs_each_adding_a_cited_entry_under_their_own_block_merge_and_both_pass (l.167), contrast at l.192
    Equivalence guarantee unchanged (undeclared widening still fails) Delivered test_an_uncited_new_entry_fails (l.63), test_a_dropped_or_reordered_snapshot_entry_fails (l.87)
    A re-run pairwise sweep shows 0 conflicts on this file Not verified no sweep has been re-run after the merge
  4. mrveiss commented on Nov 20, 2026

    @mrveiss
    OwnerAuthor

    AC audit against main 13685f3 (2026-11-20). A branch deleted as ZERO means its content is on main; it does not by itself meet the ACs.

    PR #21211 closed, branch deleted as ZERO.

    • AC1, AC2 already ticked (repo_tests/one_paths_filter_job_15360_test.py).
    • Open AC3 (re-run pairwise sweep shows 0 conflicts on this file) is a measurement, not code. Left unticked.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions