Repository navigation
rust: Port public output pause-state queries (#4054) - #4059
Conversation
daade5f to
5c4a50c
Compare
Pull request was converted to draft
|
Temporarily returning to draft while obs-studio5 resolves the shared registration conflict after #4042 merged. The pause-query implementation and frozen tests are unchanged; upstream service entries are preserved. Local validation of the combined tree is running before the pinned fixup push and final handoff. |
5c4a50c to
0cdd67b
Compare
|
Handed off to the coordinator at verified head 0cdd67b. Auto-merge is armed with that head pinned, the PR is ready, and the final body records RED/GREEN, native and utility suites, differential mutation, two-library Tier 2, sanitizer, strict compiler and full lint evidence. The #4042 integration conflict is resolved; the final rebase over #4052/#4053 preserved all five patches and passed metadata/registration replay. Returning obs-studio5 to detached master as assigned; hosted validation and merge-queue observation remain with the pool manager. |
… probes (#4191) Fixes #4168. Since #4059 every master Fast Gate fails in the Windows cross build of the C oracle: output_pause_queries.c defines pthread_mutex_lock and pthread_mutex_unlock as its lock probes, and the mingw build already defines both on the command line (-Dpthread_mutex_lock= oracle_pthread_mutex_lock, the w32-pthreads renaming), so -Werror stops at "'pthread_mutex_lock' redefined". Save the two macros with #pragma push_macro, undefine them for the probes, and restore them with #pragma pop_macro after the include. The probes work on every host, and the rest of the file keeps the renaming. Co-authored-by: Claude Opus 5.5 <[email protected]>
…nputs change (#4204) (#4205) * test(ci): the PR path builds the C oracle for windows-gnu when its inputs change (RED) #4059 broke the oracle's windows-gnu build (#4168) and passed PR and merge-queue CI: --test-diff runs Linux tests only, and the windows-gnu --no-run of the test binaries, where the oracle gets its pthread renames, runs only in the full rust-test lane on master. The new cases expect --test-diff to build obs-c-oracle for windows-gnu when the diff touches an input of its C build, and only on a Linux host. Co-Authored-By: Claude Opus 5.5 <[email protected]> * fix(ci): build the C oracle for windows-gnu on the PR path when its inputs change (GREEN) --test-diff, the PR and merge-queue Fast Gate's test step, now also runs `soldr cargo test -p obs-c-oracle --no-run --target x86_64-pc-windows-gnu` when the diff touches an input of the oracle's C build (rust/obs-c-oracle/, libobs/, deps/, plugins/obs-nvenc/, the Wayland keysyms the build reads), on a Linux host. That build is the only one where the oracle gets its pthread renames (GNU_ORACLE_RENAMES), so a break like #4168 now stops the PR instead of master. The windows-gnu step of the full lane moves into windows_gnu_no_run(), which both use. Co-Authored-By: Claude Opus 5.5 <[email protected]> --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Fixes #4054.
Port the public output paused-state and pause-offset queries to obs-output. Preserve the atomic paused load, the pause mutex around the offset read, null defaults and diagnostics, and full-width timestamps. Private layouts and pthread operations stay behind C adapters. There are no intentional behavior differences or protocol changes; Tier 4 does not apply.
The commit sequence keeps C characterization first, verbatim extraction second, RED 01a1f70 third, and GREEN 72b8e45 fourth. All three safe-core tests failed at the RED stubs. The new C characterization remains unchanged after its first commit.
Validation covers eight focused Rust cases, exact differential comparisons with persistence disabled, real-header size/alignment/field-address checks, and a deterministic probe proving the offset read occurs between matching lock and unlock. Flipping one returned offset bit killed differential parity. The full native-build module passed 255 cases; the utility suite passed 914 cases plus documentation tests. All five requested metadata checks and the full lint gate passed. One primary local reviewer reported clean, including integration conflict resolution.
The warm-volume Tier 2 replay passed the new characterization and two unchanged output tests one hundred times each against both hybrid and C-reference libraries. Loader output proved the selected library in each mode, and all 1,767 exports matched. GCC and Clang compiled both the oracle and frozen characterization with strict format warnings. Focused ASan/UBSan passed the extracted C unit and frozen characterization with logging support; an instrumented characterization runner also passed against both actual libraries.
Test cost: all eight cases together took at most 0.066 seconds with peak RSS 18,728 KiB over 25 reduced-parity runs. The safe synchronization case owns one worker thread; the other Rust cases own none. Tests use the existing core-state binary.
Rebased after #4042 landed, preserving its implementation and shared registration entries. The pause-query implementation and test files remained byte-identical; integration conflict resolutions were confined to source-group includes, native support ordering and its Python expectation. All checks above were repeated on that combined tree. A final clean rebase over the unrelated frontend and native-registration changes in #4052 and #4053 preserved all five patches exactly; metadata checks, fourteen Rust-static contracts, the pause-query registration and the local merge-tree check passed afterward. Hosted PR and merge-queue CI remain the merge gate; no local attestation is claimed.