Skip to content

build(frontend-api): ratchet the target onto the conversion groups (#2625) - #2970

Merged
zackees merged 1 commit into
masterfrom
build/2625-conversion-frontend-api
Oct 30, 2026
Merged

zackees merged 1 commit into
masterfrom
build/2625-conversion-frontend-api

Conversation

@zackees

@zackees zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member

frontend/api/CMakeLists.txt names the three conversion groups, so obs-frontend-api
drops the global -Wno-conversion / -Wno-sign-conversion / -Wno-float-conversion
pins the same way shared/qt/idian does (#2966).

Why this target, and why no code changes

It is the last target reachable on Linux that still compiled behind the pins, and its one
group (frontend/api/build/obs-frontend-api.core+.hpp.cpp → obs-frontend-api.cpp.hpp)
was measured clean under all three groups before the flag was added, so the slice carries
no call-site edits. The change is the ratchet entry itself:

Everything else left on the list is an INTERFACE library (shared/qt/* widgets,
shared/properties-view, shared/media-playback, shared/file-updater), whose sources are
compiled by its consumers' flags — ratcheting those changes every consumer's build, not one
target, so they are not this slice.

Evidence

Reconfigured the Linux tree (cmake -S . -B build, RelWithDebInfo, the frontend enabled)
and replayed the target's own translation unit with the command CMake now generates:

-Wno-conversion -Wno-sign-conversion -Wno-float-conversion \
-Wconversion -Wsign-conversion -Wfloat-conversion   # the target's entry, last wins
g++ ... -fsyntax-only  build/obs-frontend-api.core+.hpp.cpp  -> exit 0, no diagnostics

The same TU compiled the same way before the change (positive groups appended by hand) was
also clean — that is the measurement this slice rests on.

  • gersemi --check frontend/api/CMakeLists.txt: clean.
  • uv run ci/local_gate.py --only self-test: == self-test: ok (includes
    test_conversion_ratchet.py, test_conversion_card.py, test_frontend_conversion_optins.py).

The file carries no #ifdef on any platform, so the macOS and Windows builds compile the
same TU; only the AppleClang spelling of a diagnostic could differ, and the tree has no
clang to replay it with, so PR CI's app lanes are the confirmation.

Refs #2625, Refs #2938.

@zackees

zackees commented Oct 30, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator.

Local signal: gersemi --check clean, uv run ci/local_gate.py --only self-test ok; no gate
stamp (the change is one CMakeLists.txt, no Rust/C source), so do not look for one.

PR CI so far: Format 🔍 / checks pass, Fast Gate ⚡ pass, Build 🧱 / Qt Frontend Linux 🐧
pass 4m1s (this is the lane that compiles obs-frontend-api with the added groups).
Sanitize 🧪 / asan 🧪 selected by the ratchet scope (#2923) and Rust Tier 2 Linux are
still running; auto-merge is on.

@zackees
zackees added this pull request to the merge queue Oct 30, 2026
Merged via the queue into master with commit e2782b4 Oct 30, 2026
41 checks passed
@zackees
zackees deleted the build/2625-conversion-frontend-api branch October 30, 2026 00:48
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Oct 30, 2026
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.

1 participant