Skip to content

infra: the PR that turns a target's ratchet on leaves its sanitizer build to the night's schedule (#2923, #2956) #2960

Closed

Description

@zackees

What

#2923's mitigation (#2955, ci/ci_scope.py) selects the asan pass for a pull
request that changes a compile input of a target whose CMakeLists names a
conversion group. A compile input is matched by ci/conversion_ratchet.py's
SOURCE suffix (.c, .cpp, .hpp, …), so the PR whose only change is the
CMakeLists that turns the ratchet on selects nothing.

#2956 (build(cmake): ratchet decklink-captions onto the conversion groups,
merged 2026-10-29 19:43 UTC) is exactly that shape: one file,
plugins/decklink-captions/CMakeLists.txt, +9 -0, adding the
-Wconversion;-Wsign-conversion;-Wfloat-conversion group. Its own run
(40940289236) shows Build 🧱 / Sanitize 🧪 … skipping, so the target's first
sanitizer build is still left to the night's sanitizers.yaml — the blind spot
#2923 was filed to close, one level up.

The module docstring already promised the opposite: "the PR that adds a target to
the ratchet selects the lane too: the flag is already in its own CMakeLists by
the time the scope runs." The code does not do it, and
ci/test_ci_scope.py::test_the_sanitizer_lane_ignores_what_is_not_a_compile_input
asserted hit("frontend/CMakeLists.txt", dirs) is False.

Why it matters

A flag change is a build input: it can surface a diagnostic that only the asan
configuration reports (the unity grouping and -DDEBUG paths #2923 documents),
and the target's own opt-in PR is the cheapest place to pay for it. Without this,
every one of #2625's remaining target slices can land with a sanitizer-only error
and be found hours later by the schedule.

Fix

conversion_ratchet.hit() also matches a ratcheted target's own
CMakeLists.txt (exact directory, so a nested frontend/build/CMakeLists.txt is
a different target and does not hit). Tests in ci/test_conversion_ratchet.py
and ci/test_ci_scope.py; docs/ci-tooling.md's selection row updated.

Acceptance

Activity

  1. added
    infra
    on Oct 29, 2026
  2. zackees commented on Oct 29, 2026

    @zackees
    MemberAuthor

    Claiming: #2960 — the ratchet opt-in PR selects the sanitizer lane

    1. ci/conversion_ratchet.py: hit() also matches the ratcheted target's own CMakeLists.txt (exact directory only; a nested CMakeLists is another target).
    2. RED: ci/test_conversion_ratchet.py (CMakeLists hits; nested and outside-the-ratchet ones do not) and ci/test_ci_scope.py (a CMakeLists-only pull_request diff selects asan; merge_group does not) — both fail on master, both pass after the change.
    3. GREEN: the hit() change plus docs/ci-tooling.md's selection row; test_conversion_ratchet, test_ci_scope green.
    4. One PR, infra/2923-ratchet-pr-selects-asan, against master. CI-only change, so no platform lane; Tier 1 is Fast Gate.

    No decision needed: it restores the behaviour #2955's own docstring promised, and only makes a pull request select a lane the schedule already runs.

  3. added
    ready
    P3
    size:S
    on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3infrareadysize:S

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions