Repository navigation
feat(obs-source): swap source type metadata queries to Rust (Refs #4719) - #4733
Merged
Merged
Conversation
Ci-Attestation: {"at":1794425185,"gate":"rust/all/fmt","host":"linux-x86_64","key":"","lane":"lint","parents":["9e1a97f30f8e5976276ce804479a3e1b6162cafe"],"secs":151,"stamp":"b9a3c186cc7dc7c1def8138353b29328","tree":"ebd145411adae3e8f3de05a06e01adce2938b8da","v":1,"via":"run"}
Ci-Attestation: {"at":1794425185,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"","lane":"lint","parents":["9e1a97f30f8e5976276ce804479a3e1b6162cafe"],"secs":151,"stamp":"adc539961dfdbfaaab0cbde31886f2b3","tree":"ebd145411adae3e8f3de05a06e01adce2938b8da","v":1,"via":"run"}
Ci-Attestation: {"at":1794425185,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"","lane":"dylint","parents":["9e1a97f30f8e5976276ce804479a3e1b6162cafe"],"secs":151,"stamp":"a3088343a09c65ff6c7ecaecf18fea0b","tree":"ebd145411adae3e8f3de05a06e01adce2938b8da","v":1,"via":"run"}
zackees
enabled auto-merge
November 11, 2026 19:27
This was referenced Nov 12, 2026
This was referenced Nov 13, 2026
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.
Refs #4719. Prerequisite #4718 landed as #4728.
Replace
obs_get_source_output_flags,obs_source_get_display_name, andobs_is_source_configurablewith safe Rust metadata logic and thin ABI shims. Keep the original extracted C as the differential oracle and C-reference implementation. Preserve one lookup, exact flags, borrowed callback pointer identity, and the existing callback-presence definition of configurability.Only the swap's RED/GREEN commits after
45d47980were replayed onto master. RED9e1a97f30mirrors the six C characterization cases against failing stubs. GREEN adds real-header layout checks and original-C differential coverage. The replay preserves master's thread-local theme-icon fixture in the shared oracle lookup. Existing C tests, public headers, WebSocket plugin, workflows, and the shared native test graph are unchanged. No user-visible behavior change; Tier 4 is inapplicable.Original mutation evidence: flipping one output flag bit fails the original-C differential test; the mutation was restored before validation.
Test cost: 25 reduced-parity debug executions, longest 0.0175 s, peak RSS 23,924 KiB, no test-owned threads. Tests use the existing Core category binary.
Landing validation on current master: ten focused Tier 1/layout/Tier 3 cases pass; source regressions pass (1,391 tests, five existing ignored); seven unchanged Tier 2 suites pass three repeats on each actual rebuilt hybrid/C-reference library (42 executions), with matching 1,768 dynamic exports. All eight Windows MSVC category binaries link. Native build contracts pass (275 main cases plus two re-exec child passes). Exactly one full
SOLDR_PORCELAIN=0 ./lintpasses, exit 0, endinglane lint: ok (297.7s). Read-only review is clean.Native Windows/macOS execution, full Tier 2 suite, and sanitizers were not rerun locally; hosted PR CI remains the merge gate.