Repository navigation
obs-source: Port borrowed procedure handler getter (#4073) - #4075
Merged
Merged
Conversation
zackees
force-pushed
the
port/source-handler-getters
branch
from
November 8, 2026 21:52
0ba071f to
62a2a6b
Compare
zackees
marked this pull request as ready for review
November 8, 2026 21:58
zackees
enabled auto-merge
November 8, 2026 22:00
This was referenced Nov 8, 2026
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Nov 8, 2026
zackees
force-pushed
the
port/source-handler-getters
branch
from
November 8, 2026 23:55
ab01331 to
38006f6
Compare
zackees
enabled auto-merge
November 8, 2026 23:55
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.
Port
obs_source_get_proc_handlerto 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:
c60163057fails Tier 1 againsttodo!("source procedure handler getter"); port GREEN62a2a6b17implements the getter.obs_source_handler_getters_fieldssymbol; Linux and asan report the same four target link failures.e5f801892fails because the legacy CMake support fragment is absent and the duplicate-step target has zero live adapters. GREENae7a398e7adds the deferred rule using the existing adapter;ab0133183makes 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-existingpthread_mutex_lock/pthread_mutex_unlockmacro redefinitions in unchangedoracle/output_pause_queries.c. Tier 2 was not reached by this command.test_source_duplicate_steps_rust,test_source_filter_chain_steps_rust,test_transition_clock_steps_rustandtest_transition_sample_time_steps_rust. Running those four built executables from the saved volume passed 13 + 12 + 20 + 9 = 54 cmocka cases (exit 0).obs-preflight-cargo/release/libobs_preflight_ffi.abuild: soldr reportsRead-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
ab0133183d277c4ff050e4880aab7a9d606ea583onto05909ccc6, 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.ci/test_native_b2_portability.py: 23 passed, exit 0.SOLDR_PORCELAIN=0 ./lint: exit 0,lane lint: ok (301.7s).git diff --checkclean. No new full Tier 2, cross-platform runtime or hosted validation is claimed for this rebase.