Repository navigation
build(properties-view): ratchet the target onto the conversion groups (#2625) - #3067
Conversation
…#2625) shared/properties-view joins the conversion ratchet: naming the three groups in its own target_compile_options() needs no call-site edits, because the target's one unity group (build/properties-view.core+.hpp.cpp) already states its conversions. Evidence, measured on the lane's own toolchain (gcc-toolset-14 14.2.1) inside the AppImage base image with /opt/obs-deps and Qt 6.11.2: the TU replays with -zero- first-party diagnostics with -Wconversion -Wsign-conversion -Wfloat-conversion, against zero before (the global pins hid none of its code). repo_ratcheted_dirs() now lists 31 directories, so a PR that touches this target's sources or this CMakeLists selects the Sanitizers lane and pays for its own diagnostic (#2923). The app target and the other three consumers (frontend, frontend-tools, decklink-output-ui) are already ratcheted; aja-output-ui is the last consumer left, and it is next.
zackees
left a comment
There was a problem hiding this comment.
Coordinator review: LGTM. A one-target ratchet slice for #2625, measured with the lane's own compiler and deps: GCC 14.2.1, Qt 6.11.2, exit 0 with all three groups on. It has no call-site edits, and it follows the pattern of the earlier slices. Queue on green.
|
Handed off to the coordinator: CI is green on
|
Refs #2625 (slice:
shared/properties-view).shared/properties-view/CMakeLists.txtnames the three conversion groups for C++,beside its existing
target_compile_optionsfor MSVC. No call-site edits: thetarget's one unity group (
build/properties-view.core+.hpp.cpp, which pulls inproperties-view.hpp,double-slider.hpp,double-slider.cpp.hpp,properties-view.moc.hpp,spinbox-ignorewheel.cpp.hpp) already states itsconversions.
Measurement (before the change)
Replayed the target's own TU inside the
obs-appimage-228base image, i.e. thelane's own compiler and dep set —
gcc-toolset-1414.2.1 (GCC 14.2.1), Qt 6.11.2and
/opt/obs-deps/headers— with-fsyntax-only -fPICon top of the target'snormal include set:
So the global
-Wno-conversion/-Wno-sign-conversion/-Wno-float-conversionincmake/linux/compilerconfig.cmakehid no code in thistarget: the slice is the ratchet entry itself, the same shape as #2970
(
frontend/api). The PR's own Sanitizers lane is the authoritative run, andci/ci_scope.pyselects it for this PR because the CMakeLists now names a group.Ratchet state
uv run --no-project ci/conversion_ratchet.pylists 31 directories, withshared/properties-viewadded. Its four consumers:frontend,frontend-toolsand
decklink-output-uiare already ratcheted;plugins/aja-output-uiis thelast one left and is the next slice, so the flags this target publishes as an
INTERFACE target reach a ratcheted consumer in every build today except that
plugin.
ci/test_conversion_ratchet.py,ci/test_ci_scope.pyandci/test_frontend_conversion_optins.py: 64 tests, OK.Build tooling only, so no
docs/features.mdline (per #2625). No new tests, sono Test cost line.
Local
./lintcould not run to completion on this host: its lane container hasno
gitonPATH, soci/check_changes.pyexits before the checks. Theworkflow's own lanes are the gate.