Repository navigation
build(cmake): ratchet decklink-captions onto the conversion groups (#2625) - #2956
Merged
Merged
Conversation
zackees
commented
Oct 29, 2026
zackees
left a comment
Member
Author
There was a problem hiding this comment.
Reviewed for correctness, the ratchet mechanism, and the tests the change claims.
Verdict: correct and complete.
What I checked independently (not taken from the description):
- The opt-in is what the ratchet reads.
ci/conversion_ratchet.pymatches the
positive groups in anytarget_compile_options()body and records that
CMakeLists' directory. On this head,uv run python -m ci.conversion_ratchet
now listsplugins/decklink-captions, so the target really is in the ratchet
rather than only compiling with the flags. - The lane actually follows. On this tree,
ci_scope.scope(["plugins/decklink-captions/decklink-captions.cpp"], event="pull_request", ratchet_dirs=repo_ratcheted_dirs(...))returnsasan=True, which is the
behaviour the description promises. (A CMakeLists-only change, including this
PR, does not select it —SOURCEcovers compile inputs only, same as every
other ratcheted target.) - No diagnostics in the affected TUs. Replayed the three
decklink-captions
entries of anENABLE_DECKLINK=ONLinux build with g++ 15.2,-fsyntax-only,
the three-Wno-*pins removed and-Wconversion -Wsign-conversion -Wfloat-conversionadded: 0 diagnostics, all three exit 0. That matches the
clang replay in the description, on a different compiler. - Tests and format. From
ci/:test_conversion_ratchet.pyand
test_ci_scope.py(59 tests) plustest_conversion_card.py,
test_frontend_conversion_optins.py,test_conversion_measure.py(20 tests)
all pass.gersemi 0.25.0 -c plugins/decklink-captions/CMakeLists.txtis clean.
The generator expression is spelled exactly like the existing obs-webrtc entry
(COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU), which is the right guard here —
the plugin has only C++ sources.
Not verified by me: AppleClang and MSVC. 0 docs/features.md line is right for a
build-only change.
Queuing.
This was referenced Oct 29, 2026
This was referenced Oct 29, 2026
MCPVOT
pushed a commit
to MCPVOT/obs-studio
that referenced
this pull request
Oct 30, 2026
…-rust#2956) (obs-rust#2961) * test: a ratchet opt-in PR selects the sanitizer lane (obs-rust#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 obs-rust#2956's shape (one CMakeLists, +9 -0, `Sanitize` skipped) and obs-rust#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 * ci: the ratchet opt-in PR runs the sanitizer lane (obs-rust#2923, obs-rust#2956, obs-rust#2959) `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 obs-rust#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 (obs-rust#2072, obs-rust#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 obs-rust#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.
Refs #2625. One more target leaves the conversion ratchet's blind spot.
What
plugins/decklink-captions/CMakeLists.txtopts the target into-Wconversion,-Wsign-conversionand-Wfloat-conversion. Nothing else changes: thetarget names no implicit conversion with the three groups on, so there is no call site to
state.
The opt-in is what makes the target appear in
ci/conversion_ratchet.py'sratcheted_dirs(), so from this commit on a PR that changes a compile input belowplugins/decklink-captionsruns theasanlane that would have caught a sanitizer-onlydiagnostic (#2955), instead of leaving it to the nightly schedule.
Evidence
Local tree:
build/(Linux, gcc 15.2,ENABLE_DECKLINK=ON,-Werrorglobal), branch atorigin/master61c814e48.ninja -C build decklink-captionsreconfigures andrecompiles
build/decklink-captions.core+.hpp.cppandmocs_compilation.cppwith thethree groups → clean, links
decklink-captions.so.decklink-captions.direntry ofbuild/compile_commands.jsonre-run as
clang++21.1.8 with-fsyntax-onlyplus the three groups and the-Wno-*pins removed → 0 diagnostics in 3 TUs.
uvx gersemi==0.25.0 -c plugins/decklink-captions/CMakeLists.txtclean;./lint→lane lint: ok (92.0s);uv run python -m unittest test_conversion_ratchet.py test_ci_scope.py→ 59 tests OK (the ratchet test reads the tree, so the new entry iscovered without a test edit).
No RED commit: this is a configuration-only change and the target reports nothing to
state, so there is no failing state to capture (coordination.md §4's exception for a
focused CI/configuration fix). The evidence above is the local compile of the affected
TUs with the flags the change adds.
Not verified here: AppleClang and MSVC. This target builds on macOS and Windows too,
and the opt-in is scoped to
COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU, so acompiler-specific diagnostic there would surface on those lanes, not in this replay.
No
docs/features.mdline: build tooling only.