Repository navigation
rust: Port hotkey atomic update to obs-hotkey - #4220
Merged
Merged
Conversation
zackees
force-pushed
the
port/4153-hotkey-update-atomic
branch
from
November 9, 2026 13:10
c9ad534 to
6fea0e8
Compare
zackees
marked this pull request as ready for review
November 9, 2026 13:10
zackees
enabled auto-merge
November 9, 2026 13:11
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Nov 9, 2026
* ci: fix master self-tests broken by unchecked merges obs-rust#4387 re-added obs-hotkey-update-atomic.c.h to libobs.core+ after obs-rust#4220 moved it to its ported group, so the C body was compiled twice (test_build_groups, test_ported_sources, test_conversion_measure). obs-rust#4136 gave ci/hooks/pre_commit_fmt.py a bare python3 shebang (test_uv_run). Both landed through admin merges without CI on 2026-11-09. * libobs: clang-format two files from unchecked merges
chriscoveries
pushed a commit
to chriscoveries/obsrust-fork
that referenced
this pull request
Nov 10, 2026
…st#4450) * test(mcp): RED typed tool schema and structured result contract (obs-rust#4445) * feat(mcp): typed tools, structured domain errors and schema snapshot (obs-rust#4445) * docs(mcp): format generated schema by tool for review (obs-rust#4445) * fix(mcp): preserve readiness errors and accurate operation hints (obs-rust#4445) * fix(mcp): retain legacy JSON text ordering and output descriptions (obs-rust#4445) * ci: fix master self-tests broken by unchecked merges (obs-rust#4453) * ci: fix master self-tests broken by unchecked merges obs-rust#4387 re-added obs-hotkey-update-atomic.c.h to libobs.core+ after obs-rust#4220 moved it to its ported group, so the C body was compiled twice (test_build_groups, test_ported_sources, test_conversion_measure). obs-rust#4136 gave ci/hooks/pre_commit_fmt.py a bare python3 shebang (test_uv_run). Both landed through admin merges without CI on 2026-11-09. * libobs: clang-format two files from unchecked merges * test(mcp): RED typed tool schema and structured result contract (obs-rust#4445) * feat(mcp): typed tools, structured domain errors and schema snapshot (obs-rust#4445) * docs(mcp): format generated schema by tool for review (obs-rust#4445) * fix(mcp): preserve readiness errors and accurate operation hints (obs-rust#4445) * fix(mcp): retain legacy JSON text ordering and output descriptions (obs-rust#4445)
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.
Port
obs_hotkey_update_atomicto obs-hotkey using the existing recursive registry lock seam. The safe core preserves failed-lock no-op behavior, exactly one synchronous callback per successful lock, and unlocking after the callback. The ABI bridge preserves callback data identity and permits null callbacks when locking fails. The extracted original C body stays unchanged in its reference-only unity group.RED: 7c520c1 adds two Tier 1 cases against a todo core; both failed at the stub. GREEN: c9ad534 implements the core, ABI bridge, build/export registration and original-C oracle. Five focused tests pass; all 441 hotkey category tests pass (exit 0; expected unknown-key log messages make the bounded report parser say anomalous). The differential compares lock/callback/unlock traces, pointer identity, callback writes and recursive nesting over fixed edges and bounded generated inputs. Temporarily omitting the callback made the differential fail; the implementation was restored and the hotkey suite passed afterward.
Test cost: five focused tests over 25 runs, longest process 0.105 s, peak RSS 17,676 KiB, no own threads; no new test executable. No repr(C) structs added, so struct layout comparisons are inapplicable. No network behavior, so Tier 4 is inapplicable. No intentional behavior differences. No C test/public-header/websocket/workflow changes, no test-graph.json or native.rs edits, and no new C adapters. Read-only clud-review found no actionable issues.
Native validation: built both actual libraries and compiled the unchanged
test_hotkey_press_state.cstandalone under private Xvfb displays: 18/18 passed with hybrid libobs and 18/18 with libobs-c-reference.lddconfirmed reference library loading. Defined dynamic symbol sets match exactly (1,767 symbols). This is focused Tier 2 coverage, not a complete Tier 2 suite run. The task container installed libxtst-dev locally because the validation image otherwise omits this existing test; no source or registration changes were needed. The initial native attempt was stopped during mutation testing; the complete successful run used the restored committed GREEN implementation.Refs #4153
Landing validation: cherry-picked only the two port commits onto current master after the prerequisite merged. Both patches are unchanged according to range-diff; no conflicts required resolution. All five focused atomic-update tests passed in obs-tests-core. Formatting passed, all 275 native_build contracts passed in obs-tests-app, and the single full lint run passed with exit 0 and
lane lint: ok (251.5s). The remote contained only the expected prerequisite and original port commits before the pinned force-with-lease push. This landing did not rerun the full Tier 2 suite or hosted validation.