Skip to content

libobs: Extract hotkey background shortcut control - #4931

Merged
zackees merged 2 commits into
masterfrom
port/4312-hotkey-background-control-extract-land
Nov 17, 2026
Merged

zackees merged 2 commits into
masterfrom
port/4312-hotkey-background-control-extract-land

Conversation

@zackees

@zackees zackees commented Nov 16, 2026 •

Copy link
Copy Markdown
Member

Refs #4312.

Extract the hotkey background retry, configure and probe control plus their wake helper into libobs/obs-hotkey-background-control.c.h, using the existing private mutex seam. All four function bodies remain byte-for-byte unchanged. Register the source in the core unity group and all eight isolated hotkey consumers. Background control and identity setters each keep their singleton unity group, alongside the registration/core pair from #4908. Both native registration snapshots preserve the same partition.

Rebased on current master on 2026-11-17, retaining both sides of the hotkey source-list and unity-group conflicts. RED precedes GREEN: the extraction-boundary regression fails with nine assertions before extraction. The two extraction regression files pass all five checks, the ten build-group checks pass, and both focused native registration tests execute one case and pass. An invariant check confirms every master registration entry survives in the graph and both snapshots, and all four extracted function bodies match master exactly.

Test cost: no new Rust tests or executables; the native registration cases use the existing application category binary and start no own threads. This is the behavior-neutral C prerequisite. The Rust implementation and Tier 1/3 port coverage remain in #4313 on port/4313-hotkey-background-control. No network protocol behavior changes. Existing C tests, public headers and the C++ OBS WebSocket plugin remain unchanged. #4920 remains separate.

Fresh focused Tier 2 verification on the rebased head passed all eight hotkey/portal fixtures twice against each implementation. Loader diagnostics confirmed hybrid and C-reference library paths; both exported exactly the same 1,768 symbols. Hybrid repetitions took 165.89 seconds and reference repetitions took 136.42 seconds. RED is 78060a633; consolidated extraction GREEN is a9c804cd7 before the final attestation stamp. The unity-group fixup was folded into GREEN without changing the tested tree. The prior published head being replaced is ea217a7d1f9c62e1519ad22cbb423a736e0dcfed.

Full SOLDR_PORCELAIN=0 ./lint ran once and passed in 438.5 seconds with a 1,800-second deadline.

Publication used ./push --replace-remote-head ea217a7d1f9c62e1519ad22cbb423a736e0dcfed and its exact force-with-lease. Final published head: 9f5babdf498dbe3a052674e137e9e688dacb4946. Fresh client analysis passed clippy and Dylint for all six targets (318.2 seconds), repository self-tests, and the data validators. The broad workspace run passed 8,678 cases and failed the unchanged obs-util test tests::concurrency::threading_parity::sem_wait_eintr_matches (Rust -1, C oracle 0); it also reported four slow cases, two leaky annotations and six skips. One isolated rerun with CI-pinned soldr passed. #4922 documents the same bounded-signal-loop failure. The failed broad client-test gate remains unproved: partial prooft evidence only, ordinary PR CI required. The retained old client-test trailer belongs to a different tree/parent and is not fresh proof for this head. No complete client-test evidence or signed fast admission is claimed. Documentation tests passed.

@zackees
zackees marked this pull request as ready for review November 17, 2026 00:36
@zackees
zackees enabled auto-merge November 17, 2026 00:36
@zackees
zackees added this pull request to the merge queue Nov 17, 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 17, 2026
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 17, 2026
Refs #4312. Move retry, configure and probe control plus their wake helper verbatim into a standalone C unit, using the existing private mutex seam. Keep isolated hotkey consumers and native graph snapshots linked to the real source. Existing portal C tests remain unchanged; the Rust replacement follows in #4313 after extraction lands.

Client-Checks: {"checks":{"base":"4f67d28e0ff7773d87fc0ce54a37fee1b275d63b","coverage":"all-tracked-applicable-files","diff":["ci/test_hotkey_background_control_extraction.py","libobs/build/libobs.core+.h.c","libobs/obs-hotkey-background-control.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","test/cmocka/build/test-graph.json"],"head":"a6e1c56be1770bbd57c4178f6e7ecb04746e4242","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":"b8857722f8435f36a975345a2c72ef36c39fb8d282d9403b8ef7a7c7cb95bb4e","tree":"99d81889be9f188c633cefd485c53e67309dead2"}}
Ci-Attestation: {"at":1794885436,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":139,"stamp":"24a30db0b17017b3959fd240f576db25","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885436,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":139,"stamp":"150617d7dcfb71c56bb6c6c27d644e15","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885436,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":139,"stamp":"1d3ae925a57f6ee972e3997e27c8db15","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885436,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":139,"stamp":"7211f888e469e9a0e5fcebaf048550a7","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885293,"gate":"general/all/client-lint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"08c9baf3163408457f09ced296aeab3b","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885436,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":139,"stamp":"e681e50d1a0a773b98e59ebe11b2d5d6","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885295,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"fdef1d6108f4d1088fc2e05269819eb7","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885295,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"b373bf6b10aa067db906c4e28010cb37","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885294,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"d84a23a57affa6c02ff165651cf2f138","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885294,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"273ef205360628b126f6db552ea45b97","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885293,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"1cb3bf0e4feb9a0f92694cca9c3b8879","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885293,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"e02d4668a79eba0afc0ae2ba05020602","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885294,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"5520234364f2272f0ad04c7a0a257056","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885295,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"274b74fe30e5e4b47c1471c9400e2efd","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885294,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"119e5c05f3edeba3bf05b48efa53c6b1","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885294,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"6e2b42d69c78d79312955f717b9baf7d","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885293,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"12d5603560880ecb3004150e77736a75","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794885293,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"12849fbdbc809a391b8062a39e88cac510f54d22dbc6dd8faaf551b10ecd467c","lane":"client-lint","parents":["78060a6331c631d82e66b7a755c815ec1c9e088c"],"secs":318,"stamp":"1d5ee6f464a7168e7bdb3049ca4d849c","tree":"fcd03571184716d2dfe17468d96c8411f007cf49","v":1,"via":"run"}
Ci-Attestation: {"at":1794872774,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"cedbdbe8413c263ee0cefad068dfdad6d414ec2ac99710e59ddd61c2865209f4","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c567af47300359f90d5379696449c8a9fd58e6a1"],"secs":1361,"stamp":"669aca36885566c70ef24d17516b24cc","tree":"99d81889be9f188c633cefd485c53e67309dead2","v":1,"via":"run"}
@zackees
zackees force-pushed the port/4312-hotkey-background-control-extract-land branch from ea217a7 to 9f5babd Compare November 17, 2026 03:36
@zackees
zackees enabled auto-merge November 17, 2026 03:38
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 17, 2026
@zackees
zackees added this pull request to the merge queue Nov 17, 2026
Merged via the queue into master with commit d6dcbd6 Nov 17, 2026
41 checks passed
@zackees
zackees deleted the port/4312-hotkey-background-control-extract-land branch November 17, 2026 06:10
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 17, 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.

1 participant