Skip to content

rust: Port hotkey atomic update to obs-hotkey - #4220

Merged
zackees merged 2 commits into
masterfrom
port/4153-hotkey-update-atomic
Nov 9, 2026
Merged

zackees merged 2 commits into
masterfrom
port/4153-hotkey-update-atomic

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Port obs_hotkey_update_atomic to 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.c standalone under private Xvfb displays: 18/18 passed with hybrid libobs and 18/18 with libobs-c-reference. ldd confirmed 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.

@zackees
zackees force-pushed the port/4153-hotkey-update-atomic branch from c9ad534 to 6fea0e8 Compare November 9, 2026 13:10
@zackees
zackees marked this pull request as ready for review November 9, 2026 13:10
@zackees
zackees enabled auto-merge November 9, 2026 13:11
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 9, 2026
@zackees
zackees merged commit 02d0576 into master Nov 9, 2026
42 checks passed
@zackees
zackees deleted the port/4153-hotkey-update-atomic branch November 9, 2026 18:03
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Done in obs-rust Multiview Nov 9, 2026
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)
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