Skip to content

rust: Port public source push-to-mute and push-to-talk queries (#4003) - #4006

Merged
zackees merged 5 commits into
masterfrom
port/source-push-queries
Nov 8, 2026
Merged

zackees merged 5 commits into
masterfrom
port/source-push-queries

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Ports the four public source push-to-mute and push-to-talk enabled/delay queries to obs-source, preserving their audio-mutex locking, independent stored values, NULL defaults and diagnostic text. Fixes #4003; Phase 6 parent #444. No intentional behavior differences or protocol changes.

C characterization 27c67e8 and verbatim extraction 3a51315 precede RED 094b584, where both Tier 1 cases fail at unimplemented stubs. GREEN fb897b2 implements the safe core and thin FFI with a NULL check before forming private field addresses. The oracle discovers its adapter automatically. Independent native registration supplies the adapter and required dependencies to all 23 standalone source consumers.

The six focused cases cover the C characterization, lock/read/unlock order, real-header size, alignment and every view offset, independent full-width delays and flags, unchanged source state, historical NULL logs and generated differential parity. Property persistence is disabled. Independently inverting each of the four getters makes both deterministic and generated differential tests fail. Tier 4 does not apply to these local queries.

Both original C-only stages passed three actual-library runs per mode. GREEN passes all 24 selected unchanged C and standalone executables three times against each library; loader inspection proves the intended paths and both libraries export the same 1,767 dynamic symbols. GCC and Clang 21 pass strict nonliteral-format checks for the getters, adapter, characterization and oracle. Focused ASan/UBSan passes against both libraries, including runs with the extracted C getters instrumented. The shared libraries themselves were not rebuilt with sanitizers.

The complete native-build module passes 222 tests plus two isolated child checks. The complete obs-util suite passes 914 tests and two documentation tests. Oracle discovery, independent registration, native portability, graph sorting, build groups and Rust inventory checks pass. Full serial lint exits successfully. Independent pre-push review is clean. Rebased onto current master; range-diff preserves all four patches exactly, and the focused suite plus discovery, registration, portability, graph and inventory checks pass again on the rebased head.

Test cost: two focused modules measured separately over 25 reduced-parity runs each; longest run 0.03 seconds, peak RSS 16,712 KiB, no test-owned threads. Logging is isolated in a child of the existing Core state executable. No additional Rust test executable, existing C test edits, public-header changes, WebSocket plugin changes or workflow additions.

@zackees
zackees force-pushed the port/source-push-queries branch from 8e279be to fb897b2 Compare November 8, 2026 08:32
@zackees
zackees marked this pull request as ready for review November 8, 2026 08:33
@zackees
zackees enabled auto-merge November 8, 2026 08:33
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees force-pushed the port/source-push-queries branch from fb897b2 to c0b4d08 Compare November 8, 2026 12:51
@zackees
zackees enabled auto-merge November 8, 2026 12:51
@zackees

zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Rebased fb897b2 onto origin/master (1c38e6d), preserving both identity-getter and push-query entries in shared registrations and sorted lists. New head: c0b4d08. Validation passed: formatting; all 232 native_build tests; obs-source coverage in obs-tests-core (1,140 passed, five ignored); native registration, oracle field discovery, test graph sorting, Rust README checks; and full serial lint with SOLDR_PORCELAIN=0 (exit 0). Auto-merge is enabled with the head pinned. Handed off to the coordinator.

@zackees
zackees force-pushed the port/source-push-queries branch from c0b4d08 to c94c14b Compare November 8, 2026 14:19
@zackees

zackees commented Nov 8, 2026

Copy link
Copy Markdown
Member Author

Rebased onto origin/master 2d6ae72, including #4021 and #4017; replaced head c0b4d08 with c94c14b. The original four patches are unchanged by range-diff. Full lint caught four newer standalone source consumers missing the push-query field adapter; added their support registration and graph sources, preserving all entries and canonical ordering. Formatting, all 240 native_build tests, all six focused push-query tests, native registration, oracle discovery, graph sorting, Rust README inventory, native portability, and the complete serial SOLDR_PORCELAIN=0 ./lint pass (exit 0). Pushed with an explicit lease on the old head, then confirmed auto-merge enabled for the new head. Awaiting PR checks and queue admission.

@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 8, 2026
Merged via the queue into master with commit 1814a66 Nov 8, 2026
40 checks passed
@zackees
zackees deleted the port/source-push-queries branch November 8, 2026 14:52
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 8, 2026
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.

rust: Port source push-to-mute and push-to-talk queries to obs-source

1 participant