Skip to content

obs-core: swap obs_enum_scenes to Rust delegation (Refs #4802) - #4804

Merged
vpacher merged 2 commits into
masterfrom
port/4802-enum-scenes
Nov 13, 2026
Merged

vpacher merged 2 commits into
masterfrom
port/4802-enum-scenes

Conversation

@zackees

@zackees zackees commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

obs_enum_scenes delegates through a safe Rust core and thin ABI shim to the existing C canvas enumerator. The private adapter supplies the borrowed current main canvas, preserving callback and opaque parameter identity, traversal, filtering, stopping, locking and reference effects. Refs #4802. The C extraction prerequisite #4803 is on master, and this branch now contains only its RED and GREEN swap commits rebased onto master.

RED cb34078a9b5dd99d1f79871ae9a9934fbfea3e4a preserves the three safe characterization tests that failed at the committed todo!() stub. GREEN dc3337621d3fea0419b733a4572cb815ffc935ce supplies exact delegation, real private-adapter layout measurements, and original-C differential coverage. The original mutation check omitted delegation and failed both differential behavior tests; restoring it passed all six safe/layout/differential cases.

The original implementation session rebuilt actual hybrid and C-reference libraries and replayed unchanged test_enum_scenes, test_object_ref and test_canvas_signals five times per library: 30 suite executions, zero failures, with all 1,768 dynamic exports matching. This rebase preserves those C tests and both upstream ledger entries. Tier 4 does not apply to this non-protocol wrapper. Native Windows/macOS runtime, sanitizers and full Tier 2 were not repeated locally during this rebase; hosted PR and merge-queue CI remain the merge gate.

Test cost from the implementation session: 25 reduced-parity runs, 150 executions, longest 0.020 s, peak RSS 20,180 KiB, no own threads; generated traversals contain at most four source entries. No existing C tests, public headers, WebSocket, workflows or Rust executable inventory changed. No intended behavior difference or user-visible change.

Rebase validation: soldr cargo fmt --all --check passed; soldr cargo test -p obs-studio-rust --test obs-tests-app native_build:: passed all 275 selected tests; OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core enum_scenes passed all six safe/layout/differential tests. Build-group, sorted-list and test-graph checks passed; git diff --check passed. An initial focused-test attempt and the first full lint reached Soldr's active-build-lock refusal while checks overlapped. The focused test then passed, and sequential SOLDR_PORCELAIN=0 ./lint passed in 321.4 s with rc=$? captured directly as 0, including workspace Clippy and all five feature sets.

Published through ./push with the force-with-lease pinned to previous head 5b819585ab3236334d4ac18f5deff16d8d75b54b. Installed prooft rejects the inventory's data/swift ecosystem declarations, so publication used the entry point's ordinary-CI fallback without complete client attestation.

@zackees
zackees marked this pull request as draft November 13, 2026 02:12
@zackees zackees changed the title test(obs-core): add RED scene enumeration delegation (Refs #4802) obs-core: swap obs_enum_scenes to Rust delegation (Refs #4802) Nov 13, 2026
Base automatically changed from test/4801-enum-scenes to master November 13, 2026 05:04
@zackees
zackees force-pushed the port/4802-enum-scenes branch from 5b81958 to dc33376 Compare November 13, 2026 05:48
@zackees
zackees marked this pull request as ready for review November 13, 2026 05:48
@zackees
zackees enabled auto-merge November 13, 2026 05:48
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@zackees
zackees removed this pull request from the merge queue due to a manual request Nov 13, 2026
@zackees
zackees force-pushed the port/4802-enum-scenes branch from dc33376 to 4df5be6 Compare November 13, 2026 06:47
@zackees

zackees commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

Rebased onto origin/master (e4849b53527b96344394bde3dc11e0d7e98b8914), replacing head dc3337621d3fea0419b733a4572cb815ffc935ce with 4df5be6fa71518f859d8ca76af8edffac26b57b1 through ./push using an exact force-with-lease. RED d16178b92 remains before GREEN 4df5be6fa.

The only conflict was the core unity include list. A literal union failed the build-group ownership check for both original C bodies. The resolution preserves both ports: sorted enum-scenes and get-main-canvas field adapters remain in core; each original C body remains in its own reference-only ported group. No implementation logic changed.

Validation passed: soldr cargo fmt --all --check; uv run ci/test_build_groups.py (10 tests); soldr cargo test -p obs-studio-rust --test obs-tests-app native_build:: (275 tests); OBS_PARITY_CASES=reduced soldr cargo test -p obs-data --test obs-tests-core enum_scenes (6 tests); SOLDR_PORCELAIN=0 ./lint (280.8 s, direct rc=$? = 0); git diff --check. Range comparison preserves RED/GREEN and upstream changes.

The additional complete-client proof attempted by ./push could not run Dylint because the installed Soldr selects nightly-2026-05-28 while its pre-deployed Dylint driver supports nightly-2026-08-15. No complete client attestation was emitted; ordinary hosted PR checks and merge-queue checks remain required. No toolchain or policy changes were made for this environment limitation.

Handed off to the coordinator for hosted CI and merge queue monitoring. Refs #4802; this PR intentionally closes no issue.

@zackees
zackees enabled auto-merge November 13, 2026 06:48
@zackees
zackees added this pull request to the merge queue Nov 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 13, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Ready to merge in obs-rust Multiview Nov 13, 2026
@vpacher
vpacher added this pull request to the merge queue Nov 13, 2026
Merged via the queue into master with commit 0b92d3e Nov 13, 2026
40 checks passed
@vpacher
vpacher deleted the port/4802-enum-scenes branch November 13, 2026 21:41
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Ready to merge to Done in obs-rust Multiview Nov 13, 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.

2 participants