Skip to content

test(libobs): characterize obs_source_reset_settings (Refs #5718) - #5730

Draft
zackees wants to merge 1 commit into
masterfrom
char-source-reset-settings
Draft

zackees wants to merge 1 commit into
masterfrom
char-source-reset-settings

Conversation

@zackees

@zackees zackees commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Refs #5718

Adds an actual-library cmocka characterization of obs_source_reset_settings, the first step before extraction and the Rust swap. The test uses a registered audio-only input, so updates dispatch synchronously and no video or graphics context is needed. It pins four behaviours: a NULL source logs obs_source_reset_settings: Null 'source' parameter at debug level and returns; the source's own settings object is cleared before the replacement is merged, keeps its identity, and the update callback sees only the new keys followed by the global source_update and local update signals; NULL settings leave the settings empty but still dispatch the callback and both signals; and passing the source's own settings object as the replacement leaves it empty (characterized, not endorsed).

The test is registered once in test/cmocka/build/test-graph.json (core suite, explicit SIMDe::SIMDe for Darwin, w32-pthreads on Windows). Local Linux Tier 2: the test passed in the full C-reference (OFF) ctest run and in a repeat run; the hybrid (ON) pass was interrupted by a local timeout, so hosted CI covers it. Merge-tree against open #5547, #5645, #5649, #5663, #5633 and #5638 is clean.

Held as a draft: back pressure was closed (ci/backpressure.py --check exit 75) when it was published. The stacked verbatim extraction follows in a separate draft.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Client-Checks: {"checks":{"base":"152c528e41cbfc33e0a17189d18f7ca81191937b","coverage":"all-tracked-applicable-files","diff":["test/cmocka/build/test-graph.json","test/cmocka/test_source_reset_settings.c"],"head":"7f9b6ba462beb61511bb31ac0d99d9be8a8d6116","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":"e137928827d11dcbba6020e36055b8932c1c563da6e43221e237312dd3536e31","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10"}}
Ci-Attestation: {"at":1795690883,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":100,"stamp":"c1b81ec10a259e2bb400c6d298b6374e","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
Ci-Attestation: {"at":1795690883,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":100,"stamp":"fe51263e9a888dd54e26270bf01a9a6e","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
Ci-Attestation: {"at":1795690883,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":100,"stamp":"7b099af4a6b6ed4a59bb2c4f8e7c2dfb","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
Ci-Attestation: {"at":1795690883,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":100,"stamp":"89e87940fe56b15d471d373cb0fa8d25","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"general/all/client-lint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"c938942aa32e84afcd404ac290e552df","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1795690883,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":100,"stamp":"577a09a19760a8cfa1745fc3d8e53dd9","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"b6859afc34b0507b93161713579da2a4","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"adfda9c64641e8eb00bcb4bef49b51a5","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"5f3f4e0cae68908652aa375701f56a92","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"340c239164debdd314090b734af6c614","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"cfcf15fba6f563c09cc274b9fd39f058","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"f826b6223606c6b0663927fbcc3b0d13","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"36c793c2fb1791b6fe9613b2623fc3ef","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"23eb974e9c842ad5918b642dfb17b0d6","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"5f01a216efbe9668eeceb72eed8f20e0","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409814,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"577d8bf082703299d92f8152eaa52dfe","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"6f88c1d8262e6d96fc4988925dda822f","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1796409813,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"8fd1c02d9842d8d14472c1bfee55f75ac5948b44687429bd0f1db7971f5bd9e2","lane":"client-lint","parents":["f4b266b71bab7a58eac7e2cad3f1c1a6e4e0231b"],"secs":482,"stamp":"0b839df6e183b35977b96d8b33c82b34","tree":"9e2a6d3da80b415e8bfc9fb4d62497e84c71bb47","v":1,"via":"run"}
Ci-Attestation: {"at":1795691261,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"e43531c7227f31b2c018cf739ccd347fa58a2ee80985b5153ca8185ed04d3c4b","lane":"client-test-x86_64-unknown-linux-gnu","parents":["152c528e41cbfc33e0a17189d18f7ca81191937b"],"secs":376,"stamp":"c0c5fb19b2bef46921da4d49a31952ab","tree":"a40b992df93147c17c3047d4bb33f6f49dcc9c10","v":1,"via":"run"}
@zackees
zackees force-pushed the char-source-reset-settings branch from ac76840 to a92ce69 Compare December 4, 2026 18:43

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