Repository navigation
obs-hotkey: Port binding field getters (#3851) - #3853
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 7, 2026 08:37
zackees
enabled auto-merge
November 7, 2026 08:37
Member
Author
|
Handed off to the coordinator/chaperone. GREEN head 6f27955 is pushed and verified; PR is ready and auto-merge is enabled with the head pinned. Full local lint passed; 503 hotkey tests and focused dual-library Tier 2/export/loader checks passed. Full Tier 2 and native Windows/macOS runs were not run locally; no local-gate attestation. See the final PR body for RED/GREEN and mutation evidence. |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Nov 7, 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.
Ports the three remaining binding getters in
obs-hotkey.c.htoobs-hotkey, preserving the exact stored combination, independent binding ID, pointer identity and both latch fields. No intended behavior differences or user-visible change. Public headers and existing C tests are unchanged.Fixes #3851.
Commit sequence: C-only actual-library characterization
442a8c1eb; verbatim C extractionf07d822bc; Tier 1 RED4d6829b14; Rust GREEN6f2795544. RED commandsoldr cargo test -p obs-data --test obs-tests-core hotkey::binding_getters::exited 101 with both tests failing attodo!().The Rust shims read only the requested field, do not dereference/retain the stored hotkey, and delegate to the safe core. The C reference retains the extracted implementation in its own ported group. The three symbols are public and use
rust-exports.d, so no hidden-symbol fragment is needed. Save/load parity now uses the actual binding layout and getter shims; obsolete Windows benchmark stand-ins were removed.Validation:
OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core hotkey::.hotkey_idto return zero makeshotkey::binding_getters_parity::characterized_edgesfail (Rust 0, C 17), exit 101. Original core restored and GREEN rerun.docker_task_commandand this slot's warm volume. Builtlibobs,libobs-c-reference,test_hotkey_binding_getters, unchangedtest_hotkey_getters_characterizationand unchangedtest_hotkey_load; each test passed three repeats against each library before and after the swap.lddconfirmed both actual loader paths. Dynamic exports match exactly: 1,767 symbols.SOLDR_PORCELAIN=0 ./lintpasses (354.6 seconds): formatting, 349 CI self-test scripts, workspace/feature Clippy and Dylints.-Wconversion -Wsign-conversion -Wfloat-conversion, using the oracle's dependency header shims.Test cost: 25 debug invocations of the five new tests, longest 0.045 seconds, peak RSS 16,672 KiB; no own threads or new Rust test executables (existing Core state category).
The full
./unittest/Tier 2 suite, macOS/Windows native checks and a local-gate attestation were not run. Hosted PR CI remains the merge gate. Tier 4 does not apply to these field readers.