Skip to content

libobs: extract output encoder and service name lookups verbatim (Refs #5686) - #5689

Draft
zackees wants to merge 6 commits into
masterfrom
port/5686-name-registry-lookups
Draft

zackees wants to merge 6 commits into
masterfrom
port/5686-name-registry-lookups

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Stacked on #5688: review only the commits after 1283eda.

Move obs_get_output_by_name, obs_get_encoder_by_name and obs_get_service_by_name verbatim from obs.c.h to obs-registry-by-name.c.h in libobs.core. Move their shared get_context_by_name engine and three addref callbacks verbatim into a private inline header provided through the core PCH. Source/canvas callers keep the same engine; the extracted wrapper file can compile independently when later selected for the C reference. No Rust, signatures, public headers, existing C tests or behavior change.

Refs #5686

HOLD: keep DRAFT and auto-merge off while backpressure is CLOSED. Claim bot is pending without refusal or competing claim. Land #5688 first; replay only this extraction's four commits. Also land older transition-UUID extraction #5663 first: git merge-tree shows an obs.c.h adjacency conflict, so the second replay must preserve both removed blocks. Merge-tree is clean against #5645 and #5649.

Additional merge hold: this changes libobs/build/libobs.pch.h. BUILD.md lines 343-350 require full Windows and macOS application builds before merge. Local hybrid/fixture cross-links do not satisfy that requirement. Those full app builds have not been run; the landing coordinator must obtain their passing evidence before promoting this extraction.

RED 04b063a deliberately omitted the new unity registration: ci/test_build_groups.py failed on the orphan. GREEN 94e5104 registered it (10/10 pass); final a011dd7 makes the private helpers available through the PCH. All three wrapper bodies and all four helper bodies are byte-identical to master. The four-commit replay on the stamped parent has an all-equal range-diff.

Final Linux replay passes the new suite plus unchanged encoder_init, service_lifecycle and context_names, each three consecutive repetitions on BOTH backends. ldd confirms the selected libraries, and all 1,769 public exports match. Full final lint passes (135.3s), build groups pass 10/10, and six-target client lint/Dylint passes (29.8s). Missing xmllint prevents complete client-check attestation, so ordinary PR CI remains required. Windows eight-category links pass (107.3s). Windows MSVC x86_64 and Darwin arm64 each pass hybrid libobs plus all 83 normal Rust-static fixtures and this shared actual-library fixture (85 targets per alias, explicit exit 0; local-test-aYxRV2.log). The diagnostic parser reports warning-only anomalous output with command exit 0; both recorded alias exits are 0. These checks do not satisfy the separate full application-build hold above. Sole primary clud-review is clean, including the standalone-helper correction. No new test executable beyond the prerequisite C characterization, no Rust test binary. Rust Tier 1/Tier 3 and network Tier 4 do not apply to this behavior-neutral C prerequisite. Cross-links do not prove native Windows/macOS execution.

@zackees zackees changed the title libobs: share private inline name lookup helpers through core PCH (Refs #5686) libobs: extract output encoder and service name lookups verbatim (Refs #5686) Nov 25, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In progress in obs-rust Multiview Nov 25, 2026
@zackees
zackees force-pushed the port/5686-name-registry-lookups branch from a011dd7 to 9595a26 Compare November 26, 2026 06:54
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Stalled in obs-rust Multiview Nov 29, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Stalled to Needs fix in obs-rust Multiview Dec 4, 2026
#5686)

Ci-Attestation: {"at":1795619269,"gate":"general/all/client-lint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"8a4f6fbab1da0b3040d6f876288c01bc","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"449f878bbbfe1f373dd41f440000744c","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"8de57151e8d15d69f4ef28011ecc439a","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"9336ebea586b172f12f5ef90fcc70143","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"c7eba2a46442cbf3d7aeebca2e18edc9","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"896778969a2ced7ab3f6212d5d3ced6f","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"bda82e4a822892a81ef2d79471eef977","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"8a77f4edb0c66af22f8539856e44071f","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"654e81bf45a0ba6f2470c48cdc9e46e7","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"e20f805219670ded65e93d853008c16d","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"882b0671ac326d24f99b0be07a4abe7f","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"75d978746ff74da5d5d13008e42a993a","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
Ci-Attestation: {"at":1795619269,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"b77dad7254085a572611b5359547ea8a9ac30fb68f24dedc6d8d586f64e4058a","lane":"client-lint","parents":["10700af036a20abe05f301ff97fe1d84349b2e0a"],"secs":21,"stamp":"4b86eb24746df2318b22f05e4d4d7f8a","tree":"5f6325f53b97a2f6bb6d213e4c24ba1c55136408","v":1,"via":"run"}
#5686)

Client-Checks: {"checks":{"base":"8a8e7b63feb4fce649904a2bd30152463438d087","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core+.h.c","libobs/build/libobs.pch.h","libobs/obs-context-name-lookup.h","libobs/obs-registry-by-name.c.h","libobs/obs.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_registry_by_name.c"],"head":"942ba9bc8649da90ae41651ffc12c16844478b81","tools":{"orchestrator-python":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.1.3 ]","schema-dependencies":"3.13.15 (main, Aug 14 2026, 15:34:59) [Clang 22.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 21503\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ISO8859X Regexps Automata RelaxNG Schemas Modules Debug"},"tracked-digest":"51bbabdc59ec2e71363f2f826746cb1ea3422c7927559bce433c4f24387b8488","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc"}}

Ci-Attestation: {"at":1795675723,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":81,"stamp":"aece8411596cd35ecd7accca7a23d359","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
Ci-Attestation: {"at":1795675723,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":81,"stamp":"c44118d594d4ae01dee381bc8ea532ef","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
Ci-Attestation: {"at":1795675723,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":81,"stamp":"a2be4a1ce75c3f8e32e3e4318d8d384f","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
Ci-Attestation: {"at":1795675723,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":81,"stamp":"9731cb2df5840bf4b69aaca368db936c","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
Ci-Attestation: {"at":1796411534,"gate":"general/all/client-lint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"f1b5a5a92415ed7707eeb6b236c5fab6","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1795675723,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":81,"stamp":"539b7cebef31e4fa8f70a9ac14cbc646","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"85530ad9b3448f3a0a029a5f848d2c79","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"183fb1e902094d18dcb94bd2eb18ef60","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"ca4106546e18998a0f9e427ac1cfce6a","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"99070290edd9b6e81ca9af2bafd02c33","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"e3f442234c82e4e40f069f7e854bdeea","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"f17cf3d6793efccb0711afbfbf8d1b31","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"9f81860743f394a1b13128d4768b0053","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"6dc8d2f23c5dc0264ddf3b2044d49941","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"bdfef8445cd5ad813c502f0b27b85d56","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411535,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"fcb2cac53d7ed1bf56054d4400a454c4","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411534,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"527e96981e7d45347bb4dc8faeef37d7","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1796411534,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"7fe2451de6ba49fa53a422d272d4a1116dd3fedde6db587996b0e19f8b0e9992","lane":"client-lint","parents":["1983844f027a2f78665c8b5581230cbe88c1b1ed"],"secs":21,"stamp":"38eff20bc502278b3b0419c56176c12f","tree":"4c76fdf15d05011c0217df8a99874280a04a60bf","v":1,"via":"run"}
Ci-Attestation: {"at":1795676048,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"c2cb6e2e3f9a67dd360f0cdfe0959c813b2474163a99e791f808e1aaf573dfe3","lane":"client-test-x86_64-unknown-linux-gnu","parents":["1ec5eba67013b27a51bedbe02c4f98883948f33d"],"secs":324,"stamp":"d0073041ef187f25c7e724266b5fe5c7","tree":"3b61be0837b82ada4328b06915b2818d54d43cbc","v":1,"via":"run"}
@zackees
zackees force-pushed the port/5686-name-registry-lookups branch from 9595a26 to 701dafd Compare December 4, 2026 19:12

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Needs fix

Development

Successfully merging this pull request may close these issues.

1 participant