Repository navigation
libobs: extract hotkey background trigger query - #5103
Merged
Merged
Conversation
Refs #5086. The characterization passes against the unchanged C body with hybrid and C-reference libobs; exported symbols match. RED: the registered extraction source does not yet exist, so CMake rejects test_hotkey_background_trigger.
Refs #5086. Move the body verbatim into its own C file, reuse obs_hotkey_seam_lock/unlock with scoped aliases, and retain the getter in every whole-hotkey-source fixture and its independent inventory. GREEN: focused characterization passes with hybrid and C-reference libobs and identical exported symbols; all 296 native_build tests and 10 build-group checks pass. Ci-Attestation: {"at":1795012940,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":194,"stamp":"1189cb5c5a555658960d4a636f437a24","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012940,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":194,"stamp":"af0c49c71e8ceb61db53b6c9cf1c408e","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012940,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":194,"stamp":"8cd3a5474aaabed523a52fa772770048","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012940,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":194,"stamp":"6f41da7bcc5c7ea527a6bd41c2cdee80","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012743,"gate":"general/all/client-lint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"d760f941bd68248324f9600fc45448de","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012940,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":194,"stamp":"bcaf17d6768fa67b7f8183326a2e11cb","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012745,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"e5eac52a15cd791dce1ea4b13f2d768d","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012745,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"2c2c35eb118ce7494f15aa8756f8a20a","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"6d8ef4acb67d1e3910dfc07b255063dd","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"8146d68d639bc5e0b14604083f73103c","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"a1528e2f28be12df28183bf0b24bfc3d","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"8291cdfd3294b9bcfd04641afdf8529e","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"9c86ca2884e40ba2b1405a31e8723e5d","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"73f60448368c7255baca9130b9c35688","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"5cf7ac339f711122259dba60304b2e2a","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012744,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"cd79650919d6c8036ec1825611c94ddb","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012743,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"79e838afd024418f6d85a1f9a8c8a45b","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795012743,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ce44a628937f18d403d446271c58728868fccf9c3464238c7d5f746cd9e06ebb","lane":"client-lint","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":211,"stamp":"13eb43f98f92860c903792d193f568f9","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Ci-Attestation: {"at":1795013576,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"93e57c9d8775a8be40ba35a053a6fa68fd1b137c9e8ce78e11ed3d3ad496fec4","lane":"client-test-x86_64-unknown-linux-gnu","parents":["732120db67c576449c88cd77057ec7dac473433d"],"secs":635,"stamp":"621c025ce9e24dca26cf873aae30fbbd","tree":"f35931527370ca36b4487803c7a15c79e6d30b74","v":1,"via":"run"} Client-Checks: {"checks":{"base":"7158f898a2545025e757694e2bdc33def9968bdb","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/obs-hotkey-background-trigger.c.h","libobs/obs-hotkey.c.h","rust/obs-build/tests/native/registration/headless_characterizations_expected.json","rust/obs-build/tests/native/registration/portal_output_expected.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_enum.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_trigger.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_binding_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_getters_characterization.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_load.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_pair_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_portal_shortcuts.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_wayland_hotkeys.json","test/cmocka/build/test-graph.json","test/cmocka/test_hotkey_background_trigger.c","test/cmocka/tests.d/test_hotkey_background_trigger.cmake"],"head":"a2ba51b7816e2b8958f8d9935d30edea3c393bd6","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"74eb323da9b8a669c192d1ab7d7373d141fc6bf122ba2ad83f159ed693e6008d","tree":"f35931527370ca36b4487803c7a15c79e6d30b74"}}
zackees
enabled auto-merge
November 18, 2026 14:54
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 18, 2026
This was referenced Nov 18, 2026
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.
The background-trigger getter was embedded in the main hotkey source, preventing a separate Rust replacement. This PR characterizes its current behavior and moves its body verbatim to
libobs/obs-hotkey-background-trigger.c.h. It reuses the existing hotkey lock seams, keeps dispatch under the lock, and undefines the scoped helper aliases at file end.The new C fixture pins no-core and absent-callback results, exact combo and wake_data forwarding, failed-callback allocation cleanup, and ownership of successful nonempty, empty and NULL results. The characterization first passed against the unchanged original C. RED commit
732120db6then registered the missing extraction source: a small CMake replay of the characterization target's graph source list rejected the target because that source did not exist. The following GREEN commit supplies the behavior-neutral extraction. All eight existing whole-hotkey-source fixtures also retain the extracted getter, and the native graph and independent inventories agree.Validation passed for the focused C-source characterization with both hybrid and C-reference libobs before and after extraction, with identical dynamic symbol lists. The full
native_build::module passed all 296 tests, build-group checks passed all 10 tests, and Windows MSVC linking passed for all eight workspace category binaries. The focused C test took about 0.1 seconds per library and starts no threads. Full lint evidence is recorded below.This is a C-only prerequisite. Rust Tier 1 mirrors, Tier 3 differential/mutation coverage, and real-adapter linkage belong to the separate Rust swap follow-up. Tier 4 does not apply to this non-protocol getter. There is no user-visible behavior change.
Refs #5086.
Full lint passed once with
SOLDR_PORCELAIN=0 ./lint(421.6 seconds). Backpressure admitted publication with exit 0 and headroom 7../pushcompleted both client proof lanes: lint/Clippy/Dylint for all six supported targets, self-tests/validators, 9,024 workspace tests (six pre-existing skips), 920 Utilities feature tests, doctests, and Windows GNU test linking. The final signed head is123003d7914eae982e79200bc906833b546d1311.