Skip to content

obs-scene: Port the scene item ID getter (#3865) - #3869

Merged
zackees merged 6 commits into
masterfrom
port/scene-item-id
Nov 7, 2026
Merged

zackees merged 6 commits into
masterfrom
port/scene-item-id

Conversation

@zackees

@zackees zackees commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Ports obs_sceneitem_get_id into the existing obs-scene crate. It preserves every signed 64-bit stored ID, returns zero for null with the original debug-level diagnostic, and leaves every item byte unchanged. No intended behavior differences or user-visible change.

Fixes #3865, native child of Phase 6 #444.

Commit sequence: C-only actual-library characterization 759b7e225; verbatim extraction a30707c37; Tier 1 RED 06179c0c2 (observed before rebase as 6bd748cbd); Rust GREEN 98bb6d5d9. The observed RED command SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core scene::item_id:: failed both tests at todo!() (exit 101).

The C reference retains the verbatim extracted getter in its ported source group. The Rust shim describes only the prefix through id, reads only that field without borrowing the item, and delegates null handling to the safe core. Real-header tests measure prefix span, alignment and every offset, including C long. Differential tests use complete C-owned items, arbitrary signed IDs and independent surrounding flags, comparing all item bytes after calls. The null diagnostic is compared against C in a re-executed child with an exact selector, isolating the global log handler. Proptest persistence is disabled. The native graph registers the C test under suite core; its tests.d file only documents that ownership. No public headers, existing C tests, or websocket files were edited. The exported symbol has no Windows benchmark stand-in to remove.

Validation:

  • All six new Tier 1/layout/Tier 3 tests pass; all 352 scene Rust tests pass with reduced parity (7.62 seconds).
  • Mutation: changing the safe core from id to id ^ 1 makes characterized_edges fail at i64::MIN, mismatch bit 1 (exit 101). The unchanged actual-library C stored-ID test also caught the mutation when it reached the concurrent Docker build. The core was restored byte-for-byte before the definitive passing runs.
  • Focused Tier 2 via docker_task_command and this slot's warm volume: the unchanged new C characterization passed three repeats against each actual library before extraction, after extraction, and after restoring the Rust swap. The pre-existing scene/canvas characterization also passed three repeats against each library under Xvfb, all 13 C cases each time, with no startup skips. ldd proved both loader paths; dynamic exports match exactly (1,767 symbols).
  • GCC and Clang accept the extracted group with -Wall -Wextra -Werror -Wconversion -Wsign-conversion -Wfloat-conversion, using the oracle dependency header shims. Nix Clang requires -Qunused-arguments for injected linker-only arguments.
  • Source-group inventory, port metadata and exact native-core inventory checks pass.
  • SOLDR_PORCELAIN=0 ./lint --fix passed formatting, CI self-tests, workspace Clippy and all feature Clippy lanes, then exited 1 at Dylint: soldr refused to build the driver from source under clud (no pre-deployed driver for nightly-2026-05-28). Per the worker instructions, no workaround was attempted; hosted Fast Gate must supply Dylint validation.

Test cost: 25 debug invocations of the six new tests, longest 0.03 seconds, peak RSS 17,152 KiB. No own threads; the null-log test launches one isolated child. No new Rust test executable; uses the existing Core state category.

The full ./unittest/Tier 2 suite, native macOS/Windows execution and a local-gate attestation were not run. Hosted PR CI remains the merge gate. Tier 4 does not apply to this field reader.

Rebased after sibling #3859 merged onto master e53544d. git range-diff preserves all five patches with only the combined README record changed; both getter descriptions retain every fact. Native graph entries merged without conflict; graph sorting, native slice, exact inventory and port metadata checks pass. See the rebase evidence comment for focused test and lint results.

Hosted CI follow-up: macOS job 128395119537 and Windows job 128395119552 both failed the exact one-source registration assertions for scene audio-window and render-plan Rust-static targets. The preceding link repair intentionally added the aborting logging support; these two assertions now pin the exact ordered two-source lists for those targets and retain every other source/dependency assertion. No runtime getter, C test, header or platform layout was changed.

Focused validation: all seven canonical_rust_static_ registration tests and all six scene::item_id core/layout/parity tests pass with reduced parity. Graph sorting, exact normal/SDK inventory and port metadata pass; README record remains in the port table. Existing committed tests and the two hosted failures supply RED evidence. No new test executable or case, allocation-driving generator or threads were added; the seven registration tests take 0.07 seconds. Native macOS/Windows execution and full Tier 2 were not repeated locally.

SOLDR_PORCELAIN=0 ./lint passed formatting, CI self-tests, workspace and feature Clippy; it exited 1 only at the documented soldr refusal to build the Dylint driver under clud. Final three log lines confirm that refusal; hosted Fast Gate must validate Dylint. Artifact: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-3sIWlV.log. Focused tests: /home/niteris/.clud/tmp/tool-output/local-test-private/local-test-mRjW9r.log and local-test-dRAYhe.log. Range-diff preserves all six preceding commits exactly; new repair commit 5cb74f984 only updates the two registration contracts.

@zackees
zackees force-pushed the port/scene-item-id branch from 6bd748c to 93935f7 Compare November 7, 2026 09:54
@zackees
zackees marked this pull request as ready for review November 7, 2026 09:55
@zackees
zackees enabled auto-merge November 7, 2026 09:55
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Handed off to the coordinator/chaperone. Auto-merge is enabled for verified head 93935f7. All six new tests pass after rebasing onto d5428c9; range-diff preserved all five patches and merge-tree succeeds. Focused Tier 2 passes both actual libraries with identical 1,767 exports. Local lint only stops at the documented soldr Dylint-driver refusal under clud; earlier steps passed, so hosted Fast Gate must provide Dylint. #3859 has not landed yet: rebase onto master once it does, preserving both accessor modules/README entries and disjoint native graph entries; sort the graph and update its exact inventory count if needed. The worker slot is being returned clean and detached.

@zackees
zackees force-pushed the port/scene-item-id branch from 93935f7 to 63332ff Compare November 7, 2026 10:15
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased our pool PR after #3859: replaced 93935f7 with verified remote head 63332ff using the pinned force-with-lease. Range-diff preserves all five commits; only the README conflict resolution differs. Both getter descriptions are combined with every fact retained; no port behavior changed. Native graph merged cleanly.

Validation: owning Core category scene::item_ filter passed 111 tests (0 failures, reduced parity), including all 11 ID and selected/locked tests. Graph sorting, native graph slices, exact native inventory and port metadata checks passed; diff-check and trial merge passed. SOLDR_PORCELAIN=0 ./lint passed earlier lanes, workspace and feature Clippy, then exited 1 at the documented soldr refusal to build the Dylint driver under clud (nightly-2026-05-28 unavailable). Hosted Fast Gate must supply Dylint; no workaround attempted. Full Tier 2/native platform execution was not repeated for this documentation-only conflict resolution.

Auto-merge confirmed on the new head. Handed off to the existing chaperone/coordinator. README collision evidence: these siblings appended distinct prose records at the same EOF location (old lines 353), rather than editing the same table row.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased pool head 63332ff onto current master 19da800; exact force-with-lease pushed and remote head verified as 16c9dac. Range-diff preserves all five patches with only the SDK-enabled native inventory assertion addition (425); no README or port behavior changes. Native inventory (3), graph ordering (2), graph slices (1), port metadata (5), build groups (10), diff-check and all 111 scene::item_ Rust tests pass, including all six ID tests. Series SOLDR_PORCELAIN=0 ./lint passed on #3870 (exit 0; matching passing Dylint verdict reused). Full Tier 2/native platform suites were not repeated. Head-pinned auto-merge confirmed; existing chaperone retains the handoff.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Hosted macOS and Windows Rust failures were stale exact one-source registration assertions after the preceding scene logging link support was added. Repair 5cb74f9 pins exact ordered source lists for the two affected targets without weakening any dependency assertions. Seven native registrations and all six item-ID tests pass; inventory, graph ordering and metadata pass. SOLDR_PORCELAIN=0 ./lint passed all earlier lanes and stopped only at the documented soldr Dylint-driver refusal (final three log lines checked); hosted Fast Gate supplies Dylint. Full evidence and artifacts are in the body. Pushed with explicit lease, remote head verified and head-pinned auto-merge re-armed. Handed off to the pool chaperone without waiting on hosted CI.

@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master 58d2c11; replaced 5cb74f9 with f7ac35a using the explicit lease. Kept master’s inventory-based portability checks in place of superseded fixed counts; all six later patches replay unchanged, preserving port modules, README table record and registrations. Range-diff reviewed. Seven native registrations and six focused scene item-ID tests pass; graph sorting, README and portability checks pass. Remote head verified and auto-merge remains enabled. Full Tier 2/native platform suites and hosted CI were not repeated or awaited.

@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 7, 2026
@zackees
zackees force-pushed the port/scene-item-id branch from f7ac35a to fa7e7ae Compare November 7, 2026 15:01
@zackees
zackees enabled auto-merge November 7, 2026 15:02
@zackees

zackees commented Nov 7, 2026

Copy link
Copy Markdown
Member Author

Rebased after the 14:43 UTC merges onto origin/master 5de5b53, replacing f7ac35a with fa7e7ae. Retained both README records (including the ID wording correction) and master’s equivalent exact scene logging-stub lists; redundant registration repair became empty. No semantic overlap. Passed whole native_build:: (113), native portability (6), graph sorting (2), README (1), full CI self-tests, obs-c-oracle build and six reduced item-ID Rust/layout/parity tests. Range-diff reviewed. Initial push was blocked by queue protection; after manager dequeue the explicit-lease push succeeded and was verified. Auto-merge re-armed and confirmed. Handed off to the pool manager for hosted checks and queue observation.

@zackees
zackees added this pull request to the merge queue Nov 7, 2026
Merged via the queue into master with commit a4acd7e Nov 7, 2026
44 checks passed
@zackees
zackees deleted the port/scene-item-id branch November 7, 2026 16:43
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 7, 2026
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.

rust: Port obs-scene item ID getter to obs-scene

1 participant