Skip to content

obs-scene: port public source-type queries (#3975) - #3978

Merged
zackees merged 4 commits into
masterfrom
port/3975-scene-source-type-queries
Nov 8, 2026
Merged

zackees merged 4 commits into
masterfrom
port/3975-scene-source-type-queries

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Ports the public group and scene source-type queries to obs-scene while preserving NULL handling, exact identifier bytes and the first NUL boundary. Fixes #3975; Phase 6 parent #444. No intentional behavior differences or protocol surface.

C characterization 71a0ad7 passes against both actual libraries, with loader proof. Extraction 8665eaa moves both function bodies verbatim in a separate building commit. RED 94004be fails the new Tier 1 mirror at the expected unimplemented group query. GREEN a7053ac provides the safe byte-comparison core and thin C-string shims.

Validation covers all three focused Rust cases, deterministic and generated arbitrary-byte differential parity, built-in identifiers, input immutability and NULL handling. A wrong-identifier mutation fails both differential tests and shrinks to the group identifier. No structs cross this ABI and no private field accessors are called, so there is no new struct representation to measure. The oracle compiles the original extracted C with namespaced metadata fixtures and makes no production libobs calls.

The unchanged C characterization passes against rebuilt hybrid and C-reference libraries in the warm Docker volume, with loader output confirming each path. Both libraries export the same 1,767 symbols. GCC and managed Clang pass the extracted group, oracle and C test with strict format warnings as errors; Clang replay omits two GCC-only warning options. Focused ASan/UBSan passes for the C test linked to actual hybrid libobs and for the instrumented extracted C implementation. The shared Rust library itself was not rebuilt with sanitizers.

The complete native-build module passes 188 tests. The complete utility suite passes 914 tests and both documentation tests. Oracle field discovery, per-port registration, native b2 portability, graph sorting, build groups and Rust inventory checks pass. Full serial lint passes. The final rebase onto current master preserves all four patches exactly according to range-diff. The single primary local review is clean, including the formatting-only fixups folded into the original C commits.

Test cost: three focused cases over 25 reduced runs, each complete module run below the timer resolution of 0.01 seconds, peak RSS 20,084 KiB, no test-owned threads. No new Rust executable, public header changes, existing upstream C test edits or WebSocket changes. Tier 4 does not apply to these local identifier queries.

@zackees
zackees force-pushed the port/3975-scene-source-type-queries branch from 666f011 to a7053ac Compare November 8, 2026 03:47
@zackees
zackees marked this pull request as ready for review November 8, 2026 03:47
@zackees
zackees enabled auto-merge November 8, 2026 03:47
@zackees
zackees disabled auto-merge November 8, 2026 03:48
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
Merged via the queue into master with commit c8ce2fc Nov 8, 2026
41 checks passed
@zackees
zackees deleted the port/3975-scene-source-type-queries branch November 8, 2026 04:49
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 scene source-type queries from libobs/obs-scene.c to obs-scene

1 participant