Repository navigation
rust: Port public source audio activity query (#4018) - #4019
Merged
Merged
Conversation
zackees
force-pushed
the
port/source-audio-active
branch
from
November 8, 2026 13:18
5779022 to
1ed1192
Compare
zackees
marked this pull request as ready for review
November 8, 2026 13:19
zackees
enabled auto-merge
November 8, 2026 13:19
Member
Author
|
Handed off to the coordinator. Verified GREEN head 1ed1192 is pushed, the final validation evidence is in the description, and head-pinned auto-merge is enabled. The pool assignment requests no waiting on hosted CI. |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 8, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 8, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 8, 2026
zackees
force-pushed
the
port/source-audio-active
branch
from
November 8, 2026 15:09
1ed1192 to
ffc714f
Compare
zackees
enabled auto-merge
November 8, 2026 15:09
zackees
force-pushed
the
port/source-audio-active
branch
from
November 8, 2026 15:37
ffc714f to
6db3f7f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ports the public source audio activity query to Rust, preserving its sequentially consistent atomic load, NULL default, exact debug diagnostic, and lack of source mutation. Rust checks NULL before the private C field-address accessor. The adapter uses the real source layout, and independent per-port native support supplies standalone Rust-static consumers.
Fixes #4018, a Phase 6 child of #444. No intentional behavior differences. Tier 4 does not apply to this local getter. Existing C tests, public headers, and the WebSocket plugin are unchanged.
Characterization commit a365f4d passed against actual hybrid libobs and the C reference. Extraction commit 0533576 moves the C body verbatim and independently builds and passes the same tests. RED commit 4252930 fails both Tier 1 tests at the stub. GREEN commit 1ed1192 passes both Tier 1 tests and all four differential tests. Inverting the Rust atomic read made differential characterization fail; restoring it returned the suite to GREEN. Proptest persistence is disabled.
Validation passed: unchanged C characterization against both libraries, with loader proof and identical dynamic exports; the standalone Rust-static monitoring test; real-header atomic size and alignment; GCC and Clang strict format-warning checks; focused GCC ASan/UBSan on the new C test and extracted query and adapter; the entire native-build test module; all 914 utilities tests and both documentation tests; adapter discovery, registration-entry, native portability, graph sorting, build-group, port metadata and Rust ledger checks; and full serial lint. The utilities suite intentionally emits diagnostics in negative-path tests and exits successfully with no failed tests.
Rebased onto current master before the final push. Range comparison confirms all four commits retain identical patches.
Test cost: across 25 reduced-parity module runs, longest wall time 0.020 seconds and peak RSS 16.1 MiB. No own threads; the NULL-log test uses one isolated child process. No new Rust test executable.