Repository navigation
Description
The warning-ratchet work (#516 and its five children) is currently shaped by a one-PR-per-directory convention. That convention is not written down anywhere, it contradicts #2625's own acceptance criteria, and it multiplies an expensive CI run by the number of directories. This issue changes the process: allow multi-directory edits for mechanical warning work.
What the process costs today
Measured, not estimated:
- build(cmake): compile C with -Wpedantic (#2623) #2643 (
-Wpedantic, build(cmake): Compile C with -Wpedantic (deps/glad exempt) #2623): 33 files, +293/−160. FivePullruns on one branch — 1 failure (13m42s), 2 cancelled (6m, 20m), 1 success (34m48s). ≈ 75 minutes of runner time for a single directory-slice. - The successful run's critical path is not the C build: Rust Tests (windows-2025) 14 min, Rust Tests (macos-26) 13 min, Fast Gate 12 min, Rust Tier 2 macos-26 12 min, Rust Tier 2 windows 10 min, Rust Tier 2 Linux (build) 9 min → 34m48s wall.
- Every landing also pays a merge-queue run of the same gate (
gh-readonly-queue/master/pr-…, observed 3–25 min each). - build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 is the largest of the five children and says so itself: the pins surface every implicit conversion at the call sites. The tree has 1340
.cfiles across ~40 directory groups (libobs/build244,plugins/*13 dirs,libobs/util94,frontend116, …). - build(cmake): Compile C with -Wpedantic (deps/glad exempt) #2623, build(cmake): Drop -Wno-missing-prototypes and -Wno-strict-prototypes #2624, build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 and build(msvc): Raise /W3 to /W4 and delete the dead /WX link option #2626 all edit the same two flag lists, so they also serialize against each other — each one pays its own PR run and its own queue run.
At ~35 min per PR plus a queue run, a per-directory split of the largest issue is 10–20× the CI cost of doing it once, and that is before the rebase churn of four sibling PRs editing compiler_common.cmake.
Why the split is also wrong on the merits
- It is folklore.
grep -niE "per-directory|one directory per|directory per PR"overdocs/and.claude/returns nothing. The rule exists only in issue bodies and in worker instructions, so nothing can be reviewed or changed except by rewriting each issue. - It contradicts build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625's acceptance criteria. The split mechanism is "per-directory PRs that each delete the pin only for their own files" — i.e. per-directory
-Wno-*— while the same issue says "no per-file-Wno-*replaces the global pin". The fallback is exactly what the acceptance forbids, and it leaves the tree in a state where the flag list is half-deleted, which is not the GREEN state anyone wants to bisect to. - Each slice changes the compile flags, so each slice pays a full invalidation. A flag list edit changes the command line for every TU, and build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625's own plan notes zccache does not key on flags — so a sliced series invalidates the cache (or worse, returns stale objects) repeatedly, ending with the final slice invalidating everything again.
- The diff is mechanical. These fixes are casts and widened types. Splitting them by directory buys nothing at review time that a per-directory table in one PR body does not buy, and it makes rebases worse, not better.
Proposal
- Policy: one PR per warning class, any number of directories. The only condition is that the diff stays mechanical (explicit casts / widened types, no behaviour change, no
#pragma GCC diagnostic ignored, no per-file-Wno-*). The PR body carries a findings table grouped by directory so the reviewer can read it in slices. Write this intoWORKFLOW.md(Definition of Ready) and the coordination docs, and delete the per-directory fallback sentence from build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 and its siblings. - Make the iteration gate cheap. RED and the inner loop become a
-fsyntax-onlyreplay of the affected TUs from the Tier 2 build volume'sninja -t compdbwith the three-Wno-*dropped — the technique build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 already specifies. That is minutes and needs no link. One full Tier 2 build is required only for GREEN. - Land the flag removal in the same PR as the fixes. One invalidation, not N, and a tree that never sits in the half-deleted state.
- Batch the siblings that touch the same lists. build(cmake): Compile C with -Wpedantic (deps/glad exempt) #2623/build(cmake): Drop -Wno-missing-prototypes and -Wno-strict-prototypes #2624/build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625/build(msvc): Raise /W3 to /W4 and delete the dead /WX link option #2626 edit the same two files; one branch with one commit per class and one full run at the end is cheaper than four PRs × (PR run + queue run) plus three rebases.
- Scope PR CI for flag-only C changes. A C warning-flag edit does not need Rust Tests on windows-2025 (14 min) and macos-26 (13 min), or the macOS/Windows Rust Tier 2 jobs (12 + 10 min) on every push to the branch — those are the critical path, and they are the right gate at queue time. This is the single biggest lever: it takes the 35-minute loop down to the Linux Tier 2 build plus cross-compile (~10–11 min). Needs a changed-file rule in the existing gate rather than a new workflow.
Acceptance criteria
- The multi-directory policy is documented in
WORKFLOW.mdand the coordination docs, and the per-directory fallback is removed from build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 and the other build: Maximum C/C++ warning strictness with -Werror on every platform (cross-compiled with soldr) #516 children. - build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 is re-scoped to a single multi-directory PR with the flag removal in the same change.
- A helper in
ci/(or an ops command) prints the-fsyntax-onlyconversion findings from the Tier 2 compdb grouped by directory, so any worker can produce the measurement table in minutes; the issue records its usage. - One full CI run for the whole class, plus the merge-queue run, is the total cost — demonstrated on the re-scoped build(cmake): Drop the conversion pins (-Wno-conversion, -Wno-sign-conversion, -Wno-float-conversion) #2625 PR.
- The gates are not weakened: the
-Werrorregression check still fails on a new implicit conversion, and the final archive/tier2-linuxevidence is unchanged.
Not claimed
I did not measure the conversion-warning volume (#2625 says to re-measure). The zccache flag-keying statement above is from #2625's plan comment, not re-verified here. The CI durations are from the runs of #2643 and the ci.yml history on 2026-10-27.
Activity
zackees commentedon Oct 27, 2026
Claiming: investigation — I am the filer, so this is a resume rather than a takeover; nothing is assigned and no branch exists for it (
git ls-remote --heads origin | grep -i warningis empty).What I will deliver, in this order:
ci/warning_findings.py+ci/test_warning_findings.py: the acceptance-criteria helper. Given a Tier 2 build tree (or an exportedcompile_commands.json), it replays only the affected TUs with the chosen-Wno-*dropped plus-fsyntax-only, and prints the findings grouped by directory (and--jsonfor a PR table).docs/rust-port/coordination.md(this repo); theWORKFLOW.mdhalf lives inobs-rust/.github, so it is a second, separate PR.Out of this claim: item 5 (scoping PR CI for flag-only C changes) changes the gate and waits on the maintainer; #2623/#2624/#2625/#2626 batching is a coordinator call, not a worker call.
First PR (items 1 and 2 in this repo): within the hour.
zackees commentedon Oct 27, 2026
/ready
zackees commentedon Oct 27, 2026
Claiming:
ci/warning_findings.py+ the multi-directory policy indocs/rust-port/coordination.md(acceptance items 1 and 2 of this issue; theWORKFLOW.mdhalf is a separate PR inobs-rust/.github).Plan:
ci/test_warning_findings.py— it drives the module against a stub compiler over a fakecompile_commands.json, and fails on master because the module does not exist.-Wno-*dropped and-cswapped for-fsyntax-only, then prints the findings grouped by directory (a table by default,--jsonfor a PR body). No CMake change, no cache: it reuses the Tier 2 build tree'sninja -t compdboutput, so the measurement costs minutes instead of a 35-minute CI run.coordination.md(mechanical warning work is one PR per warning class, any number of directories, with a findings table in the body), and the "one PR per C file or unit" line made explicit about the exception.Item 3 of the acceptance criteria (re-scoping #2625) is an issue edit; I will do it after the PR is up so the issue text can point at the merged helper.
test: pin the warning-findings helper the ratchet work needs (#2689)
ci: One Python call measures a warning class from the Tier 2 compdb (#…
docs: one PR per warning class, in any number of directories (#2689)
zackees commentedon Oct 27, 2026
Part 1 and 2 are up as #2698 (ready, not draft): RED
c63a13e04(8 errors, module missing) → GREEN379524300(ci/warning_findings.py, 8 tests OK,./lintok) → docs629eb95de(the §4 policy, and §2's claim line naming the exception).WORKFLOW.mdlives inobs-rust/.github, so that half is a separate PR; it is linked here when it is open. Re-scoping #2625 follows this merge so the text can point at the merged helper.zackees commentedon Oct 27, 2026
Landed as #2698 (merged
d9be0446, CI Gate ✅ green):ci/warning_findings.py+ci/test_warning_findings.py(#!/usr/bin/env -S uv run --script, stdlib only) and the §4 policy indocs/rust-port/coordination.md.Still open on this issue, and who holds it:
WORKFLOW.md(definition of Ready,obs-rust/.github) — a separate repository and PR, not started.ci: One Python call measures a warning class from the Tier 2 compdb (o…