Skip to content

feat(obs-source): swap source type metadata queries to Rust (Refs #4719) - #4733

Merged
zackees merged 2 commits into
masterfrom
port/4719-source-type-info
Nov 12, 2026
Merged

zackees merged 2 commits into
masterfrom
port/4719-source-type-info

Conversation

@zackees

@zackees zackees commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Refs #4719. Prerequisite #4718 landed as #4728.

Replace obs_get_source_output_flags, obs_source_get_display_name, and obs_is_source_configurable with 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 45d47980 were replayed onto master. RED 9e1a97f30 mirrors 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 ./lint passes, exit 0, ending lane 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.

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"}
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.

1 participant