You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
test: obs-build graph contract pins the core cmocka test count, so concurrent test PRs eject each other #1908
rust/obs-build/tests/native.rs (native_test_graph_replaces_legacy_utility_definitions) asserts ("core", N): the exact number of core cmocka tests in test/cmocka/build/test-graph.json. Every PR that adds a cmocka test bumps N. Two open PRs that each add one both set N+1, and whichever merges second fails the contract in the merge queue.
Seen on 2026-10-23: #1879 and #1883 each ejected #1877 (#1891). #1875 and #1901 both set 142 when 143 was needed, which #1904's Fast Gate caught in run 39912871864 (left 143, right 142).
The number doesn't protect anything the rest of the test misses. The test exists to check that the graph partitions into suites (core, graphics, vlc, webrtc, qt), with one target per test and each test labelled with its suite.
Fix: keep the per-suite structural checks and the small suite counts, which change rarely and on purpose. Replace the core count with two checks: the suite partitions together cover every test and target of the graph, and core is non-empty. Then adding a core test needs no edit to obs-build, and concurrent test PRs no longer conflict.
Claiming: drop the pinned core count in favor of a coverage check, with local RED evidence (a graph with one extra core test fails today) and GREEN. PR today.
Activity
zackees commentedon Oct 23, 2026
Claiming: drop the pinned core count in favor of a coverage check, with local RED evidence (a graph with one extra core test fails today) and GREEN. PR today.
test: rustfmt the graph coverage check (#1908)
test: cover the native test graph by suite instead of pinning the cor…
test: rustfmt the graph coverage check (#1908)
test: stop pinning the core cmocka test count in the obs-build graph …