Skip to content

ci: the ratchet opt-in PR runs the sanitizer lane (#2923, #2956) - #2961

Merged
zackees merged 2 commits into
masterfrom
infra/2923-ratchet-pr-selects-asan
Oct 29, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/2923-ratchet-pr-selects-asan

Conversation

@zackees

@zackees zackees commented Oct 29, 2026

Copy link
Copy Markdown
Member

RED

ci/conversion_ratchet.py's hit() matches only source suffixes (.c, .cpp, .hpp, …), so a pull request whose only change is the CMakeLists that turns a target's ratchet on selects no asan pass — while ci_scope.py's comment and the module's own docstring promise that PR selects the lane.

Two merged-or-open PRs are exactly that shape, and both skipped the lane:

RED commit c1cac2d97 adds the tests and fails on master:

AssertionError: False is not true
  test_the_cmake_lists_that_turns_the_ratchet_on_hits
  test_the_pr_that_turns_a_targets_ratchet_on_selects_the_sanitizer_lane

GREEN

hit() also matches the ratcheted target's own CMakeLists.txt (exact directory: a nested frontend/build/CMakeLists.txt is another target, and a directory the ratchet does not name opts nothing in). The pull_request guard is unchanged, so the merge queue keeps the path selection (#2072, #2593).

GREEN commit ae0e36e4e, 61 tests:

uv run --no-project python -m unittest test_conversion_ratchet test_ci_scope
Ran 61 tests ... OK

Real tree (repo_ratcheted_dirs), probe:

plugins/decklink-captions/CMakeLists.txt [pull_request] asan=True
plugins/decklink-captions/CMakeLists.txt [merge_group]  asan=False
plugins/decklink/CMakeLists.txt          [pull_request] asan=True

./lint ok. docs/ci-tooling.md's selection row states the CMakeLists case.

Tiers that do not apply: no Rust, C, protocol or runtime behaviour change; this is the ci/ scope self-test, which Fast Gate runs.

Fixes #2960

RED on master: `hit()` matches only source suffixes, so the PR whose only
change is the CMakeLists that turns a target's ratchet on selects no asan
pass. That is #2956's shape (one CMakeLists, +9 -0, `Sanitize` skipped) and
#2959's.

Fails now:

    AssertionError: False is not true
    test_the_cmake_lists_that_turns_the_ratchet_on_hits
    test_the_pr_that_turns_a_targets_ratchet_on_selects_the_sanitizer_lane
`conversion_ratchet.hit()` matches a ratcheted target's own CMakeLists.txt as
well as the sources below it: the PR that names a group in that file changes a
build input of the target, and it is the cheapest place to pay for a diagnostic
only the asan configuration reports (the blind spot #2923 exists for). The match
is the exact directory, so a nested `frontend/build/CMakeLists.txt` is another
target and a directory the ratchet does not name opts nothing in. The
`pull_request` guard is unchanged, so a merge-queue run still keeps the path
selection (#2072, #2593).

GREEN: `test_conversion_ratchet` + `test_ci_scope`, 61 tests.
Real tree, `repo_ratcheted_dirs`: `plugins/decklink-captions/CMakeLists.txt`
[pull_request] asan=true, [merge_group] asan=false.

Fixes #2960
@zackees
zackees added this pull request to the merge queue Oct 29, 2026
Merged via the queue into master with commit 5f166c9 Oct 29, 2026
35 checks passed
@zackees
zackees deleted the infra/2923-ratchet-pr-selects-asan branch October 29, 2026 20:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

1 participant