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: Consolidate Rust integration tests into category binaries; lint a cap on test targets #968
Every rust/*/tests/*.rs file is its own test executable: 154 files across 11 crates (obs-util 73, obs-graphics 32, obs-media-io 25, obs-codec 9, the rest 1–4). Each target builds and links all of them. On the cross lane that's about 60 s per target, and the same cost is paid in Linux tests, native macOS/Windows tests and the local gate.
Change
Consolidate: move each crate's tests/*.rs into category binaries tests/<category>/main.rs (mod per old file), at most 8 per crate, grouped by module (obs-util: threading, pipe, platform, config, strings/utf8, containers, serializer, parity, …). Pure moves: test bodies don't change, and every test still runs (same test count before and after).
Cap lint:ci/test_binary_cap.py (wired into ./lint) counts the integration-test targets Cargo would build per crate (top-level tests/*.rs plus tests/*/main.rs plus explicit [[test]]). It fails over 8 per crate, or over a workspace total cap (the post-consolidation count), with ci/test_binary_cap.py --report.
Acceptance
soldr cargo test --workspace passes with the same number of tests as before.
Test executables per target drop from ~154 to ≤ ~22.
RED: the cap lint fails on master; GREEN: it passes after consolidation.
Claim bot: claimed by @zackees. It expires after 48 h (8 h on critical issues) without a progress comment here or a push, comment or review on a linked PR.
Activity
zackees commentedon Oct 16, 2026
Claiming: #968
github-actions commentedon Oct 16, 2026
Claim bot: claimed by @zackees. It expires after 48 h (8 h on
criticalissues) without a progress comment here or a push, comment or review on a linked PR.test: Group Rust integration tests into category binaries (GREEN, Fixes
ci: Cap integration-test binaries per crate (RED, Refs #968)
test: Group Rust integration tests into category binaries (GREEN, Fixes
test: Group obs-gpu-status's newer tests into its category binary (#968)
test: Profiler test modules must share one lock (RED, #968)
test: Serialize the profiler tests on one shared lock (GREEN, #968)
ci: Cap integration-test binaries per crate (RED, Refs #968)
test: Group Rust integration tests into category binaries (GREEN, Fixes
test: Group obs-gpu-status's newer tests into its category binary (#968)
test: Profiler test modules must share one lock (RED, #968)
test: Serialize the profiler tests on one shared lock (GREEN, #968)
ci: Count obs-preflight's test binary in the workspace cap (#968)
ci: Cap integration-test binaries per crate (RED, Refs #968)
test: Group Rust integration tests into category binaries (GREEN, Fixes
test: Group obs-gpu-status's newer tests into its category binary (#968)
test: Profiler test modules must share one lock (RED, #968)
test: Serialize the profiler tests on one shared lock (GREEN, #968)
ci: Count obs-preflight's test binary in the workspace cap (#968)
test: Consolidate Rust integration tests into category binaries; cap …