Skip to content

libobs: extract canvas video-info validity verbatim (Refs #5295) - #5348

Merged
zackees merged 2 commits into
masterfrom
test/5295-canvas-valid-info
Nov 20, 2026
Merged

zackees merged 2 commits into
masterfrom
test/5295-canvas-valid-info

Conversation

@zackees

@zackees zackees commented Nov 20, 2026 •

Copy link
Copy Markdown
Member

Refs #5295.

Extracts obs_canvas_has_valid_video_info verbatim into libobs/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.

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 zackees added the pool-active Pool worker owns this PR; automated rebases must skip it label Nov 20, 2026
@zackees
zackees enabled auto-merge November 20, 2026 04:22
@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
Merged via the queue into master with commit 523bd64 Nov 20, 2026
46 checks passed
@zackees
zackees deleted the test/5295-canvas-valid-info branch November 20, 2026 05:56
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