Skip to content

test: stop pinning the core cmocka test count in the obs-build graph contract (#1908) - #1910

Merged
zackees merged 2 commits into
masterfrom
fix/1908-graph-core-count
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/1908-graph-core-count

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Fixes #1908.

native_test_graph_replaces_legacy_utility_definitions asserted the exact number of core cmocka tests, so two open PRs that each add a test both bumped the same number, and the second one failed in the merge queue (#1891, #1877; #1901 needed 143 after #1875 took 142).

The core count is gone. The structural checks stay for every suite: a target per test, every test labelled with its suite, and the small suites (graphics 12, vlc 6, webrtc 2, qt 1) still pinned. A new check requires that the suites cover every test and target of the graph between them, and that each suite is non-empty.

Local evidence (focused test change, per coordination.md §4):

  • RED, before: with one extra core test added to test-graph.json, as any new cmocka test PR does, the contract failed with left: 143, right: 142.
  • GREEN, after: the same graph passes.
  • The new assertion bites: a test whose suite is none of the five fails with tests outside every suite (left: 163, right: 164).
  • The real graph passes and ./lint is clean.

After this merges, #1901 drops its count bump.

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.

test: obs-build graph contract pins the core cmocka test count, so concurrent test PRs eject each other

1 participant