Repository navigation
libobs: characterize and extract output last-error query (Refs #5294) - #5307
Merged
Merged
Conversation
…#5294) Ci-Attestation: {"at":1795131212,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":517,"stamp":"ed5a2daf8617493831edb67dcc9bd4a8","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795131212,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":517,"stamp":"ce80d8548e67071a26ce308f8d1e0f31","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795131212,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":517,"stamp":"eb047c7d661e22e628a4bcdbedca778b","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795131212,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":517,"stamp":"fd5cb682db5c311bf7e35f1a99e8f880","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130681,"gate":"general/all/client-lint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"a1e7fc00ee54b572fa95ef99ddc12ce8","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795131212,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":517,"stamp":"7dce04ea0f8ddcefc2a3ccd56a04f232","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130684,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"90757cf9d22b004eca57923d55265468","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130684,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"165f5c7e513b5bd6f6a85347a856f92d","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130683,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"87a0274f058bca7749a1bf5c076d3d1b","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130683,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"5df6301fd93b2c95f08c79ca0b4e4c4d","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130682,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"e14705980c40fab198c9130194595e0f","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130682,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"943bf5b3b44e4b482cd40349215191bb","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130684,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"b9cedd06d533a60dc55ba72d894991f1","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130684,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"a1d4b1d116a7f7ac85f009b8994148a5","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130683,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"47f091849d4670418e1b44ec00bc4a92","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130683,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"2298794a6ef45d83a4cd44a60f73ab59","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130681,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"2b20b95d554462b5e766e582a904678a","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795130682,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"9269d688027752940c66c131def31dc4d45e4786ec276e89e2ca882ce8f6da43","lane":"client-lint","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":130,"stamp":"8e9a613bd2f1c216365f1fbc6d89a462","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Ci-Attestation: {"at":1795132885,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"88c67cc76a86078d8fe7e07a05faaf2dfaa1c9bbeb0cdebf87c802686385b0c5","lane":"client-test-x86_64-unknown-linux-gnu","parents":["a68976a08f0d1bc9f5c36017f019022fd1e5d31e"],"secs":1657,"stamp":"1acf7a005c76e1e400159f2cd7321a97","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735","v":1,"via":"run"} Client-Checks: {"checks":{"base":"9d8624941fa5ca0d9458492af07dddc9103347d4","coverage":"all-tracked-applicable-files","diff":["ci/local_gate.py","ci/test_hotkey_register_extraction.py","ci/test_local_gate.py","libobs/build/libobs.core+.h.c","libobs/build/libobs.core-output+.h.c","libobs/obs-hotkey-combination-background-id.c.h","libobs/obs-hotkey.c.h","libobs/obs-output-get-last-error.c.h","libobs/obs-output.c.h","rust/obs-build/tests/native/registration/headless_characterizations_expected.json","rust/obs-build/tests/native/registration/portal_output_expected.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_enum.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_press.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_background_trigger.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_binding_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_getters_characterization.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_load.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_pair_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_press_steps.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_hotkey_unregister_entry.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_portal_shortcuts.json","rust/obs-build/tests/native/registration/rust-static/cases/hotkey-control/test_wayland_hotkeys.json","test/cmocka/build/test-graph.json","test/cmocka/test_hotkey_combination_background_id.c","test/cmocka/test_output_get_last_error.c","test/cmocka/tests.d/test_hotkey_combination_background_id.cmake","test/cmocka/tests.d/test_output_get_last_error.cmake"],"head":"c2b1469d9739243ccc56bf374d9a5f6e169b9001","tools":{"orchestrator-python":"3.14.7 (main, Aug 14 2026, 15:35:28) [Clang 22.1.3 ]","schema-dependencies":"3.14.7 (main, Aug 14 2026, 15:35:28) [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":"01b3df18e18d17cb2c008dcb7203be71451e8858f048c57fc804063a7e1aeb94","tree":"ed5df9640d9921f2b783ec04c2aea36706b13735"}}
zackees
enabled auto-merge
November 20, 2026 00:07
This was referenced Nov 20, 2026
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.
Refs #5294.
Extract
obs_output_get_last_errorverbatim intolibobs/obs-output-get-last-error.c.hin the sorted O unity group. Preserve the exact NULL diagnostic, output-owned error before ascending video errors before ascending audio errors before NULL, and the borrowed pointer with no copy or added lock.The new portable C characterization uses real created outputs and registered encoder types, attaching and releasing them through the ownership APIs. It checks the linked public symbol and original C body, including empty strings, non-UTF-8 errors, holes and final slots, exact pointer identity, and querying while the encoder error mutexes are held. Its tests.d pointer and sorted canonical graph agree with the native/source inventories. Existing C tests, public headers and Rust remain untouched; no link support was added.
RED
a68976a08fails compilation on the missing extraction include. The original-C snapshot passed three repetitions per library before extraction; the final registered-object fixture also passed three per library against that same snapshot. GREEN passed 25 characterization repetitions per OFF/ON library, the unchanged encoder/output getter suite in both modes, and the wholenative_build::module: 322 passed, none failed or ignored. Linux built the new target plus EVERY one of the 68 configured*_rusttargets with keep-going enabled. Both dynamic export sets match at 1,769 symbols. One primary clud-review reviewer found no actionable issues.The single standalone full lint invocation passed formatting, Ruff and the source/build/graph inventories, but failed one unrelated sanitizer-harness timing assertion under concurrent load: 2.0586 seconds against a 1.5-second limit. Its isolated rerun after the native build passed. No second standalone full lint was run. The unchanged timing module also passed in the complete publication self-tests.
Forced fetched refs and baseline/candidate merge-tree checks cover all open overlapping PRs, including #5246, #5287, #5289 and #5280. The required #5246/#5287/#5289 heads combine cleanly; #4124, #4655, #5155 and #5280 retain their baseline conflict paths. Final refresh found new #5306 for the distinct output-name getter: the adjacent sorted insertions conflict in the O unity group and test graph, so these two units need serialization and a mechanical rebase of the second PR. This branch merges cleanly with master. All temporary refs were deleted.
This is the C-only prerequisite. Unit-specific Rust unit/differential/mutation coverage belongs to the follow-up swap; network Tier 4 does not apply. Native Windows/macOS execution and hosted results are not claimed. Per the assignment, windows_link_check was skipped because no link support was added; the queue covers it. There is no user-visible behavior change requiring a features-ledger entry.
Publication client lint passed in 128.5 seconds with all six supported targets' Clippy and Dylint; matching passing verdicts were reused for unchanged Rust inputs where reported. All 399 repository self-test files and Flatpak/Qt XML validators passed. The client test contract passed in 1,655.6 seconds: 9,264 host tests passed with six skips, 920 feature tests passed, documentation checks and Windows GNU workspace links passed. Nextest reported three slow and ten leaky host tests with successful exit. Optional Swift proof was unavailable because swift-format is absent; no Swift files changed. Final signed head
b127671fc370d33fb15d38df4fdee82d88c5347dpreserves the validated tree and RED parent.