Repository navigation
obs-source: Port the source type lookup - #4608
Conversation
b288364 to
0905ac6
Compare
0905ac6 to
390b3d6
Compare
|
Claim conflict: keep this PR out of the merge queue until resolved.
|
|
Resolved: the claim on #4606 had lapsed and is renewed (accepted and assigned); the claim check now passes and the claim-conflict label is gone. |
d1cbf97 to
f0e77ff
Compare
|
Coordinator note: the claim on #4606 lapsed again. The claim bot dropped it as stale on 2026-11-14 05:03 UTC, because this draft has had no activity since 2026-11-13 04:48 UTC. To clear the conflict, renew the claim on #4606 as you did on 2026-11-12. When the PR is ready, mark it ready for review, and the coordinator queues it once CI is green. |
|
Thanks: the claim on #4606 is renewed (accepted and assigned again), and CI on the head is green. It comes out of draft once the merge queue's back-pressure gate opens. |
|
Coordinator: the back-pressure gate is open now ( On the claim timer: a claim stays active for 24 h after your last comment on the issue or your last activity on this PR ( |
|
Thanks. The gate had closed again by the time I checked (one PR in flight, no headroom), so this stays a draft until it reopens, then goes ready. I've put a Blocked: note on #4606 so the claim holds while it waits. |
|
Coordinator, a correction to my tip above: the 7-day |
|
Coordinator: the gate is open again ( |
|
Coordinator, an update: the open slot sat idle for an hour, so the maintainer used it for #4858. That does not hold this PR back. The gate will read closed while #4858 is in flight, but you can mark this PR ready now. The maintainer has agreed that the coordinator queues it right behind #4858, and the review is prepared. |
vpacher
left a comment
There was a problem hiding this comment.
Coordinator review at f0e77ff.
- Correctness:
info_lookupmatches the C loop. It returns the first entry with a bytewise-equal ID, and it reads the count again before each entry, as the C loop condition does. The asked ID is read only at the first comparison. The shim returns the C entry's own address, and Rust never reads thestruct obs_source_infolayout: the three adapter functions inobs-source-info-lookup-fields.c.hare the only seam. They are declared inlibobs/obs-internal.h, which is not a public header. - Intentional difference: a NULL ID now gives "not found" instead of the C segfault. It is listed in the parity test header, the README row and the features ledger (
docs/features.md, Fixes section). - RED → GREEN: the characterization (edeb39c) passes on C, hybrid and C reference before any Rust. RED 943a6cc (7 Tier 1 tests on
todo!()), then GREEN. A second RED/GREEN pair covers when the ID is read. - Tiers: Tier 1 8/8. Tier 3
info_lookup_parity4/4, with a proptest over random registries and seven planted mutants caught. Tier 2test_source_info_lookupis new, and no existing C test changes. The oracle stand-ins now share one per-thread core inoracle/source_info_lookup.c, and the two changed assertions (theme icon and type metadata parity) follow from the NULL-ID difference. - Test cost line: present (0.02 s, 6.4 MB peak RSS, no own threads).
- Exported symbol sets: identical across the C, hybrid and C reference builds (1768), with the lookup and the adapter local.
Verdict: approve. The checks on this head are green (42 passed); queued.
|
Coordinator: approved, and thank you for queueing it. The queue shows this PR as UNMERGEABLE because it is behind #4860 and both change the same six files ( |
Pin get_source_info through the public calls that use it, before its port: a registered ID finds its type, unknown, empty, prefix, suffix and case-changed IDs find nothing, and of two types with the same full ID (a versioned and an unversioned registration) the first wins. A NULL ID is left out: the C passes it to strcmp. Refs #4606.
Tier 1 tests for get_source_info against a todo!() core: the characterization cases over a model registry, the read order of the C loop, and the NULL IDs. A NULL asked ID finds nothing and reads nothing, where the C crashes in strcmp; a NULL registered ID matches nothing. Refs #4606.
get_source_info() is now Rust: the first registered source type whose
ID equals the asked ID, bytewise, as before. A private adapter
(obs-source-info-lookup-fields.c.h) gives the core's source_types
count, an entry's address and its ID, and the shim returns the C
entry's own address, which callers keep. The count is read again
before each entry, as the C loop condition did.
One intentional difference: a NULL ID finds nothing. The C passed it to
strcmp, so asking for a NULL type's name, flags, defaults, properties
or icon, or creating a source with a NULL ID, crashed once any type was
registered. Creating one now takes the unknown-ID path ("Source ID
'(null)' not found").
The original C moves to its own ported group (C reference only), the
symbol stays hidden (rust-hidden.d), and the icon getter calls the Rust
lookup directly. The rust-static link support and the icon oracle now
build the adapter instead of the C lookup: the oracle installs its
registry per thread through a thread-local stand-in core.
The oracles whose code looks types up (icon type, theme icon, type
metadata) share one per-thread stand-in core in source_info_lookup.c
instead of their own get_source_info: the icon registry by default,
another installed with oracle_source_registry_exchange_core, and each
lookup counted as it starts (a NULL ID reads no registry, so it is not
counted, and the asked ID pointer is no longer seen). The theme
fixture's flag 4 empties the registry at the second lookup.
Refs #4606.
The original get_source_info, renamed, runs over the same production adapter and per-thread stand-in core as the Rust one. The parity test compares the entry found (by address) and checks the registry is left unchanged: the characterized cases, then random registries of up to 12 IDs from a small alphabet (duplicates, empty and non-UTF-8 IDs) with random asked IDs. The NULL IDs are the intentional difference and are checked on the Rust side only, except a NULL ID with nothing registered, where the C loop never runs and both find nothing. Seven planted mutants in the core (last match, prefix and case-folded compares, skipping the first or last entry, an index off by one, and never matching the empty ID) each fail the test. Refs #4606.
The rust/README.md row (and the icon getter's, which now calls the ported lookup), the crate description and the module docs. Fixes #4606.
The C reads the asked ID only inside the registry loop, where strcmp compares it, so with nothing registered it never touches the string. The shim measured the ID before the loop. Pass the asked ID to the core as a closure and test that it is called only at the first comparison: with an empty registry it is never read, and with entries it is read once. The core still reads it up front, so the new test fails. Refs #4606.
The core now reads the asked ID at the first comparison, as the C's strcmp in the loop does, and keeps it for the rest of the walk. With nothing registered the string is never touched, so a lookup on an empty registry no longer measures the ID first. The parity test checks it through the real shim and the original C: with nothing registered both take an unreadable pointer and find nothing. Fixes #4606. Local-Gate: v1 tree=e26bb80a0afc7e0098e445b8620c6c62ac541f85 secs=2753 lanes=lint:run,dylint:run,rust-test:run,cross:run,tier2-linux:run,macos-native:n/a,windows-native:n/a,client-lint:run,client-test:run,client-test-x86_64-unknown-linux-gnu:run,client-test-aarch64-unknown-linux-gnu:n/a,client-test-x86_64-pc-windows-msvc:n/a,client-test-aarch64-pc-windows-msvc:n/a,client-test-x86_64-apple-darwin:n/a,client-test-aarch64-apple-darwin:n/a Ci-Attestation: {"at":1794534426,"gate":"rust/all/fmt","host":"linux-x86_64","key":"aefab62699a515899010704f88644cc60e4aafdabf04f557bc827f3d848e4099","lane":"lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":71,"stamp":"c729488946efd0be5ac54bf6c1d37aba","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/clippy","host":"linux-x86_64","key":"aefab62699a515899010704f88644cc60e4aafdabf04f557bc827f3d848e4099","lane":"lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":71,"stamp":"f0e96d49e6d9175549fd21b138071128","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/dylint","host":"linux-x86_64","key":"3a82b704d35e218c9a024ce57b8775e6ea75d667bf3532e31b607d664b634bb1","lane":"dylint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":0,"stamp":"9ab844d7fb486f320936df8cabc58c7f","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/test","host":"linux-x86_64","key":"feed784265124f22421ad125564f5868edfb6cffcc73c0926ebfc18ff9556f70","lane":"rust-test","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":384,"stamp":"4626b90a5cc201d6a7721e0cb2912555","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-pc-windows-msvc/clippy","host":"linux-x86_64","key":"9bb10799822a9876201ae2b04a508de1142ccbe70c253812987e8708efbd454b","lane":"cross","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":131,"stamp":"59d937228d8e3463b21a4de66455a1bc","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-pc-windows-msvc/dylint","host":"linux-x86_64","key":"9bb10799822a9876201ae2b04a508de1142ccbe70c253812987e8708efbd454b","lane":"cross","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":131,"stamp":"571d0d52fd9c863c3f599c6c9e7af71c","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-apple-darwin/clippy","host":"linux-x86_64","key":"9bb10799822a9876201ae2b04a508de1142ccbe70c253812987e8708efbd454b","lane":"cross","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":131,"stamp":"09bab64fa8b9becba3744a74d4dffa2d","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-apple-darwin/dylint","host":"linux-x86_64","key":"9bb10799822a9876201ae2b04a508de1142ccbe70c253812987e8708efbd454b","lane":"cross","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":131,"stamp":"77a010e1b2bab7c034977b7a59a8934f","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"cpp/linux-x64/tier2","host":"linux-x86_64","key":"0ce9af6524b400e1de153300bda39eb533ed8bf60f3096bcf823477a0eeabb01","lane":"tier2-linux","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":2752,"stamp":"0411277420706ed7b281b8a3abc856e0","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"general/all/client-lint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"e5b49e35016394ee605e437185387cd3","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"f3297e00b0b72703e8048c2268607f0d","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"d238f3d5352980a1789ed4ad5d34d517","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"7f247223ee71e1d4a770d3a596663a54","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"2a47660795032a00682fc43e1af4ad7b","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"a6b41de0a3890cf360de357e2f534554","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"bdc5a5be1755e76a96e131b6a5dd456a","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"1da891a6c7ba644f34f79739dcfd2794","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"ae0a5b4c0d8e4204e4b2036555b8fd98","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"d99e77d6975534214dfd4eab7ff175ff","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"31a1153cc1601f57a6b6b1bd18c7434d","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"5b1758ede01e643302885313ba793396","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"fe060b3b9b63d22b6d04844aab582d7f9597447797bddd61aa06fedc0c93e75e","lane":"client-lint","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":132,"stamp":"c2cc8a78edda53ce344423bb9c6e0b6a","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"} Ci-Attestation: {"at":1794534426,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"39c1c1ab8ec365fd5d8371cde7e6618fe66bb0bfd0bc3a857bc23ef67dced79f","lane":"client-test-x86_64-unknown-linux-gnu","parents":["c5471855f95860130663b49357d8f71b6cf16a8d"],"secs":293,"stamp":"3051157c708a424901b436b4076b6225","tree":"e26bb80a0afc7e0098e445b8620c6c62ac541f85","v":1,"via":"run"}
|
Coordinator: rebased onto master after #4860 merged (f0e77ff → 3560233). The rebase changed nothing in the content of the PR: the same 7 commits, 29 files, +856/−98. The one conflict was the |
f0e77ff to
3560233
Compare
…ixes #6014) get_source_info2() is now the safe core obs-source::info_versioned::find behind the hidden export of the same name (rust-hidden.d; declared in obs-internal.h without EXPORT), so obs_register_source_s()'s duplicate check reaches it unchanged: the first source_types entry, in registration order, whose unversioned ID equals the asked one bytewise and whose version equals the asked version, returned as the C entry's own address. The count is read before each entry and the version only after the ID matched, as the C loop and its && did. obs_enable_source_type(), the hidden export the Lua source scripting uses to disable and re-enable a type it redefines, is now the Rust export of the same name (rust-exports.d): the type found by full ID through get_source_info(), its output_flags read once and stored once with OBS_SOURCE_CAP_DISABLED cleared or set, every other flag kept; an unknown ID changes nothing. The entries stay C: obs-source-info-lookup-fields.c.h gains the unversioned ID, version and output flags accessors beside get_source_info()'s, and the original moves to the reference-only group libobs.ported-source-info-versioned. Intentional differences, the same as get_source_info()'s (#4608): a NULL asked ID or name finds nothing and changes nothing, and a registered NULL unversioned ID matches nothing; the C passed both to strcmp. Tier 1: 10/10. Tier 3 (oracle/source_info_lookup.c) runs the original C of both against the Rust exports over the production adapter on the per-thread stand-in core: the characterized cases, an unread asked ID with nothing registered, and proptests over registries of up to 12 entries, comparing the entry found by address and every byte of the registry; the NULL differences are checked on the Rust side alone. Dropping the version compare or toggling instead of setting the disabled bit fails it. Tier 2: test_source_info_versioned 6/6, test_source_info_lookup 3/3, test_source_type_info 6/6, test_missing_source_types 4/4, test_source_type_enum 2/2 and test_source_type_id_getters 2/2, against hybrid and the C reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1796060999,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"7d26dc7499b5f6fe04468fbfd2130308","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"14ff3cfd020ec02382e1db4371b1262c","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"2067ba4a34697ecea6ae3784f7863177","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"ccab9bb9f8fb2087ee19e1a30755458f","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"general/all/client-lint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"a6aecfe1e69ab17fc479f042fdf1a7c8","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"8e019fbd48188e5b20aed7a4239e4810","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"f201ef1e9980b4ff5671aa2bf718c30f","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"4e5f122955455108e93ade137a156068","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"2cd9ba3902939df28f78c34cea8a3aea","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"8ac9f663af4490acede9d4eef5c218e5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"30102248758bb7eb351b2a659c8c9967","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"720b2602d98fe8aa2e63ae9666eea66d","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"af10e6988c661e06b1015f4c9cf653a4","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"5f1c1aada11b18803bd9cb852d2fd3a5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"bbe2acf0cb68214d5f50534978cd01d5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"83b0dc4bf91def7d7de9206fd018a0c3","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"f572bcdeee2623326bcfa1f481d27009","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"fe4ad3fbc5c8c2e68785a19c0434ff86","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796061305,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"dae2e0dec733a9cf0f1577c21950d0f96930d406aa056cddaa4efbce58903e04","lane":"client-test-x86_64-unknown-linux-gnu","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":305,"stamp":"e86edaaa9592c5d92bd1a792af51ea9c","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Client-Checks: {"checks":{"base":"e230d26f7381e8d26081ae3263428dc681fd138c","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.ported-source-info-versioned+.h.c","libobs/build/ported-source-sets/source-info-versioned.json","libobs/cmake/rust-exports.d/obs-source-source_info_versioned.txt","libobs/cmake/rust-hidden.d/obs-source-source_info_versioned.txt","libobs/obs-internal.h","libobs/obs-source-info-lookup-fields.c.h","libobs/obs-source-info-versioned.c.h","libobs/obs-source.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_source_info_versioned_swap_is_registered.rs","rust/obs-build/tests/native/registration/rust-static/support/z-image-decode.json","rust/obs-c-oracle/oracle/source_info_lookup.c","rust/obs-source/src/ffi/mod.rs","rust/obs-source/src/ffi/source_info_versioned.rs","rust/obs-source/src/info_versioned.rs","rust/obs-source/src/lib.rs","rust/obs-source/tests/source/info_versioned.rs","rust/obs-source/tests/source/info_versioned_parity.rs","rust/obs-source/tests/source/main.rs","test/cmocka/build/test-graph.json","test/cmocka/test_source_info_versioned.c","test/cmocka/tests.d/test_source_info_versioned.cmake"],"head":"03f1d854116b291f3869e1237339ab7d1c2fd787","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"86e95645885a028fda892692fe95bd7e09ee6b1a52bccc21e22b7ba01177f582","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725"}}
…ixes obs-rust#6014) (obs-rust#6016) * test: characterize the versioned source type lookup and obs_enable_source_type (Refs obs-rust#6014) The new cmocka test_source_info_versioned pins get_source_info2() through obs_register_source(), whose duplicate check it is: a second registration with the same unversioned ID and version is refused, with one "Source '<id>' already exists! Duplicate library?" warning, and the first one stays, across the input and filter lists too; another version of the same ID is kept, in either order; the unversioned ID is compared whole and case-sensitively, so "info2_x" at version 1 (stored as "info2_x_v1") does not refuse an unversioned "info2_x_v1". obs_enable_source_type() sets and clears OBS_SOURCE_CAP_DISABLED by full (versioned) ID, keeps every other flag, and leaves unknown IDs alone. A NULL ID is left out: the C passes it to strcmp. 6/6 against hybrid and the C reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> * libobs: extract get_source_info2 and obs_enable_source_type verbatim (Refs obs-rust#6014) Move get_source_info2(), the versioned source type lookup behind obs_register_source_s()'s duplicate check, and the hidden export obs_enable_source_type() unchanged out of obs-source.c.h into obs-source-info-versioned.c.h (live group libobs.core-source). Both keep their names and linkage. No behavior change. test_source_info_versioned 6/6 against hybrid and the C reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> * obs-source: Tier 1 for get_source_info2 and obs_enable_source_type, RED (Refs obs-rust#6014) The safe core obs-source::info_versioned: find() over a VersionedRegistry (the count, each entry's unversioned ID and its version) and set_enabled() over a type's TypeFlags, both todo!(). Ten Tier 1 tests over model registries: the cases of test_source_info_versioned as the registration's duplicate check sees them (same ID and version refused, other versions kept, the unversioned ID compared whole and bytewise), the first match winning, the C loop's read order (the count before every entry and at the end, the version only after the ID matched), the asked ID read once and never with nothing registered, NULL asked and registered IDs finding nothing, and the disabled bit set and cleared with every other bit kept, the flags read once and stored once. soldr cargo test -p obs-data --test obs-tests-core source::info_versioned test result: FAILED. 0 passed; 10 failed (not yet implemented: get_source_info2 / obs_enable_source_type) Co-Authored-By: Claude Opus 5.5 <[email protected]> * obs-source: port get_source_info2 and obs_enable_source_type to Rust (Fixes obs-rust#6014) get_source_info2() is now the safe core obs-source::info_versioned::find behind the hidden export of the same name (rust-hidden.d; declared in obs-internal.h without EXPORT), so obs_register_source_s()'s duplicate check reaches it unchanged: the first source_types entry, in registration order, whose unversioned ID equals the asked one bytewise and whose version equals the asked version, returned as the C entry's own address. The count is read before each entry and the version only after the ID matched, as the C loop and its && did. obs_enable_source_type(), the hidden export the Lua source scripting uses to disable and re-enable a type it redefines, is now the Rust export of the same name (rust-exports.d): the type found by full ID through get_source_info(), its output_flags read once and stored once with OBS_SOURCE_CAP_DISABLED cleared or set, every other flag kept; an unknown ID changes nothing. The entries stay C: obs-source-info-lookup-fields.c.h gains the unversioned ID, version and output flags accessors beside get_source_info()'s, and the original moves to the reference-only group libobs.ported-source-info-versioned. Intentional differences, the same as get_source_info()'s (obs-rust#4608): a NULL asked ID or name finds nothing and changes nothing, and a registered NULL unversioned ID matches nothing; the C passed both to strcmp. Tier 1: 10/10. Tier 3 (oracle/source_info_lookup.c) runs the original C of both against the Rust exports over the production adapter on the per-thread stand-in core: the characterized cases, an unread asked ID with nothing registered, and proptests over registries of up to 12 entries, comparing the entry found by address and every byte of the registry; the NULL differences are checked on the Rust side alone. Dropping the version compare or toggling instead of setting the disabled bit fails it. Tier 2: test_source_info_versioned 6/6, test_source_info_lookup 3/3, test_source_type_info 6/6, test_missing_source_types 4/4, test_source_type_enum 2/2 and test_source_type_id_getters 2/2, against hybrid and the C reference. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1796060999,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"7d26dc7499b5f6fe04468fbfd2130308","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"14ff3cfd020ec02382e1db4371b1262c","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"2067ba4a34697ecea6ae3784f7863177","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"ccab9bb9f8fb2087ee19e1a30755458f","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"general/all/client-lint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"a6aecfe1e69ab17fc479f042fdf1a7c8","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060999,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":78,"stamp":"8e019fbd48188e5b20aed7a4239e4810","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"f201ef1e9980b4ff5671aa2bf718c30f","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"4e5f122955455108e93ade137a156068","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"2cd9ba3902939df28f78c34cea8a3aea","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"8ac9f663af4490acede9d4eef5c218e5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"30102248758bb7eb351b2a659c8c9967","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"720b2602d98fe8aa2e63ae9666eea66d","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"af10e6988c661e06b1015f4c9cf653a4","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"5f1c1aada11b18803bd9cb852d2fd3a5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"bbe2acf0cb68214d5f50534978cd01d5","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"83b0dc4bf91def7d7de9206fd018a0c3","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"f572bcdeee2623326bcfa1f481d27009","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796060921,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"1fe24d75c7137483de1c700296aad4568daadacbfde9c75a2a3576a9d8f8d5ab","lane":"client-lint","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":120,"stamp":"fe4ad3fbc5c8c2e68785a19c0434ff86","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Ci-Attestation: {"at":1796061305,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"dae2e0dec733a9cf0f1577c21950d0f96930d406aa056cddaa4efbce58903e04","lane":"client-test-x86_64-unknown-linux-gnu","parents":["b1c938f13a1914bf86621bbaeb16d94a6f8439bf"],"secs":305,"stamp":"e86edaaa9592c5d92bd1a792af51ea9c","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725","v":1,"via":"run"} Client-Checks: {"checks":{"base":"e230d26f7381e8d26081ae3263428dc681fd138c","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.ported-source-info-versioned+.h.c","libobs/build/ported-source-sets/source-info-versioned.json","libobs/cmake/rust-exports.d/obs-source-source_info_versioned.txt","libobs/cmake/rust-hidden.d/obs-source-source_info_versioned.txt","libobs/obs-internal.h","libobs/obs-source-info-lookup-fields.c.h","libobs/obs-source-info-versioned.c.h","libobs/obs-source.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_source_info_versioned_swap_is_registered.rs","rust/obs-build/tests/native/registration/rust-static/support/z-image-decode.json","rust/obs-c-oracle/oracle/source_info_lookup.c","rust/obs-source/src/ffi/mod.rs","rust/obs-source/src/ffi/source_info_versioned.rs","rust/obs-source/src/info_versioned.rs","rust/obs-source/src/lib.rs","rust/obs-source/tests/source/info_versioned.rs","rust/obs-source/tests/source/info_versioned_parity.rs","rust/obs-source/tests/source/main.rs","test/cmocka/build/test-graph.json","test/cmocka/test_source_info_versioned.c","test/cmocka/tests.d/test_source_info_versioned.cmake"],"head":"03f1d854116b291f3869e1237339ab7d1c2fd787","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"86e95645885a028fda892692fe95bd7e09ee6b1a52bccc21e22b7ba01177f582","tree":"4c528f5ac91309c54dfef0f23442a53c430cb725"}} * obs-c-oracle: build the renamed obs_enable_source_type without EXPORT (Refs obs-rust#6014) clang-cl refuses dllexport on a redeclaration of the renamed oracle symbol. Co-Authored-By: Claude Opus 5.5 <[email protected]> Ci-Attestation: {"at":1796062158,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":76,"stamp":"55206e3c7827327d83d183476e186d9b","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062158,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":76,"stamp":"2ac928b13645cbbe4333d28cdf0a7cb3","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062158,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":76,"stamp":"ab7df62ca1245755ffd28fbd2e1f163e","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062158,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":76,"stamp":"4f6b826134263f9f323ce06d6c2d5d16","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"general/all/client-lint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"ee6fd38c1b7c30e8aaf17f656fce2133","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062158,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":76,"stamp":"9362e207830d15e461c167fc9c5acafe","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"6ea6fbee7f99d4fce78d84eb98ec9fcd","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"2e3d0f3bd222e8bf28d2be6a15d0a084","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"749310a0299fdd9d45a0c5457a66ce7b","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"7ab1fbbff8944b17a1d3f6e45817cfda","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"ba5bf3320c4caa5d674f9d797855f7e6","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"e62c8c5ad547dd8b30cf1c4e17f10ad1","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"55a193cb3b9118b7f4e361252bba128d","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"9dc83b5e859138bb50b15994ce899d0e","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"df8464248abc20dc60a6af38011a6a76","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"8e3d7f90cc614fbe48d5bdf7751b6040","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"e788d6f9d176ab99c4a16ab559266fa6","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062081,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"f864a2c18ebd908ad9042d3dd97ffa32b1a2dd14858c84d7e15d9f5e8224d735","lane":"client-lint","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":96,"stamp":"546ff6f02c636a9dc49d45f09f4dde6d","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Ci-Attestation: {"at":1796062520,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"b154620f3972146ec6eb61888aedd04c2330143e09d6a81a18ce447ae913822f","lane":"client-test-x86_64-unknown-linux-gnu","parents":["f598104b7d5e358277fc8551b6b15acc9fa29f74"],"secs":362,"stamp":"d7f36294f44ea6d46e04c9bc793bf30e","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3","v":1,"via":"run"} Client-Checks: {"checks":{"base":"e230d26f7381e8d26081ae3263428dc681fd138c","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.ported-source-info-versioned+.h.c","libobs/build/ported-source-sets/source-info-versioned.json","libobs/cmake/rust-exports.d/obs-source-source_info_versioned.txt","libobs/cmake/rust-hidden.d/obs-source-source_info_versioned.txt","libobs/obs-internal.h","libobs/obs-source-info-lookup-fields.c.h","libobs/obs-source-info-versioned.c.h","libobs/obs-source.c.h","rust/README.md","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_source_info_versioned_swap_is_registered.rs","rust/obs-c-oracle/oracle/source_info_lookup.c","rust/obs-source/src/ffi/mod.rs","rust/obs-source/src/ffi/source_info_versioned.rs","rust/obs-source/src/info_versioned.rs","rust/obs-source/src/lib.rs","rust/obs-source/tests/source/info_versioned.rs","rust/obs-source/tests/source/info_versioned_parity.rs","rust/obs-source/tests/source/main.rs","test/cmocka/build/test-graph.json","test/cmocka/test_source_info_versioned.c","test/cmocka/tests.d/test_source_info_versioned.cmake"],"head":"bae97e08a159fb4de18c76f29a2d6feb79d4900c","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]\n{'jsonschema': '4.26.0', 'json_source_map': '1.0.5'}","uv":"uv 0.13.5 (x86_64-unknown-linux-gnu)","xmllint":"xmllint: using libxml version 21504-GITv2.15.4\n compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"8cbf7b9ca16168716612b99bc2e4223d9a3e427536ea8e813deefe468f56b6af","tree":"bf6c5ef0337e715efd78449f9fc35f1d3fdaf5c3"}} --------- Co-authored-by: Claude Opus 5.5 <[email protected]>
Fixes #4606
What and why
Ports
get_source_info(libobs/obs-source-info-lookup.c.h) to theobs-sourcecrate. It is the lookup of a registered source type by ID behindobs_get_source_output_flags,obs_source_get_display_name,obs_is_source_configurable,obs_get_source_defaults,obs_get_source_properties,obs_source_get_icon_type,obs_enable_source_typeand source creation. This finishes the file: its callerobs_source_get_icon_typewas already Rust and called back into the C lookup; it now calls the Rust one directly.info_lookup) walks the registry through a small trait: the first entry whose ID equals the asked ID, bytewise likestrcmp, with the count read again before each entry as the C loop condition does. The asked ID is read only at the first comparison, where the C'sstrcmpreads it, so with nothing registered it is never touched.ffi::source_info_lookup) readsobs->source_typesthrough a new private adapter,libobs/obs-source-info-lookup-fields.c.h(count, entry address, entry ID), and returns the C entry's own address, which callers keep. Rust never readsstruct obs_source_info's layout.libobs.ported-source-info-lookup+, C reference only). The symbol stays hidden (rust-hidden.d/obs-source-source_info_lookup.txt); the exported symbol sets of the C, hybrid and C-reference builds are identical (1768 each), withget_source_infoand the adapter local.source-icon-type-link-support.c) builds the adapter instead of the C lookup. The oracles whose code looks types up (icon type, theme icon from feat(obs-source): swap source theme icon callbacks to Rust (Refs #4696) #4703, type metadata from feat(obs-source): swap source type metadata queries to Rust (Refs #4719) #4733) used to define their ownget_source_infostand-in; they now share one per-thread stand-in core inoracle/source_info_lookup.cunder the Rust lookup: the icon registry by default, another installed withoracle_source_registry_exchange_core(feat(obs-source): swap source type metadata queries to Rust (Refs #4719) #4733's API, kept), and each lookup counted as it starts. The theme fixture's "second lookup finds nothing" case empties the registry at the second lookup. Two assertions change with it: a NULL ID reads no registry, so its lookup is not counted (theme and type metadata parity), and the type metadata check no longer sees the asked ID's pointer, which only the Rust lookup reads.oracle/source_type_lookup.cis gone;ffi::source_type_lookupnow wraps the Rust lookup for the other shims.One intentional difference: the C passes a NULL ID straight to
strcmp, so every call above crashed on a NULL ID once any source type was registered (the C reference segfaults onobs_get_source_output_flags(NULL)). The port finds nothing for a NULL ID, which every caller already handles as "not found": with hybrid libobs those calls return 0/NULL/false/UNKNOWN, andobs_source_create_private(NULL, ...)takes the unknown-ID path ("Source ID '(null)' not found", "Failed to create source") without crashing. A registered NULL ID matches nothing, for the same reason. Both are listed in the parity test header, the README row and the issue, and have a line in the features ledger.No upstream issue.
RED → GREEN
test: Characterize the source type lookupaddstest_source_info_lookup(3 cases through the public calls), passing on the plain C build, hybrid libobs and libobs-c-reference before any Rust.obs-source: Add the source type lookup tests(943a6cc):soldr cargo test -p obs-data --test obs-tests-core source::info_lookup::fails all 7 Tier 1 tests, each panicking at thetodo!()core.obs-source: Port the source type lookup. A second pair keeps the asked ID unread until the first comparison:obs-source: Test when the type lookup reads its IDfailssource::info_lookup::asked_id_is_read_only_to_compare(the ID was read with nothing registered), andobs-source: Read the type lookup's ID only to comparefixes it. Runs were on f0e77ff (rebased onto current master):obs-source: Port the source type lookupand the review pair,type_info_parity::empty_source_type_registry_does_not_read_query(from feat(obs-source): swap source type metadata queries to Rust (Refs #4719) #4733) fails, because the lookup still read the asked ID with nothing registered;obs-source: Read the type lookup's ID only to comparefixes it. Every test passes at the head.info_lookup_parity4/4 (characterized cases, an unreadable ID with nothing registered taken by both sides, the NULL-ID differences on the Rust side, and a proptest over random registries of up to 12 IDs with duplicates, empty and non-UTF-8 IDs);source_icon_type_parity2/2 over the shared lookup. Seven planted mutants in the core (last match, prefix and case-folded compares, skipping the first or last entry, an index off by one, never matching the empty ID) each fail it.test_source_info_lookupand the icon, theme icon and type metadata tests pass on hybrid, C reference and the plain C build. Full native ctest on hybrid and C reference (runs were on f352e46ed, before the rebase; the focused tests and the Docker Tier 2 reran on the new head), 906 tests each: the same 3 fail on both without a sound server (test_v4l2_vcam_audio,test_v4l2_vmic_libpulse,test_source_audio_settingstimeout), 3 skipped on each (test_pulse_default_follow,test_v4l2_vivid_replug,test_v4l2_vivid_stall);test_pulse_default_follow_pipewirefailed once on hybrid under load and passes alone. All 59 rust-static (*_rust) tests pass with the new link support.--test-diff8456 passed, 6 skipped; the stamping local gate (Rust tests and Tier 2 in Docker on both hybrid and the C reference);--lane lint,--lane dylint,--lane cross, Windows MSVC clippy--all-targetsandci/windows_link_check.pypass. The head is not stamped: its Docker Tier 2 lane failed twice, each time on a different audio or screencast test in the C-reference run (test_pulse_stream_restartandtest_screencast_portal_teardown, thentest_v4l2_vmic_server); each passes alone on hybrid and the C reference, so PR CI runs the full suite. Theport_comparisonbench does not link on master either (duplicategs_timer_*stand-ins after the timer dispatch ports), filed as bench: port_comparison links gs_timer stand-ins twice #4615; this PR does not touch it.OBS_PARITY_CASES=reduced), peak RSS 6.4 MB over 25 runs, no own threads.Checklist
master(or the description starts with a Stacked: note)docs/features.mdis added or updated (not applicable: no user-visible change)-W..., ratchets): built with scripting ON (PR CI builds no OBS app: rungh workflow run ci.yml --ref <branch>for the full builds) and cross-checked with clang and MSVC