Skip to content

obs-output: port hidden service registry lookup to Rust (Refs #5273) - #5280

Merged
zackees merged 4 commits into
masterfrom
port/5273-service-find
Nov 25, 2026
Merged

zackees merged 4 commits into
masterfrom
port/5273-service-find

Conversation

@zackees

@zackees zackees commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Refs #5273.

The hidden find_service lookup walks C-owned registry entries lazily in safe Rust and returns the first byte-exact C-string match as the exact borrowed registry pointer. Real private C projections retain native layouts and storage. The original extracted C body remains unchanged in the reference-only unity group and differential oracle. There are no intentional behavior differences in the original initialized-core/valid-string domain, and no new ABI layout view.

The unchanged test_service_find.c runs in its existing external mode against Rust and the real projections. The service getters/settings/lifecycle oracle now calls the real lookup seam rather than a fake lookup. Existing C tests, public headers, WebSocket sources and workflow files are unchanged. Tier 4 does not apply to this private lookup.

Prerequisite #5246 has merged. This landing replays only the four swap/fixup commits onto master e07fc583145e01710a0ba1b190bc145d3035eeaa, including the previously unpushed exact-count fixture correction. git range-diff reports all four patches unchanged. The complete current shared native-support manifest is preserved byte-for-byte, including its existing service-find member; that member now compiles the real projections. Newer service info-table accessor ports remain intact.

RED ff2c1b2c2 mirrors the C characterization against the todo stub (originally verified RED before this replay). GREEN 9a777becd implements the safe core and real seam; 2130674ee guards a null projected entry. f208b5162633 counts the ninth private-step fixture. The original last-match mutation was killed by the original-C edge differential.

Fresh landing validation on this tree: four focused lookup Tier 1/3 tests passed; all 1,426 output-category tests passed; all 359 native_build:: tests passed, including the exact-list private-step check and both canonical video-info/shared-support checks. All 22 native-support, graph-slice, build-group and port-metadata Python checks passed. git diff --check passed.

The original pre-rebase validation built every configured Linux Rust-static fixture, ran unchanged service characterizations and settings/getters/lifecycle suites against both libobs implementations, compared identical 1,769-symbol exports, and linked all eight Windows Rust category binaries plus the Windows and Darwin native fixture inventories. Those are historical results, not a claim of fresh native runtime validation on this rebased head. Required hosted checks retain native Tier 2 and link validation.

Test cost (original measurements, unchanged test code): four tests in the existing Core category; 25 debug reduced-parity repetitions per module, longest 2.52 s safe / 2.10 s differential including startup on the loaded host, peak child RSS 22,848 KiB, no test-owned threads. The existing eight Rust category executables are preserved. The fresh focused run executed all four in 0.04 s.

The single fresh SOLDR_PORCELAIN=0 SOLDR_RUSTC_WRAPPER=none CMAKE_GENERATOR=Ninja CARGO_BUILD_JOBS=4 ./lint run passed with exit 0 and == lane lint: ok (943.1s), including repository self-tests, formatting, workspace Clippy and declared feature configurations. The report wrapper's parsed verdict was unknown; the command exit status and final lane line confirm success.

Publication: f208b51626331069a49e636aad1cf1fec9289f73, pushed successfully through ./push --replace-remote-head 32256d8af4f8ac622676c5ad24c415b6e5251351 with the exact old-head lease. Client lint passed in 356.9 seconds, including Clippy and Dylint on all six supported targets. Client checks could not run because xmllint is missing; no complete client bundle or host-test proof is claimed. ./push explicitly retained ordinary PR CI. The remote branch and PR both match the published SHA. Hosted checks have not been observed to completion.

@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees zackees changed the title test(obs-output): mirror service registry lookup against Rust stub (Refs #5273) obs-output: port hidden service registry lookup to Rust (Refs #5273) Nov 19, 2026
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 19, 2026
@zackees
zackees marked this pull request as draft November 19, 2026 23:12
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
@zackees
zackees force-pushed the port/5273-service-find branch from 4ce3179 to 32256d8 Compare November 21, 2026 10:39
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to In progress in obs-rust Multiview Nov 21, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In progress to Needs fix in obs-rust Multiview Nov 21, 2026
…#5273)

Ci-Attestation: {"at":1795256714,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":311,"stamp":"a91d810bb8fe5ed3b42c10eafcd5c31b","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256714,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":311,"stamp":"fcb2970d6e5ac19e8fec6111b0db6f89","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256714,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":311,"stamp":"52a0e1717e17413d7832cda19213e11e","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256714,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":311,"stamp":"39bf99d29c9897769da84ab39eb8d8e2","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256397,"gate":"general/all/client-lint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"f9c6724c4e5ce5892e6c619fe526eb7b","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256714,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":311,"stamp":"408a27f08fdb11d811f1485eb111f05a","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256400,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"55f264e31e60adb55d0eba90a5395bfd","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256400,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"d9c45f4d10797285ba3c5cc6d0740885","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256399,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"f8787498fbf7ecf89d8a217e48c82e49","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256399,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"fc0aac68c1960a4d09396ffcc250dcf5","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256398,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"31df44a7a2b8b18a1b32f37a631012d1","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256398,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"b2ad770d3655137c8678f057709eaf9b","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256399,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"a55a4d2fe27f4056445bc58755269760","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256400,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"020c366fe436ce94ac6c6a3e1d5ed10a","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256398,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"d7b74b0b4d05eaaa49fdae61a6041d6a","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256398,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"a9eae19875cb787dc5e8a5cc6b3783c3","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256397,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"8ba0314818678e89d6c77cd388e709b8","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795256397,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ca98f71368c7d46490a7e59851f05421a805aa809664bdc117086ce30abd45c9","lane":"client-lint","parents":["5183a83dff0c6d6c7bb0572c9226e9e40bd4172c"],"secs":976,"stamp":"2bdd5ba465a3e2933e7ff093cb01cf36","tree":"9d32f56686bacf11dceb6eb3b8f3da25c5eeae0c","v":1,"via":"run"}
Ci-Attestation: {"at":1795258546,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["32256d8af4f8ac622676c5ad24c415b6e5251351"],"secs":268,"stamp":"4ce2697b028ea6a7d3f373a2a4ad4b98","tree":"fec610e752c68d9cb7049e7a55389f1a26a0e408","v":1,"via":"run"}
Ci-Attestation: {"at":1795258546,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["32256d8af4f8ac622676c5ad24c415b6e5251351"],"secs":268,"stamp":"65fa4894ca8d458befe0d3f1664e3c4e","tree":"fec610e752c68d9cb7049e7a55389f1a26a0e408","v":1,"via":"run"}
Ci-Attestation: {"at":1795258546,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["32256d8af4f8ac622676c5ad24c415b6e5251351"],"secs":268,"stamp":"add43cc5466e3242b8e0e79e0fc11dfb","tree":"fec610e752c68d9cb7049e7a55389f1a26a0e408","v":1,"via":"run"}
Ci-Attestation: {"at":1795258546,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["32256d8af4f8ac622676c5ad24c415b6e5251351"],"secs":268,"stamp":"97cf85cac8d9672cca7d4fd3c27fd7de","tree":"fec610e752c68d9cb7049e7a55389f1a26a0e408","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"general/all/client-lint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"3353813a2f1be1f82680a1c18841eb0b","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795258546,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["32256d8af4f8ac622676c5ad24c415b6e5251351"],"secs":268,"stamp":"da7a42975896a5646855b094335e5044","tree":"fec610e752c68d9cb7049e7a55389f1a26a0e408","v":1,"via":"run"}
Ci-Attestation: {"at":1795601080,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"468ebdf780bff6a38c63bf33ce6ed849","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601080,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"a8494b6514358e35050a436db619af21","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"467c69740232b051ba6caaf1165b8a00","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601080,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"ccbe07e6071dc8c0b3ab7894dcb50a44","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"9d6de65888bf5eaf7720905dcde86035","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"cdf166517ade8bc68774c17648b982a4","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601080,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"388f4c9a846b836a14d10d6b419e319e","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601080,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"209c42eb5ea17669e2131a3e7656bf20","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"499b48f834679c27910a1cec7421ecfe","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"30c9084b8dbc5dd2d33ec9c488f5b095","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"278391a13bf6655cdcab6c02fe4e1f0c","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
Ci-Attestation: {"at":1795601079,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"ecd8ec9a07a52bebbb394b03e982865295e49c8ec6440d0a4f1cc07b049a632a","lane":"client-lint","parents":["2130674ee2ed6bf10a45acc6f654c8ac14f332b1"],"secs":357,"stamp":"748e95b0e1696d6fd92fa94bc2f2bf75","tree":"3783ab6d05469f48bf1b644c0c5d341c995d100b","v":1,"via":"run"}
@zackees
zackees force-pushed the port/5273-service-find branch from 32256d8 to f208b51 Compare November 25, 2026 10:04
@zackees
zackees marked this pull request as ready for review November 25, 2026 10:05
@zackees
zackees enabled auto-merge November 25, 2026 10:05
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 25, 2026
@zackees
zackees added this pull request to the merge queue Nov 25, 2026
Merged via the queue into master with commit f7e0681 Nov 25, 2026
46 checks passed
@zackees
zackees deleted the port/5273-service-find branch November 25, 2026 11:20
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Needs fix to Done in obs-rust Multiview Nov 25, 2026
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