Skip to content

obs-hotkey: swap hotkey background-state query to safe Rust (Refs #5259) - #5371

Merged
rdoupe merged 4 commits into
masterfrom
port/5259-hotkey-background-state
Nov 20, 2026
Merged

rdoupe merged 4 commits into
masterfrom
port/5259-hotkey-background-state

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Refs #5259

obs_hotkeys_get_background_state now comes from obs-hotkey in the hybrid libobs. Safe Rust clears a non-NULL flags output before trying the existing hotkey lock. A failed lock returns OBS_HOTKEYS_BACKGROUND_NATIVE with no field read and no unlock. Otherwise it reads the state and, only for a non-NULL output, the flags under the lock, stores the flags, unlocks once and returns the captured state. Unknown enum values and every flag bit pass through. The mutex and obs->hotkeys.background stay in C behind private adapters (libobs/obs-hotkey-background-state-fields.c.h) that reuse the static lock pair of obs-hotkey.c.h. The original moves to libobs.ported-hotkey-background-state for the C reference, which gives it its lock pair through the existing seam (obs-hotkey-background-state-lock.c.h).

test_hotkey_background_state.c is unchanged and keeps testing the C source. Its HOTKEY_BACKGROUND_STATE_EXTERNAL twin, test_hotkey_background_state_rust, runs the same assertions on the Rust shim, with the real adapters bound to the test's own recording core and lock pair in one unity group (hotkey-background-state-record-support.c). The standalone hotkey fixtures keep compiling the original against their own core, as for the combination background-id swap (#5325).

The twin calls the hidden obs_hotkeys_background_state_request entry (listed in rust-hidden.d; the public name forwards to it), as the hotkey control fixtures do for their exported entries. The first CI run showed why: on macOS the two-level namespace bound the twin's call of the public name to libobs's export, so the recording lock was never taken (locks 0 != 1 at test_hotkey_background_state.c:77). Fixed in 87d24dc.

background_query_parity no longer defines a same-named fake of obs_hotkeys_get_background_state; it drives the real getter on the new oracle fixture.

RED (63c40fd): Tier 1 and Tier 3 against a stub safe query that returns NATIVE without locking.

soldr cargo test -p obs-data --test obs-tests-core -- hotkey::background_state hotkey::background_query
test result: FAILED. 4 passed; 8 failed

GREEN (53d842a, lint formatting in 793482f, macOS twin binding in 87d24dc):

soldr cargo test -p obs-data --test obs-tests-core -- hotkey::background_state hotkey::background_query
test result: ok. 12 passed; 0 failed

soldr cargo test -p obs-studio-rust --test obs-tests-app -- native_build::
test result: ok. 337 passed; 0 failed

./lint: ok

OBS_CTEST_JOBS=10 uv run rust/tools/linux-validate/run.py --repeat 1 --tests 'hotkey|portal|wayland'
libobs exported symbols, C vs Rust: IDENTICAL (1769 symbols)
C reference: 100% tests passed, 0 tests failed out of 1063; repeat 60/60
hybrid:      100% tests passed, 0 tests failed out of 1063; repeat 60/60
(test_hotkey_background_state and test_hotkey_background_state_rust pass on both;
 rerun after 87d24dcaf: 1063/1063 on both, symbols identical)

./push client lanes (lint and host tests) passed; the push is unsigned, so the real PR checks run.

Tiers

  • Tier 1: hotkey::background_state mirrors every assertion of the C test (failed lock with and without output; every declared state and an unknown one, times five flag values, with and without output), plus negative and extreme raw states.
  • Tier 2: unchanged test_hotkey_background_state on both libraries, and the new _rust twin.
  • Tier 3: hotkey::background_state_parity runs the extracted original and the shim on one recording fixture (trace including clear-before-lock and store-before-unlock checks, returned state, output) over every state and flags edge and a proptest, with a real-header layout check and nine mutants: a skipped clear, a read or an unlock after a failed lock, a read or a store after unlock, masked flags, clamped unknown states and a non-NATIVE failure.
  • Tier 4: N/A (no network protocol).

Test cost: with OBS_PARITY_CASES=reduced, longest module 0.02 s (background_state_parity, background_query_parity), peak RSS 21 MB over 20 runs; no threads of their own (background_query_parity re-execs itself once, as before).

No intentional differences.

🤖 Generated with Claude Code

rdoupe and others added 3 commits November 20, 2026 16:28
Tier 1 mirrors every assertion of the unchanged
test_hotkey_background_state.c against the safe query. Tier 3 runs the
extracted original and the shim on one recording fixture through the new
real-named lock, state, flags and unlock adapters
(obs-hotkey-background-state-fields.c.h), with nine mutants.
background_query_parity drops its same-named fake of
obs_hotkeys_get_background_state and drives the real getter on that
fixture instead.

The safe query is a stub that returns NATIVE without locking:

    soldr cargo test -p obs-data --test obs-tests-core -- hotkey::background_state hotkey::background_query
    test result: FAILED. 4 passed; 8 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
obs_hotkeys_get_background_state now comes from obs-hotkey in the hybrid
libobs. Safe Rust clears a non-NULL flags output before trying the
existing hotkey lock; a failed lock returns OBS_HOTKEYS_BACKGROUND_NATIVE
with no field read and no unlock; otherwise it reads the state and, for a
non-NULL output, the flags under the lock, stores the flags, unlocks once
and returns the captured state. Unknown enum values and every flag bit
pass through. The mutex and obs->hotkeys.background stay in C behind
private adapters (obs-hotkey-background-state-fields.c.h) that reuse the
static lock pair of obs-hotkey.c.h. The original moves to
libobs.ported-hotkey-background-state, which gives it its static lock
pair through the existing seam.

The unchanged test_hotkey_background_state keeps testing the C source;
its HOTKEY_BACKGROUND_STATE_EXTERNAL twin test_hotkey_background_state_rust
runs the same assertions on the Rust shim, with the real adapters bound to
the test's own recording core and lock pair in one unity group. The
standalone hotkey fixtures keep compiling the original against their own
core, as for the combination background-id swap.

    soldr cargo test -p obs-data --test obs-tests-core -- hotkey::background_state hotkey::background_query
    test result: ok. 12 passed; 0 failed

    soldr cargo test -p obs-studio-rust --test obs-tests-app -- native_build::
    test result: ok. 337 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795211226,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":95,"stamp":"9d4cda5d784ca14b01846f4363b91ae6","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211226,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":95,"stamp":"2d8299d12a12ccab912710ed967a4b5e","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211226,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":95,"stamp":"bd9be5b5188c47a7d87525fadaa0f441","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211226,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":95,"stamp":"2409d7611eabc03d3bd9abda2a35eb25","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"general/all/client-lint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"8c368edce3e6d6d1f2f10dc3b52aa2f4","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211226,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":95,"stamp":"cb322b27e06d7d7a9f796b9e3a4bb7dd","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"f23ecf0d4a6791ef1349ec397e049b8e","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"a403cf63a3f4316cb0efb602eb4023e9","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"365c4c0fc716c7d6098ebf62fb08b3e0","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"1c453d06b9955ba56063c1f3c239ae67","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"338222d283f85eec6055e790099c585d","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"6a42f0473b3a1170a43f67703a97a872","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"05cfc9fabb0b1cbd26b1bd69fae48aa5","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"53fdf68dfab14cdf7c785b1e23989a2d","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"716b25e266062b0cf26bda74ea68fb16","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"604c332e924d45b1692f73b04bc81c7d","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"943b42b03fe4214dff1006dcd6303907","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211130,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"83f335d183eea0f8329009de9f46f6f225188bb6b036cb033f3c44f06aa79f0f","lane":"client-lint","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":65,"stamp":"e88ec447c9a1fdf14d238936d8afda58","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}
Ci-Attestation: {"at":1795211436,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"72e925408dfdcdced555b0d9081b0f9073de5028164d1ffeef3bf0495ea99559","lane":"client-test-x86_64-unknown-linux-gnu","parents":["53d842a08de6689e93eec8a19be8e5e0113df6b7"],"secs":210,"stamp":"55da3b10288172e757039397452212e9","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"935d60992db2de2ebd4afc783339abc458f0dea2","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.ported-hotkey-background-state+.h.c","libobs/build/ported-source-sets/hotkey-background-state.json","libobs/cmake/rust-exports.d/obs-hotkey-background_state.txt","libobs/obs-hotkey-background-state-fields.c.h","libobs/obs-hotkey-background-state-lock.c.h","libobs/obs-hotkey-background-state.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_hotkey_background_state_swap_is_registered.rs","rust/obs-build/tests/native/registration/rust-static/cases/core-relinked/test_hotkey_background_state_rust.json","rust/obs-build/tests/native/registration/rust_static_entries.rs","rust/obs-c-oracle/oracle/hotkey_background_state.c","rust/obs-hotkey/src/background_state.rs","rust/obs-hotkey/src/ffi/background_query.rs","rust/obs-hotkey/src/ffi/background_state.rs","rust/obs-hotkey/src/ffi/mod.rs","rust/obs-hotkey/src/lib.rs","rust/obs-hotkey/tests/hotkey/background_query_parity.rs","rust/obs-hotkey/tests/hotkey/background_state.rs","rust/obs-hotkey/tests/hotkey/background_state_parity.rs","rust/obs-hotkey/tests/hotkey/main.rs","test/cmocka/build/test-graph.json","test/cmocka/hotkey-background-state-record-support.c"],"head":"9aa08ae2d7966700b1e47b2ec0681c72d5935bf3","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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-GITv2.15.4\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"d753f6377a18607e8eb3701b0718ea7f945cbc9e1df8c8f4825cccb12badb459","tree":"eb31b66c9c879ecea1dfa6e0d74a46410917339a"}}
@rdoupe
rdoupe requested a review from zackees as a code owner November 20, 2026 21:50
@rdoupe rdoupe changed the title style: apply ./lint --fix formatting (Refs #5259) obs-hotkey: swap hotkey background-state query to safe Rust (Refs #5259) Nov 20, 2026
@rdoupe
rdoupe marked this pull request as draft November 20, 2026 21:51
…entry (Refs #5259)

macOS Tier 2 failed test_hotkey_background_state_rust (locks 0 != 1 at
test_hotkey_background_state.c:77): the two-level namespace bound the
twin's call of obs_hotkeys_get_background_state to libobs's export instead
of the Rust static archive and the test's recording adapters. The twin now
calls the hidden obs_hotkeys_background_state_request entry
(rust-hidden.d), as the hotkey control fixtures do for their exported
entries; the public name forwards to it.

    soldr cargo test -p obs-data --test obs-tests-core -- hotkey::background_state hotkey::background_query
    test result: ok. 12 passed; 0 failed

    soldr cargo test -p obs-studio-rust --test obs-tests-app -- native_build::
    test result: ok. 337 passed; 0 failed

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795213369,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":95,"stamp":"e4cb02cc6d8abfa7177ff07ccd827a80","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213369,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":95,"stamp":"7f35c665ebd55348e74db448343c2bcb","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213369,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":95,"stamp":"e651c3c7b4f4c15cea11b9958e94907c","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213369,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":95,"stamp":"2e6c8d219c8bc600617f35e8e9286dbd","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"general/all/client-lint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"51e6f82976666004c59963159e26d607","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213369,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":95,"stamp":"e118d1af8a7c441689714e39519cc572","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"07960f7cee1f34ab9974760f0d50e0e6","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"e86e339b905bfe543f7cee88c39f6bd0","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"bb463bba6c2c57f91664d0b5e39bd051","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"60301a19090d86e494c94937d104e9f2","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"d733f0a4604544a16b7e967684cc6963","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"a56dc8cabe40d1934efa22649b1c7b29","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"4d810a61911aa62afe604098f16bf851","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"1fec6332c8fdcf90817c9a5d555eed74","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"1723205ec42cf25a34f8e205f7ceac2b","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"e4855e3661e440f1ec2e09a14e15552c","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"4f4b747002622952f9ae6c380950641a","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213273,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"964d508b067323168e1dfc1ce86fafa206b8e371772d097b0a4e0cb9736c6a94","lane":"client-lint","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":66,"stamp":"3cd2128ae8d2c2b7f0abb59113de6724","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}
Ci-Attestation: {"at":1795213522,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"1459647b76ae1dc6df11d5697c16720de27eebb66caeea064c0289c1ac1c9c79","lane":"client-test-x86_64-unknown-linux-gnu","parents":["793482f5c7efafebcc6d5fd27aaaa2ebbb987913"],"secs":152,"stamp":"ca49d460029aa40b7ad37c6a75129120","tree":"0bbc4ba6c9368c19912c833035352fc018769270","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"935d60992db2de2ebd4afc783339abc458f0dea2","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.ported-hotkey-background-state+.h.c","libobs/build/ported-source-sets/hotkey-background-state.json","libobs/cmake/rust-exports.d/obs-hotkey-background_state.txt","libobs/cmake/rust-hidden.d/obs-hotkey-background_state.txt","libobs/obs-hotkey-background-state-fields.c.h","libobs/obs-hotkey-background-state-lock.c.h","libobs/obs-hotkey-background-state.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_hotkey_background_state_swap_is_registered.rs","rust/obs-build/tests/native/registration/rust-static/cases/core-relinked/test_hotkey_background_state_rust.json","rust/obs-build/tests/native/registration/rust_static_entries.rs","rust/obs-c-oracle/oracle/hotkey_background_state.c","rust/obs-hotkey/src/background_state.rs","rust/obs-hotkey/src/ffi/background_query.rs","rust/obs-hotkey/src/ffi/background_state.rs","rust/obs-hotkey/src/ffi/mod.rs","rust/obs-hotkey/src/lib.rs","rust/obs-hotkey/tests/hotkey/background_query_parity.rs","rust/obs-hotkey/tests/hotkey/background_state.rs","rust/obs-hotkey/tests/hotkey/background_state_parity.rs","rust/obs-hotkey/tests/hotkey/main.rs","test/cmocka/build/test-graph.json","test/cmocka/hotkey-background-state-record-support.c"],"head":"3448289bba500692a72459ad47a0a5e09d5016fe","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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-GITv2.15.4\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"528945ea2f230a5f46fdc62c75376a6cfed1952170a4f4eb450748d2e14c7815","tree":"0bbc4ba6c9368c19912c833035352fc018769270"}}
@rdoupe
rdoupe marked this pull request as ready for review November 20, 2026 22:47
@rdoupe
rdoupe added this pull request to the merge queue Nov 20, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 20, 2026
@rdoupe
rdoupe added this pull request to the merge queue Nov 20, 2026
Merged via the queue into master with commit 2c0efb8 Nov 20, 2026
47 checks passed
@rdoupe
rdoupe deleted the port/5259-hotkey-background-state branch November 20, 2026 23:50
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.

1 participant