Skip to content

libobs: extract output strong-reference wrappers verbatim (Refs #5695) - #5699

Draft
zackees wants to merge 3 commits into
masterfrom
port/5695-output-strong-ref-extract
Draft

zackees wants to merge 3 commits into
masterfrom
port/5695-output-strong-ref-extract

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Stacked on #5698: review only the commits after 0b43a8a.

Refs #5695

Extracts obs_output_release and obs_output_get_ref verbatim into obs-output-strong-ref.c.h in the existing core-output unity group. The local get_weak macro moves with them; the unchanged PCH already declares the destroy function. No Rust, adapter, public-header, existing C-test, WebSocket or behavior change.

Characterization is the separate parent. RED 399db55 moved the bodies without registration and the build-group guard rejected exactly the new orphan. GREEN b0258c9 registers it alphabetically: all 10 group checks pass. Both complete bodies are byte-identical to the parent. The later Rust swap needs its own RED/GREEN and required tiers.

Baseline AND final Linux: new four-case strong-ref and unchanged four-case weak-lifetime suites each pass 25 repetitions against BOTH real libraries. ldd proves the backends; all 1,769 exports match. Full lint passed in 142.2 s; one primary independent review is CLEAN. Windows eight Rust category binaries and both Windows MSVC x86_64 / Darwin arm64 native inventories pass: hybrid libobs, all 83 normal Rust-static fixtures, plus explicit test_output_strong_ref (85 targets each). Both aliases compile/link the new test and explicitly exit 0. Native Windows/macOS runtime is not claimed. Six-target client lint/Clippy/Dylint passed in 15.3 s; missing xmllint leaves ordinary required CI in effect.

HOLD: parent #5698, older adjacent caption extraction #5681, CLOSED admission and pending claim-bot acceptance. Keep DRAFT and auto-merge OFF. Merge-tree conflicts only with #5681 among nine checked neighbours: adjacent blocks are removed from obs-output.c.h. Land that older extraction first, then replay only this PR's two commits after its parent squash-merges; retain both extracted files and remove both old blocks. The other eight neighbours merge cleanly. Detailed head pins and evidence are in the pool response. The landing worker owns promotion after admission/claim/CI gates clear.

@zackees zackees added pool-active Pool worker owns this PR; automated rebases must skip it and removed pool-active Pool worker owns this PR; automated rebases must skip it labels 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/5695-output-strong-ref-extract branch from b0258c9 to 3e44a36 Compare November 26, 2026 08:01
@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
Ci-Attestation: {"at":1795621489,"gate":"general/all/client-lint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"3b8c3e0305de96bf4add09421e1b74bd","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"dac7d2d231d30b0cc78292a686513625","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"a559f8ffca9f8997e0a250d1ae7f4bdf","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"c883fb6b4de170b2b4857d868a0d3f93","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"af6dc1889e5be372a1eca5943f1b44f0","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621489,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"ff4dfb46ff28a226e07f72b5d4966afa","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621489,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"6b4d6e38ad5e774c730ce4e63e98985a","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"632cba239c6389340ea1a41af93b5a8e","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"1c801e8985ba99688f2a3244497e0129","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621489,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"a85a00fc08b18595a4790733e4eae5ab","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621490,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"94ead626f6adf9e243d6d5d3e69a2ae9","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621489,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"b2fe6dad0e5d8903d674f5b49435a692","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
Ci-Attestation: {"at":1795621489,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"569580af142450add4a8a81bdc4aaa33359d092bc1ad17b6c3a2b128bdd36e10","lane":"client-lint","parents":["8a195424731e99fafc0b3a036fb0d93ad8353398"],"secs":28,"stamp":"379320e32d28c4086cd3896fa0cc204c","tree":"cf3f5b7521f9a09d1470bcbb19eb3600e5c561b5","v":1,"via":"run"}
)

Client-Checks: {"checks":{"base":"69df7dfd1d68b826d596ed525ae0e4e5588e8eb8","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-output+.h.c","libobs/obs-output-strong-ref.c.h","libobs/obs-output.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_output_strong_ref.c"],"head":"cf2b1e49f777acef05722e58bfcac15ddf8ae6f1","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":"12cf3788269ac3fbf54cf097d2bb51e5dab096367478b821daaff9f48c6caabe","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780"}}

Ci-Attestation: {"at":1795679746,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":108,"stamp":"1a2ce1e2a50d573f4a6b3ac9c6773dd1","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
Ci-Attestation: {"at":1795679746,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":108,"stamp":"a8291223d4d617bb5b1e0b8125700ecb","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
Ci-Attestation: {"at":1795679746,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":108,"stamp":"5d0c9a878de70849d39d50813360f9d2","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
Ci-Attestation: {"at":1795679746,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":108,"stamp":"b2e2a537e1100d06b83389456b406451","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"general/all/client-lint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"e3e2698d3b6a29ebc374dc0294a9e12e","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1795679746,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":108,"stamp":"ccf71bea764fdd06f9ab891d807cff5c","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
Ci-Attestation: {"at":1796411583,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"97bdef0c68bc8fb7f4866812df5eac7c","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411583,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"f562d1857cf5ad0c4716935eaf6d1c46","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"a3b7bc955a8ba193e0ae01b3bcc80269","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"b7bd757c2ea41fe6add111829ad545d5","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"9bd7d46378a99139a32ed57534abc380","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"dc07e014d422f150ae0102fb4eae62f6","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"1adc7d544e688005fa717864877a09ec","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"7f4c6a80acf57c53dca5c5b3c25d9702","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"0aa0ac650cba51a60e9f097f26b05875","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"fc833986f291e8440f58b9cb234fa0dc","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"9fc6fdf5e571eb77616b97f55aa4ce78","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1796411582,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"681bd33f45672a51bd0c55bf1f805ba49d0c87b3eecdef2dd3eed27cad487e97","lane":"client-lint","parents":["3aa7bfdc89e9d155c69fab48c90d14e22904b74c"],"secs":14,"stamp":"3e0687bd932c3640207e778cde0c0ccb","tree":"47af05fd0107cf2b3a90a9a9a5d152bb74ffc108","v":1,"via":"run"}
Ci-Attestation: {"at":1795680108,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"69988971b2932e18034ab0017452e73c0d6df0e246e1c740278692bee998b523","lane":"client-test-x86_64-unknown-linux-gnu","parents":["dd5ee97bdbf8eb1eb51cace501f4d667c29c8a35"],"secs":360,"stamp":"ec095305011f8ecd8a9bf5e2a12e3e26","tree":"9eeaab103730ac2048fe00250efe6ce7d8061780","v":1,"via":"run"}
@zackees
zackees force-pushed the port/5695-output-strong-ref-extract branch from 3e44a36 to 7a9b2ed Compare December 4, 2026 19:13

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