Skip to content

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

Closed

Description

@zackees

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.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    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.

  2. added
    claimed
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions