Skip to content

libobs: Characterize and extract owned hotkey translations - #4387

Merged
zackees merged 2 commits into
masterfrom
test/4372-hotkey-owned-translations-extract
Nov 9, 2026
Merged

zackees merged 2 commits into
masterfrom
test/4372-hotkey-owned-translations-extract

Conversation

@zackees

@zackees zackees commented Nov 9, 2026 •

Copy link
Copy Markdown
Member

Characterize obs_hotkeys_set_audio_hotkeys_translations and obs_hotkeys_set_sceneitem_hotkeys_translations, then move both bodies and their local SET_T macros verbatim from obs-hotkey.c.h into obs-hotkey-owned-translations.c.h, registered in sorted core unity order. The distinct filename is necessary because obs-hotkey-translations.c.h already holds the ported key-name translations and is excluded from hybrid libobs. All eight owned bfree/bstrdup slot updates remain unchanged.

The new three-case public C suite pins all six audio descriptions and both scene-item descriptions, copied caller buffers, replacement, existing audio registrations, NULL versus empty audio values, scene-name substitution and isolation between the two groups. Scene fixtures are removed from their canvas, and nested destruction tasks are drained before shutdown. Public headers, existing C tests, Rust sources, test-graph.json and native.rs are unchanged.

Characterization commit: 40379d5ab. Behavior-neutral extraction commit: b66466b00. This is the testing policy's prerequisite PR; the Rust swap and its RED/GREEN, Tier 1 and differential coverage are tracked separately in #4378 and wait for this prerequisite to land. Refs #4372.

Validation: all three characterization cases passed against both C-reference and hybrid libobs before extraction (0.21 s reference, 0.13 s hybrid) and after extraction (0.10 s each). The focused Docker runs used this slot's existing Tier 2 volume under Xvfb, with ldd confirming the loaded library; exported dynamic symbol name sets matched before and after. Both extracted function bodies and local macros were checked byte-for-byte. Rust formatting passed using matching soldr evidence, full lint passed in 134.9 s, and the single-reviewer local clud-review found no substantive issues. No new Rust test executable or graph serialization hold.

The full local Tier 2 suite, native Windows/macOS runs and sanitizers were not run; PR CI remains the merge gate. Tier 4 does not apply. The single claim comment remains pending in the claim-bot backlog, with no refusal or conflicting claim found.

@zackees zackees changed the title libobs: Extract owned hotkey translation setters verbatim libobs: Characterize and extract owned hotkey translations Nov 9, 2026
@zackees
zackees enabled auto-merge November 9, 2026 14:40
@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 force-pushed the test/4372-hotkey-owned-translations-extract branch from b66466b to 9cb501f Compare November 9, 2026 20:26
Refs #4372. Pin all eight descriptions, replacement, copied caller buffers, existing registrations, NULL and empty audio values, scene formatting and group isolation through the public API. The three cases pass against hybrid and C reference libobs before extraction.
Refs #4372. Keep the eight bfree/bstrdup slot updates and local macros unchanged in their own core unity member. obs-hotkey-translations.c.h already belongs to the ported key-name unit; use a distinct owned-translations name. Rust follow-up: #4378.
@zackees
zackees force-pushed the test/4372-hotkey-owned-translations-extract branch from 9cb501f to 543d0f4 Compare November 9, 2026 20:43
@zackees
zackees merged commit a3abbc8 into master Nov 9, 2026
@zackees
zackees deleted the test/4372-hotkey-owned-translations-extract branch November 9, 2026 20:43
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)
chriscoveries pushed a commit to chriscoveries/obsrust-fork that referenced this pull request Nov 10, 2026
…obs-rust#4463)

The first rebase of obs-rust#4214 kept obs-source-settings-getter.c.h in the
core-source unity group although the port deletes it there (moving it to
its ported group), so the C compiled twice; obs-rust#4387's forced merge broke master
the same way. The prompt now says deletions stay deleted, and
check_resolution refuses a file that keeps a line the PR removed and master
did not add.
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