Skip to content

libobs: characterize and extract obs_apply_private_data (Refs #5328) - #5334

Merged
zackees merged 2 commits into
masterfrom
test/5328-apply-private-data
Nov 20, 2026
Merged

zackees merged 2 commits into
masterfrom
test/5328-apply-private-data

Conversation

@zackees

@zackees zackees commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Adds focused C characterization of obs_apply_private_data, then extracts its seven-line body verbatim from libobs/obs.c.h into libobs/obs-apply-private-data.c.h. The new implementation joins the core unity group alphabetically. The public-API cmocka target and CTest entry follow the existing private-data registration in the canonical test graph, with its tests.d marker. No link-support file is added.

Refs #5328. This is the C-only prerequisite; the separate Rust swap is tracked in #5330. The five cases pin NULL before startup, application into empty storage, stable storage identity and partial merge into existing values, NULL/empty input, caller independence, and retained values after shutdown. Existing C tests and public headers are unchanged. New test code has no implicit narrowing conversions; read-only review checked MSVC /W4 portability.

RED commit 856d4b62b6c95451974984329580444053e65b41 adds the unregistered characterization. A real Tier 2 CMake configure succeeded, then Ninja failed with unknown target 'test_apply_private_data'. GREEN registers it and extracts the wrapper. A byte-for-byte comparison with the original body passed.

Focused Linux Tier 2 built hybrid libobs, libobs-c-reference, the new test and unchanged test_core_private_data. Each test passed 25 repetitions against each implementation: 100 CTest executions, including 250 new characterization case executions. Library resolution was checked explicitly in both modes. Export sets are identical at 1,769 symbols. The single full ./lint passed in 355.3 seconds; git diff --check and the one-agent read-only clud-review passed.

There is no Rust behavior replacement or protocol change in this prerequisite. Tier 1/3 implementation parity belongs to #5330; Tier 4 does not apply. Native Windows/macOS execution and the complete Tier 2 suite were not run locally. PR and merge-queue policy retain their required checks.

Final publication: head 6ee7aa1688d219727994f5d9dab4cdabcca25048 was pushed through ./push. Client lint, all six Clippy/Dylint pairs, self-tests and data validators produced 18 Ci-Attestation trailers, but complete client-test proof was not produced. The reduced-profile broad run passed 9,262 tests and timed out two unchanged cases at 30 seconds: source::deinterlace_pacing_parity::buffered_walk_sequences and tests::platform::pipe_parity::process::dead_pipe_write_survives_concurrent_spawns. The earlier RED full-profile run passed all 9,264 tests plus the 920-test feature configuration. An isolated rerun of those two cases did not reach execution: Soldr reported SIGKILL (-137) while compiling obs-tests-core, after a compiler-reply stall. This does not establish isolated passes. Ordinary PR CI remains required; the failed client-test lane was not attested. No unrelated Rust tests or tooling were changed.

Ci-Attestation: {"at":1795142510,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":248,"stamp":"17f900a02994932518759a2c63edf64c","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142510,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":248,"stamp":"ccf5bfcc792a3010c9db593d0acba8a7","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142510,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":248,"stamp":"a78bf24fc992f136bd908b81e6c12e4b","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142510,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":248,"stamp":"1ab4dc1f4b42d71dc0cbc29c92bcf251","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142255,"gate":"general/all/client-lint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"2c011209f92517f3e11d203321428595","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142510,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":248,"stamp":"2bb3b71fd3946dd175968f9acccccd35","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142257,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"da683494dbd3b6a6f3a14870d8f52ec4","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142257,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"c030c1ce0c1fea15c89561fd670508d8","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"1e2ad432b207b9bb7fb3bfdf37c29b14","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"f0b9d18f57a3a5905ca917e02b129f8f","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142255,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"ade8fde4a55d694130132d0f6e3e5263","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"51ccc901a27523c84e2f0f2d590e5160","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"36a2bdafccb3d9cc36a57ce50983820b","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"9bda67719837f3bf3389e5328b124a19","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"b8b2292b87b3013ccaef14e138719e34","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142256,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"f951b429d409f763b3aeb1abf7f23fe2","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142255,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"95e3d9cce1539f2d4a8fc4cc26381384","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795142255,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"df3cefd371b6dafa51f0a3efadf5af28bfd82ce738f8c5e0683310f6d6d0b4c5","lane":"client-lint","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":140,"stamp":"1ff0166638cec5e823b2df6ae3d98970","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}
Ci-Attestation: {"at":1795144024,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"038581e9f2da04d75bcbd198d164014cdef65ffc119bba2197978c0368af76f3","lane":"client-test-x86_64-unknown-linux-gnu","parents":["168d102e5cf709ca2c6d5e780f4487dbc7dcadab"],"secs":1505,"stamp":"c911a60e0f1af7207cc3dea92f2d3ba1","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"168d102e5cf709ca2c6d5e780f4487dbc7dcadab","coverage":"all-tracked-applicable-files","diff":["test/cmocka/test_apply_private_data.c"],"head":"6dfcf1b43f09f473762f52367cbe4b02f104c43d","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":"9fabe23ba0c762e13ee5bb3f175f6a5e731bf37f61b1e0ba99647e1ab755ae77","tree":"1c8705c3b9ba573ac2cd4379c92af5d152667bce"}}
@zackees zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
@zackees
zackees marked this pull request as draft November 20, 2026 03:08
Ci-Attestation: {"at":1795145005,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":412,"stamp":"6de07b09c1abd06cf67f8971416d035e","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795145005,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":412,"stamp":"33e70e0d0786e97ba3282e304f090115","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795145005,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":412,"stamp":"58f6564b14f187d3ffbd881f05fb632f","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795145005,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":412,"stamp":"aa1e84075f150e13b23af503d4435262","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144583,"gate":"general/all/client-lint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"457c1eacbd89d5ce685e0db686b3ab0f","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795145005,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":412,"stamp":"e3f5955a42f950e9e8f16da82c0964d6","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144588,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"3d93d4b6171e6ad7c705538badff01a9","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144589,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"f973d85f15359f0c867d95c78121a952","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144587,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"047138adbcc3934ae53fca382e7e08e2","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144587,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"dff91019aacb539d500c88d479deec21","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144584,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"9a7622e2bd5d81a6e958188abc6597d6","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144585,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"51d555152124d0c9c5815ebe7e699443","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144587,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"4599b52b0733d2a98bec789d152f7c50","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144588,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"ab987d6439f9ab7db1ba18776a25b702","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144585,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"13abce313faa3b9a304ae940d60807ea","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144586,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"4e14a2c39f956f3fc01716901fbd6ac7","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144583,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"f2b08c9d9f0b0a660f4964dcef2d423c","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
Ci-Attestation: {"at":1795144584,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9c53b7609d3d3f29cedea09d0d365cffbd623e33936dd6a18247514f6d3c822d","lane":"client-lint","parents":["856d4b62b6c95451974984329580444053e65b41"],"secs":64,"stamp":"b6747035f52338ab8aaf976b6247072c","tree":"d34ceab396827ea4e9308bf1790b8098b638ddbf","v":1,"via":"run"}
@zackees zackees changed the title test: characterize obs_apply_private_data (RED, Refs #5328) libobs: characterize and extract obs_apply_private_data (Refs #5328) Nov 20, 2026
@zackees
zackees marked this pull request as ready for review November 20, 2026 03:55
@zackees
zackees enabled auto-merge November 20, 2026 03:55
@zackees zackees removed the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
@zackees
zackees added this pull request to the merge queue Nov 20, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this to In merge queue in obs-rust Multiview Nov 20, 2026
Merged via the queue into master with commit 4a4d92b Nov 20, 2026
46 checks passed
@zackees
zackees deleted the test/5328-apply-private-data branch November 20, 2026 04:41
@obs-rust-project-manager obs-rust-project-manager Bot moved this from In merge queue to Done in obs-rust Multiview Nov 20, 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