Skip to content

obs-source: Port borrowed procedure handler getter (#4073) - #4075

Merged
zackees merged 7 commits into
masterfrom
port/source-handler-getters
Nov 9, 2026
Merged

zackees merged 7 commits into
masterfrom
port/source-handler-getters

Conversation

@zackees

@zackees zackees commented Nov 8, 2026 •

Copy link
Copy Markdown
Member

Port obs_source_get_proc_handler to a safe Rust core with a NULL-safe C ABI shim, preserving borrowed pointer identity, absent handlers, NULL diagnostics and source state. Standalone Rust-static consumers use the existing live procedure-handler field adapter. The native graph and legacy CMake step targets both receive that adapter; the deferred CMake rule avoids duplicate providers and preserves C-reference targets.

Fixes #4073; Phase 6 parent #444. The signal getter remains deferred because the audio-controls oracle uses its production symbol over a stand-in source layout. No public headers, existing C tests or WebSocket plugin changed. The link fix changes neither test-graph.json nor native.rs.

RED → GREEN:

  • Port RED c60163057 fails Tier 1 against todo!("source procedure handler getter"); port GREEN 62a2a6b17 implements the getter.
  • Hosted run 42527404039 failed four legacy Rust step-target links. The full Windows job log names the missing obs_source_handler_getters_fields symbol; Linux and asan report the same four target link failures.
  • Link-regression RED e5f801892 fails because the legacy CMake support fragment is absent and the duplicate-step target has zero live adapters. GREEN ae7a398e7 adds the deferred rule using the existing adapter; ab0133183 makes the configure fixture paths portable and bounds its runtime.

Validation of the link fix:

  • uv run ci/test_native_b2_portability.py: 22 passed, including an evaluated CMake fixture for all four failing targets, duplicate suppression and C-reference exclusion. Final portable fixture alone passes in 1.57 s.
  • ./unittest: workspace run 7,398 passed (6 skipped); additional feature-set run 914 passed; doctests completed. Overall exit 1 during the subsequent MinGW cross-link build: pre-existing pthread_mutex_lock / pthread_mutex_unlock macro redefinitions in unchanged oracle/output_pause_queries.c. Tier 2 was not reached by this command.
  • Direct Linux Tier 2 build in the pinned container successfully linked test_source_duplicate_steps_rust, test_source_filter_chain_steps_rust, test_transition_clock_steps_rust and test_transition_sample_time_steps_rust. Running those four built executables from the saved volume passed 13 + 12 + 20 + 9 = 54 cmocka cases (exit 0).
  • Overall direct Tier 2 build exited 1 on the separate obs-preflight-cargo/release/libobs_preflight_ffi.a build: soldr reports Read-only file system (os error 30). Full hybrid/reference runtime and export-parity validation therefore remain incomplete locally.
  • SOLDR_PORCELAIN=0 ./lint: exit 0; lane lint: ok (181.0s). Rust Clippy lanes reused input-matched passing soldr verdicts.
  • git diff --check: clean.

Original getter validation: six cache-bypassed handler tests passed; source category 1,216 passed, 5 ignored. Test cost for those six tests over 25 direct debug runs: longest 0.0448 s, peak RSS 16,032 KiB, no application threads started by the tests. This fix adds a Python/CMake configure regression, not another Rust executable.

No local-gate attestation is claimed. Native Windows/MSVC, asan, full Tier 2 and hosted checks on the updated head remain for PR CI, the merge gate. Tier 4 does not apply: no protocol surface changes. Handing off after pinned auto-merge is armed, per the pool assignment.

Rebase validation (2026-11-08): rebased from ab0133183d277c4ff050e4880aab7a9d606ea583 onto 05909ccc6, retaining both scene-source and procedure-handler support entries. Range-diff preserves all seven commits with only the expected additive conflict resolution.

  • soldr cargo test -p obs-data --test obs-tests-core source::: 1,216 passed, 5 ignored, exit 0.
  • soldr cargo test -p obs-studio-rust --test obs-tests-app native_build: 264 passed, exit 0.
  • Source-handler legacy link-support CMake configure fixture: passed, exit 0. Full ci/test_native_b2_portability.py: 23 passed, exit 0.
  • Final SOLDR_PORCELAIN=0 ./lint: exit 0, lane lint: ok (301.7s). git diff --check clean. No new full Tier 2, cross-platform runtime or hosted validation is claimed for this rebase.

@zackees
zackees force-pushed the port/source-handler-getters branch from 0ba071f to 62a2a6b Compare November 8, 2026 21:52
@zackees
zackees marked this pull request as ready for review November 8, 2026 21:58
@zackees
zackees enabled auto-merge November 8, 2026 22:00
@zackees
zackees added this pull request to the merge queue Nov 8, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to a conflict with the base branch Nov 8, 2026
@zackees
zackees force-pushed the port/source-handler-getters branch from ab01331 to 38006f6 Compare November 8, 2026 23:55
@zackees
zackees enabled auto-merge November 8, 2026 23:55
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
Merged via the queue into master with commit 6ae410f Nov 9, 2026
42 checks passed
@zackees
zackees deleted the port/source-handler-getters branch November 9, 2026 01:19
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In review to Done in obs-rust Multiview Nov 9, 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 source procedure handler getter to obs-source

1 participant