Repository navigation
obs-scene: Port selected and locked item getters (#3855) - #3859
Merged
Merged
Conversation
zackees
marked this pull request as ready for review
November 7, 2026 09:05
zackees
enabled auto-merge
November 7, 2026 09:05
Member
Author
|
Handed off to the coordinator/pool chaperone at verified head 670a042. Auto-merge is enabled with that head pinned; no hosted-CI wait was performed, per the pool assignment. Final body records RED/GREEN, passing focused Tier 2 and identical exports, mutation kill/restored GREEN, all 351 scene Rust tests and passing full lint. Full ./unittest, native macOS/Windows and local-gate attestation were not run. Please observe required checks and the merge queue from here. |
This was referenced Nov 7, 2026
This was referenced Nov 7, 2026
This was referenced 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
obs_sceneitem_selectedandobs_sceneitem_lockedinto the existingobs-scenecrate. Both preserve false for null and return their independent stored flag without mutating the item. Each shim reads only the requested field, preserving the C synchronization contract. No intended behavior differences, public-header changes or user-visible change.Fixes #3855.
Commit sequence: C-only actual-library characterization
615a0b5ac; verbatim extractiondbb021191; Tier 1 REDadf87685c; Rust GREEN670a04285. RED commandSOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core scene::item_state_getters::exited 101 with both tests failing attodo!().The C reference retains the verbatim extracted functions in its ported source group. The public symbols use an export fragment; no hidden-symbol fragment is needed. Neither symbol has a Windows benchmark stand-in to remove. The Rust prefix ends before
item_render; it does not model or borrow the opaque suffix. Size/span, alignment and every prefix field offset are measured from real C headers, including Clongwidth. Parity uses complete C-owned items and checks null, independent flags, unrelated flags, arbitrary IDs and all item bytes after the getter calls. No public headers or existing C tests were edited.Validation:
OBS_PARITY_CASES=reduced(5.52 seconds).docker_task_commandand this slot’s warm volume to buildlibobs,libobs-c-referenceandtest_scene_item_state_getters. The new unchanged characterization passed three repeats against each library before extraction, after extraction and after the Rust swap. The pre-existingtest_scene_canvas_characterizationalso passed three repeats against each library after the swap; an additional verbose run under Xvfb confirmed all 13 C cases passed in each library, with no startup skips.lddconfirmed both actual loader paths. Dynamic exports match exactly: 1,767 symbols.-Wall -Wextra -Werror -Wconversion -Wsign-conversion -Wfloat-conversion, using the oracle dependency header shims. Clang needed-Qunused-argumentsfor the host Nix wrapper’s injected linker-only arguments; no source warning was suppressed.lockedcore to return false makesscene::item_state_getters_parity::characterized_edgesfail at flags0x2, with mismatch bit 8 (exit 101). Proptest persistence is disabled. The original core was restored byte-for-byte, and all five new tests passed again (exit 0).SOLDR_PORCELAIN=0 ./lint --fixpasses (267.5 seconds): formatting, all 349 CI self-test scripts, workspace and feature Clippy, and Dylints.Test cost: 25 debug invocations of the five new tests, longest 0.08 seconds, peak RSS 16,260 KiB; no own threads and no new Rust test executable (existing Core state category).
The full
./unittest/Tier 2 suite, native macOS/Windows runs and a local-gate attestation were not run. Hosted PR CI remains the merge gate. Tier 4 does not apply to these field readers.