Skip to content

build: consolidate Rust tests into eight category executables - #1398

Merged
zackees merged 10 commits into
masterfrom
infra/test-category-consolidation
Oct 18, 2026
Merged

zackees merged 10 commits into
masterfrom
infra/test-category-consolidation

Conversation

@zackees

@zackees zackees commented Oct 18, 2026 •

Copy link
Copy Markdown
Member

Compiling the full Rust suite previously produced 40 default test executables (42 including opt-in targets). Consolidate coverage into eight category harnesses, including the new native-build contracts, and remove the redundant per-crate unit harnesses. Thread-safe cases remain parallel; profiler cases retain a shared lock, and process-global state and C pipe-oracle hazards re-execute exact tests in the same binary.

The lint gate now counts unit and integration targets, follows implicit workspace path dependencies, rejects missing/duplicate/extra categories, and cross-checks Cargo metadata. CI dependency scoping still selects the owning category for borrowed suites. Preserve the C++ OBS WebSocket plugin as a compatibility check and mark its older port proposal superseded.

Validation:

  • Full ./lint passed, including Clippy and Dylint; independent review is clean after its two findings were fixed.
  • soldr cargo test --workspace --locked: 1,280 test cases and four documentation tests passed; one existing ignored case.
  • Utilities also pass with 32 test threads (528 cases).
  • Linux validation container: original WHIP C tests pass; all 35 bundled-native application cases pass under Xvfb; Clippy passes for both native feature configurations.
  • Test-only rebuilds with warm dependencies, two compiler jobs and two trials per variant: median wall time 19.47s → 15.18s (about 22% faster), CPU about 23% lower. A single fresh eight-job build was essentially flat at about 18s each. No whole-CI speed claim.

Raw measurements and scope: test compilation evidence.

RED: 9e8655b adds the category guard, which rejects the old target layout. GREEN: ab0fb92 and fca1f1d consolidate the suites and handle subprocess/implicit-member hazards. No existing C tests, public C headers, or WebSocket submodule contents/pointer are changed.

Native CI follow-up

Current master added exhaustive rounding coverage and an sNaN edge case while this work was running. Preserve both private rounding tests in the graphics category through the production safe API. Native CI exposed Windows/macOS NaN quieting and macOS compiler fusion of scalar sin/cos; keep exact C comparisons and fix Rust's host boundary. Separate non-inlined safe scalar helpers prevent the precision-changing fusion, and matrix conversion shares C's quaternion delegation. Fixed native failing inputs are retained as regression cases. No custom ABI or added unsafe code remains.

Linux graphics: 203 cases pass, including all 2^32 rounding patterns. Full lint/Dylint and the independent follow-up review pass. PR run 39106144922 passed Rust tests, cross lint, and unchanged C compatibility tests against both implementations on Linux, macOS and Windows.

The first merge-queue run exposed a Windows file-replacement parity failure after the standalone PR passed. File-backed C stdio handles can be inherited by unrelated child spawns. The existing 192-case property now re-execs before opening files; its name, generators and assertions remain unchanged. Best-effort OS-error capture precedes Rust's save call. Utility528cases pass at32threads, full lint/Dylint pass, and review is clean. PR run39108133403 passed every required check after this final follow-up, including Windows508utility cases, macOS Rust tests, cross lint, and C compatibility tests against both implementations on all three platforms. Merge-queue confirmation remains pending.

The requested OBS release also includes the separately published dependency checksum update in merged #1399; no packaging files are changed here.

Fixes #1397

@zackees
zackees enabled auto-merge October 18, 2026 06:29
@zackees
zackees force-pushed the infra/test-category-consolidation branch from 6884d2d to d4bc681 Compare October 18, 2026 06:42
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 18, 2026
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to invalid changes in the merge commit Oct 18, 2026
@zackees
zackees enabled auto-merge October 18, 2026 07:34
@zackees
zackees added this pull request to the merge queue Oct 18, 2026
Merged via the queue into master with commit ea5530f Oct 18, 2026
25 checks passed
@zackees
zackees deleted the infra/test-category-consolidation branch October 26, 2026 15:45
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.

build: consolidate Rust tests into one executable per category

1 participant