Skip to content

docs(coordination): measure a warning class on the app build's TU set (#2624) - #2833

Merged
zackees merged 1 commit into
masterfrom
infra/2624-app-tu-prototypes
Oct 28, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/2624-app-tu-prototypes

Conversation

@zackees

@zackees zackees commented Oct 28, 2026

Copy link
Copy Markdown
Member

The warning-class helper (#2689) reads a tree's compdb, but which tree decides what a pin-drop is measured against. A Tier 2 tree is not the whole set: libobs-opengl's platform sources, the Linux-only plugin targets and the Qt frontend compile only in the app builds, which is how #2678's pin-drop went red in a Scheduled run twice (#2703, #2710) after a clean Tier 2 replay.

This adds the missing step to the mechanical-warning rule in docs/rust-port/coordination.md: configure the AppImage tree (uv run build-aux/appimage/build.py --steps version,configure, seconds, no compile), ninja -t compdb in build_ubuntu/, and replay that compdb. It also notes that a vendored tree the build exempts with a target-scoped -Wno-* (librtmp, libcaption here) reports nothing until the pin is dropped with --drop.

Documentation-only: no RED → GREEN test, no docs/features.md line.

Refs #2624.

Measurement that motivated it

Replaying the AppImage tree's own C units on master (f8e8c4136) with -Wmissing-prototypes -Wstrict-prototypes in the flag lists and neither -Wno-* pin present:

{"total": 0, "translation_units": 155, "directories": [], "findings": []}

155 C translation units (the app's C/C++ units are 1234 total; the C subset is what the flags apply to), zero findings. That is the wider-set answer #2624 was still missing: the Ubuntu app lane's first-party C is clean at #2678's flags. Re-dropping the two pins on the vendored trees (librtmp, libcaption) also reports zero, so the vendored set is clean at the same flags.

The replay is the ground truth that a source scan is not: a regex scan for a non-static file-scope definition with no header prototype reports 244 candidates across libobs/ and plugins/*.c.h, because their prototypes live in a sibling *.c.h the scan does not index. Only the compiler answers this question.

A pin-drop that is clean on a Tier 2 tree can still fail a Scheduled run,
because many plugin and platform sources only compile in the app builds
(#2678, #2710). Record the cheap enumeration: configure the AppImage tree
and replay its compdb. Refs #2624.
@zackees
zackees added this pull request to the merge queue Oct 28, 2026
Merged via the queue into master with commit 02e99ed Oct 28, 2026
34 checks passed
@zackees
zackees deleted the infra/2624-app-tu-prototypes branch October 28, 2026 18:19
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