Repository navigation
rust: Port public source push-to-mute and push-to-talk queries (#4003) - #4006
Conversation
8e279be to
fb897b2
Compare
fb897b2 to
c0b4d08
Compare
|
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. |
c0b4d08 to
c94c14b
Compare
|
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. |
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.