Repository navigation
libobs: register characterization and extract core private-data wrappers (GREEN, Refs #4791) - #4912
Merged
Merged
Conversation
zackees
enabled auto-merge
November 16, 2026 21:08
…ers (GREEN, Refs #4791) Resume the earlier characterization/extraction work on current master. Preserve the setter and getter bodies verbatim and register the public C test against hybrid libobs and the C reference. The native registration test selects this coverage on Linux, macOS and Windows. The Rust swap remains tracked by #4796. Ci-Attestation: {"at":1794875842,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":143,"stamp":"1a0de9c8e60773ee81200abd2e33b196","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875842,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":143,"stamp":"85cc5b0b5336e1652d29d03d80ab5e06","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875842,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":143,"stamp":"b1b976879339ab665c320f6c8b02f033","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875842,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":143,"stamp":"c968b6f1114768298ac910737c800ddb","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875695,"gate":"general/all/client-lint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"588a0d850cbd30af8571a48c9f2ff9cb","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875842,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":143,"stamp":"e861e8d802f52688e7007095314c4f24","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"27e2c04011e27d2682b260d3552062a2","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"64f313649cc90913ddd61fb1d78321b2","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"7734a831424f8fd8e5009de0fc10bf20","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"8cc833e953cc75dc675346de35baab23","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875695,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"8635b2254ee820488f0ec5ca16f83883","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"84288967404992c4dc668af59104d7a7","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"004180559525707c4d54dd6cb4a7fe49","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"0db5b508f8272b2e35c5290e4e0e6d21","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"27c3b01d7afd4dc0d181c81b512f89f8","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875696,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"884cfef1e340d585bca50e1338befb6b","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875695,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"a9116027e5112ad4846c3599bbd80c3a","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794875695,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"92a46e48d6c2c39e686de28e5eff6dc100f670fbff398f2b1d2412bd7be6e3b9","lane":"client-lint","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":279,"stamp":"a3a84025affa50c50c204bcfbc289b04","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Ci-Attestation: {"at":1794876737,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"eca22efd90e27d490a95a233e1d5f5bb2c84028f965fbc19f21a81f63112080e","lane":"client-test-x86_64-unknown-linux-gnu","parents":["1888ef21f7cd8c3d5b4f65c8601136c2e53c4dbc"],"secs":893,"stamp":"452518d6c8985f407f94971e8b43761c","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d","v":1,"via":"run"} Client-Checks: {"checks":{"base":"aace99f022e7df01735d4fc3d8072e89b557631b","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-private-data+.h.c","libobs/build/modules.d/core.json","libobs/build/source-sets.d/LIBOBS_SOURCES.json","libobs/obs-core-private-data.c.h","libobs/obs.c.h","rust/obs-build/tests/native.rs","rust/obs-build/tests/native/registration/canonical_core_private_data_is_registered.rs","test/cmocka/build/test-graph.json","test/cmocka/test_core_private_data.c","test/cmocka/tests.d/test_core_private_data.cmake"],"head":"d33fbb1532f0ff67080c2c0c97c5c5f6eab880db","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 21504\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":"7e47d722670455d3fa3bf622bc6c84502a3d8303ad220dea40b9af2e4a53cc8f","tree":"180577a4fadfa05c00c0d874fb5588e9da84224d"}}
zackees
force-pushed
the
test/4791-private-data-extract
branch
from
November 17, 2026 00:52
2474f1d to
b05f393
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This adds public-API characterization of
obs_set_private_dataandobs_get_private_data, then extracts their existing C bodies verbatim into a dedicated implementation file and unity group. The tests pin replacement and copy semantics, stable storage identity, NULL and empty clearing, preserved defaults, self-assignment ordering, and exactly one retained reference per getter, including survival after core shutdown. The native graph registers the characterization for Linux, macOS and Windows in the existing application test category.Refs #4791. This is the characterization and extraction prerequisite; the Rust swap remains in #4796. The existing initialized-core precondition and
obs_apply_private_dataremain outside this unit. Existing C tests, public headers and the C++ OBS WebSocket plugin are unchanged.After rebasing onto master 7092163, RED commit a1495bd reproduced the expected missing-native-target failure. GREEN passed all 280
native_build::tests. The extracted bodies were compared byte for byte with current master and matched.The focused Tier 2 command rebuilt the hybrid library and explicit C reference, verified which library each test loaded, and passed 25 repetitions of all four characterization cases against each implementation (200 case executions). Both libraries exported the same 1,768 dynamic symbols. The single full
./lintrun passed in 521.9 seconds, covering formatting, repository self-tests, workspace Clippy and required feature configurations.git diff --checkalso passed.A read-only review using
clud-reviewfound no actionable correctness issues across the C, Rust, JSON and CMake changes.Test cost: the original handoff measured the new Rust registration test over 25 isolated reduced runs: longest 0.153 seconds, peak RSS 15072 KiB, no own threads. Native host selection was checked for all three configurations; actual macOS and Windows execution and the complete Tier 2 suite were not run locally. There is no Rust behavior replacement or protocol change here, so Rust implementation parity and protocol coverage belong to the follow-up swap.
Failure recovery (2026-11-17): the failed Linux tests-on job had one failure in its 946-test shard:
test_screencast_portal_teardownhit its 20-second SIGALRM (14), ending atFreeing a destroyed capture/Request cancelled. This matches the documented intermittent teardown hang in #2099, including failures on master and both implementations; it is unrelated to this private-data extraction. No existing C tests, public headers or product behavior were changed for recovery.The existing RED/GREEN pair was cleanly rebased onto master aace99f; range-diff showed only expected manifest context shifts. Focused Tier 2 rebuilt hybrid libobs, the C reference and both relevant unchanged tests through the repository Docker harness. Both tests passed 25 consecutive repetitions against each implementation (100 CTest executions, no skips), with library resolution checked explicitly. Both libraries exported identical sets of 1,768 symbols. The full
./lintpassed in 539.3 seconds, andgit diff --checkpassed. The initial full-suite rebuild was stopped to use this focused reproduction; a complete local Tier 2 suite was not run during recovery.The repository
./pushpipeline completed full client evidence and signed final head b05f393. All six clippy/Dylint target pairs passed; host nextest ran 8,665 passing tests (six skipped), followed by doctests, feature-specific tests and the Windows GNU link check. The rebase was published with an exact lease against prior head 2474f1d. The dependentport/4796-private-data-stackedbranch remains unchanged at 6e50189.