Repository navigation
libobs: extract canvas video-info validity verbatim (Refs #5295) - #5348
Merged
Merged
Conversation
Client-Checks: {"checks":{"base":"3ac5abf7cd65212009531f8655f5ba8aeee5314e","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-source+.h.c","libobs/obs-canvas-has-valid-video-info.c.h","libobs/obs-canvas.c.h","libobs/obs-hotkey-combination-background-id.c.h","libobs/obs-hotkey.c.h","libobs/obs-scene-item-get-group.c.h","libobs/obs-scene.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_canvas_valid_video_info.c","test/cmocka/test_hotkey_combination_background_id.c","test/cmocka/test_sceneitem_get_group.c","test/cmocka/tests.d/test_canvas_valid_video_info.cmake","test/cmocka/tests.d/test_hotkey_combination_background_id.cmake","test/cmocka/tests.d/test_sceneitem_get_group.cmake"],"head":"c990565af1f421a90709359ced67d1ea0cbbae56","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":"7598ee72b959ad967bb09acbd1393374c237293830fd09c47869d0148c662152","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d"}}
Ci-Attestation: {"at":1795133569,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":787,"stamp":"e6d8e5ab59343a58d69fa07a8d877886","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
Ci-Attestation: {"at":1795133569,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":787,"stamp":"780d52868ae9844ee132db796c3953f1","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
Ci-Attestation: {"at":1795133569,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":787,"stamp":"97e1309a773acb3ce7f868a5f6b86eee","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
Ci-Attestation: {"at":1795133569,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":787,"stamp":"312755bece97d453e57e54b332065006","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
Ci-Attestation: {"at":1795147690,"gate":"general/all/client-lint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"51e746fb903d31c5f4d898c9453aefbd","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795133569,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":787,"stamp":"0d799a0e81f08a3586c7b8492bfcfaa9","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"44b8a32c991ac37f169ef2601f27fa77","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"9d41ab442fbf76e7d040cb159aef5233","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147692,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"0d6bcbfcf033d6af5e83cf365ba6f903","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"29e22c95bcff694bc4d013824944cd04","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147691,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"80a91436cf62eaa31319362859277997","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147692,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"82ceefb00ebb78f1ef0fe9b77a7fa110","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"184fa274456c96199ba3cc228a04510e","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147693,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"e88e0e074345eb24a185b0143bf1bc1c","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147692,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"ce59a6ff7254c81964e69f6214254dba","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147692,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"eb56a868743a488b2171d3e9b36be05c","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147691,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"019f04ea6e3fc76f1a3d1eab259d060d","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795147691,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"3b73ad00b806f052fb8d44d478cde4512309be18088865c436346d71142054a2","lane":"client-lint","parents":["342a488e5df05cc61f47b388390489778f687bf7"],"secs":51,"stamp":"1a77bab762a5548841a1e34b116eb3fc","tree":"09e041c1ec16c118cf80eb1ed53b6fae1318d310","v":1,"via":"run"}
Ci-Attestation: {"at":1795135674,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"deefef27f6b6ffc1765e664f1ad8d4eb6afd9610d951d38eca394f05fad2ce3a","lane":"client-test-x86_64-unknown-linux-gnu","parents":["b1d781c3da2de92c6f9acc57846ce0c0de5fd336"],"secs":2094,"stamp":"3a8cfa6fc5568a91e2db1499ca0bc7ad","tree":"e320ae88fb9292f8af84baa2bd4e6a0b7345f87d","v":1,"via":"run"}
zackees
enabled auto-merge
November 20, 2026 04:22
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 #5295.
Extracts
obs_canvas_has_valid_video_infoverbatim intolibobs/obs-canvas-has-valid-video-info.c.h, preserving its private callable seam, five-way conjunction, unlocked reads and valid-canvas precondition. This is the C-only prerequisite for the Rust swap tracked in #5310; it changes no behavior or public ABI.The new immutable C fixture independently pins zero and nonzero boundaries for each dimension, NONE/nonzero and signed/out-of-enum format boundaries, all 32 predicate combinations, and unchanged canvas bytes and allocation count. It never calls with NULL. Its tests.d pointer and sorted canonical graph agree, and the production source joins the sorted S unity group. No public headers, existing C tests, Rust implementations, link-support files, WebSocket code or workflows are changed.
RED was originally b1d781c, rebased unchanged as 342a488: compilation fails because the extracted source is missing. GREEN was originally 62f7181, rebased unchanged and published as 4ebdb42: it supplies the byte-identical production body. Original-C snapshot evidence and the prior worker's review remain in the pool evidence directory.
Validation on the rebased head passed the whole native_build:: module (322 tests), the full ./lint run (399 self-tests plus Rust checks; 1,148 seconds), and a focused Linux Tier 2 build of the new target plus EVERY one of the 68 configured *_rust targets. All 69 selected tests passed against both the C reference and hybrid libobs. The new fixture additionally passed 25 repetitions per implementation, and both export sets match at 1,769 symbols. No Rust tests or binaries were added; the C fixture starts no threads.
Forced-ref merge-tree checks introduced no conflicts against the open canvas/S-group/test-graph work, including #5246, #5296 and the later canvas_clear_mix extraction #5335. Conflicts in older #4124, #5155 and #5280 already occur against master in exactly the same paths. All temporary refs were deleted.
This source-only fixture characterizes C; its external mode lets the later swap exercise the unchanged assertions against the real Rust shim. Tier 1 and differential Rust coverage belong to #5310; Tier 4 does not apply to this internal function. Windows/Darwin links passed on the prior worker's original head and were not rerun after this rebase; this validation's runtime coverage is Linux.
Publication used ./push with an exact force-with-lease on the original remote head. Its six-target client-lint lane passed. Its repeated client self-test run timed out on test_platform_missing_prototypes.py at 600 seconds, after that same check had passed in the full ./lint run at 517.7 seconds. Complete client attestation was therefore unavailable; ordinary selected PR CI remains required. No checks were bypassed.