Repository navigation
ci: the ratchet opt-in PR runs the sanitizer lane (#2923, #2956) - #2961
Merged
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RED
ci/conversion_ratchet.py'shit()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 noasanpass — whileci_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:
plugins/decklink-captions/CMakeLists.txt+9 -0— run 40940289236:Build 🧱 / Sanitize 🧪 … skipping.plugins/frontend-tools/CMakeLists.txt(+ two sources, so it does select asan — the CMakeLists-only case is build(cmake): ratchet decklink-captions onto the conversion groups (#2625) #2956 and every remaining build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 opt-in slice).RED commit
c1cac2d97adds the tests and fails on master:GREEN
hit()also matches the ratcheted target's ownCMakeLists.txt(exact directory: a nestedfrontend/build/CMakeLists.txtis another target, and a directory the ratchet does not name opts nothing in). Thepull_requestguard is unchanged, so the merge queue keeps the path selection (#2072, #2593).GREEN commit
ae0e36e4e, 61 tests:Real tree (
repo_ratcheted_dirs), probe:./lintok.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