Skip to content

test: characterize obs_output_audio (Refs #5655) - #5658

Draft
zackees wants to merge 3 commits into
masterfrom
test/5655-output-audio
Draft

zackees wants to merge 3 commits into
masterfrom
test/5655-output-audio

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5655

Adds direct actual-library characterization of obs_output_audio, which the existing output-slot step tests only model. The portable fixture checks the NULL diagnostic, raw output pointer routing (including absent media), all 64 encoder occupancy masks under three flag combinations, and the first occupied encoder returning NULL without falling through to later media. It compares the full output state before and after each lookup and checks encoder state across the mask matrix. Both audio handles are real audio outputs and are closed in teardown; the test does not wait for frames or samples.

An initial fixture run reached all four passing API assertions but crashed the audio thread because OBS core was not started. The separate setup fix starts OBS before opening the audio handles, closes them before shutdown, and uses the existing Linux-only optional xvfb-run prefix. No production change was made for this fixture failure.

The fixture is registered once in the canonical test graph, including explicit SIMDe::SIMDe for Darwin. This PR contains no Rust, production behavior changes, public header changes or edits to existing C tests. This is the C characterization prerequisite, so Rust Tier 1/3 RED/GREEN belongs to the later swap, and Tier 4 does not apply to this local getter. Stacked #5660 extracts the C function verbatim.

Validation: the new four-case fixture plus unchanged output-slot and preferred-size fixtures passed 25 repetitions each against both C-reference and hybrid libobs on the characterization-only branch, and again after extraction. ldd proved the chosen backend for the new fixture, and each pass found identical sets of 1,769 exported symbols. Full SOLDR_PORCELAIN=0 ./lint passed (184.4 s); the later lifecycle/display deltas were independently reviewed, formatted, and their include/Windows-diagnostic/sorted-graph checks passed. Independent single-reviewer clud-review is CLEAN for both deliverables and those follow-ups. ./push passed clippy/Dylint for all six targets (48.7 s parent, 20.1 s extraction), but client-checks could not find xmllint, so ordinary PR CI remains required. Serialized local cross validation passed: the standard eight Windows Rust category binaries linked (174.9 s); Windows MSVC x86_64 and Darwin arm64 each linked hybrid libobs plus all 83 normal Rust-static fixtures and the explicitly added shared test_output_audio (85 targets each; explicit alias exit 0; overall exit 0). The new fixture link appears in both alias logs. Artifact local-test-LbW0Bk.log. No native Windows/macOS runtime execution is claimed.

HOLD: keep DRAFT and auto-merge OFF while backpressure is closed, until claim acceptance is confirmed and graph-changing promotions can be serialized. The land-drafts worker owns promotion after handoff.

@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 25, 2026
@zackees zackees changed the title test: supply Linux display for audio core startup (Refs #5655) test: characterize obs_output_audio (Refs #5655) Nov 25, 2026
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 25, 2026
@zackees
zackees force-pushed the test/5655-output-audio branch from daacb8c to 1c0676c Compare November 26, 2026 04:14
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Stalled in obs-rust Multiview Nov 29, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Stalled to Needs fix in obs-rust Multiview Dec 4, 2026
Ci-Attestation: {"at":1796412166,"gate":"general/all/client-lint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"024dd0ebe097b4b9ef1943e54732ccba","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"15d95ca4b55dee4a0de8f84f87ae7e6a","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"5ec578257b0277bdabd466096f63d7e5","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"cdf1a3fc8d527e10fc1bd6f8eafe88b0","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"f85070daaee4e106ed16d2b637e232c0","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412166,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"4b231db7db620fb3e0baa3e11f1e6c70","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412166,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"cf82bff668c9fd8c0996e26e48bc5623","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"805b178001ef9e476cb8ac5275cc93fd","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"f0bc677bf1575e0fe95a93c749a44f53","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412166,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"d417468eedd1c3aeda5ebe1f6a053e0a","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412167,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"46abc1ec5cc5c31439883519e8c5a964","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412166,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"6dad2176fccacb5f2c4b4625b636fabd","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
Ci-Attestation: {"at":1796412166,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"492f5c556f8ea7db11bac29e8871b302ef05d0e86410e3c87283d14b2f342a60","lane":"client-lint","parents":["9fdcb636a5b1944dd62016fd6c3b0f89276cda2c"],"secs":31,"stamp":"e7899522c898421e7f98398dd567351c","tree":"bdb72f95c5a093f9eb22df5fc321294d64e0639a","v":1,"via":"run"}
@zackees
zackees force-pushed the test/5655-output-audio branch from 1c0676c to 563eae0 Compare December 4, 2026 19:22

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs fix

Development

Successfully merging this pull request may close these issues.

1 participant