Repository navigation
libobs: characterize and extract output total-byte callback query (Refs #5203) - #5207
Merged
Merged
Conversation
Ci-Attestation: {"at":1795072380,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":120,"stamp":"04162bc39394963e87b56aabe1f051d5","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072380,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":120,"stamp":"d6e5d6b1b44f858a63586e4516683910","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072380,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":120,"stamp":"5fa0f24bd2110e2f6f9cb33ef4236ee9","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072380,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":120,"stamp":"e12c8e92dc426175616273aab925d7b6","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072258,"gate":"general/all/client-lint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"cdc828df9563a6d41157c90e8b43e2f9","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072380,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":120,"stamp":"0a2304d325afedc5ca5265c9ef1d3845","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"36341c429482125d894fa4b5f5d4325d","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"b4e0cbb640a32e9e1dff47a9c4c5f6c2","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"cd36b0505a50d3a3819eda7db2ec34d0","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"4a9c253e477aeb9c9c959c4ede82b48a","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072258,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"3b0110a9d374d4c6139d6becd1586ab6","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"0870b4d8353013df28980819ef4d2c41","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"72d999c1d43ba2a151526bf8e367a21a","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"834cd82556936d8739e62262bc72136c","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"dd55aabc3e193355a82f65410d2283be","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072259,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"9c004243edfba0ff2e4df0d65277d757","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072258,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"c7244475c3c6067aa01dc0c3ba4b8a9e","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795072258,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"2632f38801097c39d801b8df54088e8df39e976d6ed710112e6847b18029bd8d","lane":"client-lint","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":338,"stamp":"61005cef6a6638b8865894448e6f64ec","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Ci-Attestation: {"at":1795073232,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"27c1639fa594c975ae98895e50fff8f450607dadd39db57b31a2d689ea0f3ee8","lane":"client-test-x86_64-unknown-linux-gnu","parents":["9258b34993d98833958e0cc42af079fb56800cdb"],"secs":851,"stamp":"44f4f910023ccbf9ba80d341e3622bb9","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f","v":1,"via":"run"}
Client-Checks: {"checks":{"base":"ade80e1f3a65df57526ecf23bfd5b0ab51709f0b","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.core-output+.h.c","libobs/obs-output-total-bytes-query.c.h","libobs/obs-output.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_output_total_bytes_query.c","test/cmocka/tests.d/test_output_total_bytes_query.cmake"],"head":"eb74b3defb3195b0cef3a78df521678e19b450d1","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":"aad15eeeb1ec3e69ee811d12c0768265ca04c2442f3d381f898c247b35515006","tree":"d7a9b0f983cc9bb604086c6476ba081769c33f3f"}}
zackees
enabled auto-merge
November 19, 2026 07:30
This was referenced Nov 19, 2026
This was referenced Nov 19, 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 #5203
The existing output getter characterization covers the ordinary total-byte query but leaves the callback and delay guards mostly unspecified. Add an actual-library C fixture using real private output storage to pin NULL output and its diagnostic, a missing callback, every delay-active/capturing combination, exact callback and data-pointer forwarding (including NULL data), complete 64-bit results, callback counts, and unchanged output storage. Keep the existing C characterization unchanged.
Move obs_output_get_total_bytes verbatim into libobs/obs-output-total-bytes-query.c.h in the sorted core-output unity group. Exact same-group forward declarations retain the existing atomic delay helpers, preserving validation, callback-presence, delay-read and dispatch order. Add the tests.d pointer and sorted canonical graph registration; the existing source-set and module ownership remains valid. This prerequisite adds no Rust, public-header or protocol changes. The later obs-output Rust swap is separate work.
The original C reference and hybrid libraries pass the new fixture and unchanged getter test before extraction, with 1,769 identical exported symbols. Characterization commit a8f5094 precedes RED 9258b34: the build-group check and native compile fail because the newly required query unit is missing. GREEN 9ceffca supplies the byte-identical function plus its helper declarations. The extraction contract and build-group, module and sorted-graph inventories pass; all 315 native_build:: tests pass in the existing application category binary.
After extraction, Linux rebuilt every one of the 63 configured standalone *_rust cmocka targets. The new fixture and unchanged getter test each passed 25 repetitions against each library, and the export sets still match at 1,769 symbols. ci/windows_link_check.py passed the Windows MSVC category links plus hybrid libobs and all 54 selected Rust fixtures for each of Windows MSVC x86_64 and Darwin arm64. The new C characterization target was also explicitly compiled and linked for both cross targets. Native Windows/macOS execution and Tier 4 protocol runtime were not run locally; this C-only prerequisite leaves the later Rust Tier 1/Tier 3 work to its separate swap issue.
The single full SOLDR_PORCELAIN=0 ./lint run passed in 420.8 seconds, including formatting, repository validators/self-tests, Cargo inventory and feature checks, clippy and Dylint. Fetched open PR heads with forced refspecs and used merge-tree to check output-group/output-source/canonical-graph overlaps; no queued conflicting PR remained. Conflicts with already-DIRTY PRs #4655 and #4124 do not block this independent unit. Temporary refs were deleted.
The ./push client proof passed six-target clippy/Dylint (338.5 s), repository validators/self-tests, 9,130 host tests with six skips, 920 feature tests, documentation tests and Windows GNU workspace linking (client-test 850.9 s). The final signed head is 9ceffca. Optional Swift proof was unavailable because swift-format is absent; no Swift files changed.