Skip to content

ci: run obs-build tests when test/cmocka changes - #1892

Merged
zackees merged 2 commits into
masterfrom
fix/cmocka-graph-scope
Oct 23, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/cmocka-graph-scope

Conversation

@zackees

@zackees zackees commented Oct 23, 2026

Copy link
Copy Markdown
Member

Fixes #1891.

ci/rust_scope.py selected no Rust tests for test/cmocka/, so PRs adding cmocka targets (#1879, #1883) never ran obs-build's native test graph contract, which counts those targets. Master was left failing it, and #1877 was ejected from the merge queue twice. test/cmocka/ now selects obs-build and its dependents (obs-studio-rust, which hosts the contract in obs-tests-app).

RED: ci/test_rust_scope.py test_native_test_graph_inputs_test_obs_build failed with ('skip', []). GREEN: 10 tests pass; ./lint passes. Focused CI fix: local RED evidence, RED and GREEN commits pushed together.

The current count mismatch on master (141 core targets, expected 140) is fixed in #1877, which touches rust/obs-build and so runs the contract.

The native test graph contract in obs-build counts test/cmocka targets, but
rust_scope selected nothing for test/cmocka/, so #1879 and #1883 merged
graph additions that left master failing the contract.
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit be97aad Oct 23, 2026
30 checks passed
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Oct 23, 2026
…rust#1883 (obs-rust#1896)

native_test_graph_replaces_legacy_utility_definitions expects 139 core
tests, but master has 141: obs-rust#1879 (test_qsv_probe) and obs-rust#1883 each added
one, and PR CI did not run this obs-build test for test/cmocka-only
changes (obs-rust#1891, fixed by obs-rust#1892). Master and every merge group running
the Fast Gate test-diff lane fail with left: 141, right: 139.
@zackees
zackees deleted the fix/cmocka-graph-scope branch October 26, 2026 15:44
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.

ci: changes to test/cmocka skip the obs-build native test graph contract

1 participant