Repository navigation
graphics: extract legacy image-file data orchestration (Refs #5125) - #5144
Merged
Merged
Conversation
RED: strict native compile fails at missing graphics-texture-file-data.c.h. The unchanged original wrapper passes all four recording-fake cases in both library modes with GCC.
GREEN: the original wrapper body is unchanged in the media unity family. Four file-free recording cases and unchanged viewport image-size coverage pass against both libobs builds; all 1769 dynamic exports match. The complete native_build:: module passes 303 tests.
Ci-Attestation: {"at":1795035312,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":152,"stamp":"f4dad86ab6ed97f9a7bb92241490e8c2","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035312,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":152,"stamp":"3767514a67b6a43cf843aaffea5e932a","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035312,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":152,"stamp":"3719c20c33d4272153b024a9793d31c1","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035312,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":152,"stamp":"309d92837472d42f4e2ac6603785651e","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"general/all/client-lint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"24342477bf102011c04048ecd5add4b4","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035312,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":152,"stamp":"1eea62be8822dd0c52ba39456c79c32b","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"a16f0d12c0025f364216eb0bb525722b","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"ff6fda66bae5f1df91b2ddb78dca6073","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"74ac62e18e6bca1db7781bef7de78508","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"50ccf97e3823612727ba1962fee2d61c","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"5c5a5517fd7b16cfdc899bfb47580c0c","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"a45b6d69b05ca1e1feb8c5195a1ac956","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"db878598303ee13d910d33ad5d6bed5a","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"90844b0f457393a31c42a8d1c8c3befd","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"c453e5caa57a0b79234d8aea012c31a7","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"54cc6fcc5ec9871f247225b40450cdc9","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"f8360df52529f12b3f39f72e3372ff81","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795035158,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"634b629232849bd6fd6a59193116f4728c184a460d5a6fb248b613b67a5f6632","lane":"client-lint","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":100,"stamp":"7f7afb391d14c1e569a309094d866445","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Ci-Attestation: {"at":1795036339,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"82995bab8e71884134588e970bcb0abbd2435f98c72ea48814eca44d677cd0b3","lane":"client-test-x86_64-unknown-linux-gnu","parents":["e1bb2715392e541cebe2c4781c7ef9f4a9460c82"],"secs":1025,"stamp":"f18f6ad5a1947597d3ca0cd9ecf862cc","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3","v":1,"via":"run"}
Client-Checks: {"checks":{"base":"973e6963a34ce7e9a34ef88c7d491cdff8ceaffd","coverage":"all-tracked-applicable-files","diff":["libobs/build/libobs.media+.h.c","libobs/graphics/graphics-ffmpeg.c.h","libobs/graphics/graphics-texture-file-data.c.h","test/cmocka/build/test-graph.json","test/cmocka/test_texture_file_data_legacy.c","test/cmocka/tests.d/test_texture_file_data_legacy.cmake"],"head":"ed181445f61070bbfc5664fbf0da89199d07164b","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":"08ed3bd7ce7397a09f220d597b023599b72a59283834ab1ffcf8d6da3a4a22b6","tree":"00ce0de1ba0322ec3d884f6b50dc868b1d27c8e3"}}
zackees
enabled auto-merge
November 18, 2026 21:13
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 #5125. The legacy
gs_create_texture_file_dataentry point lacked focused coverage of its orchestration contract. This prerequisite adds a file-free, GPU-free C recording fixture and moves the wrapper body verbatim fromgraphics-ffmpeg.c.htographics-texture-file-data.c.hin the existing media unity/PCH family. It preserves all signatures and behavior, contains no Rust, and changes no public header, existing C test, workflow or WebSocket code.The four recording cases pin initialization with the original max-size callback, decode-context callback identity, straight-alpha decoding, publication of the post-decode format and dimensions before cleanup, no output writes or extra free after failed initialization, cleanup after failed decode, and caller ownership/content of the successful decode allocation. Repeated failure/success calls also check allocation balance. The fixture uses the real private C image type and compiles the original wrapper under a private name with fakes; it characterizes the C source. The unchanged
test_graphics_viewport::image_widthcases exercise real public-library decoding and max-size admission. The new tests.d pointer and sorted target/test graph registrations agree; the existing media module and source-set ownership need no changes.RED commit e1bb271 fails strict native compilation at the missing extraction file. Before extraction, all four recording cases pass against the unchanged original body with GCC in both library modes. Locally validated GREEN commit 3fbc480d9a12526a30231e32d50f7e79dc50b731 adds the exact original body and sorted unity membership. Both rebuilt C-reference and hybrid libobs pass the four new cases and two unchanged viewport cases; ldd confirms the selected library and all 1,769 dynamic exports match. CTest totals are 0.46 seconds OFF and 0.55 seconds ON. Strict GCC and Clang syntax checks pass. The complete native_build:: module passes 303 tests with zero failures or ignored tests (51.53 seconds execution), and 20 focused build-group, graph, Windows diagnostic and port-metadata checks pass. A single read-only clud-review found no material issues.
Rust Tier 1 mirrors, original-C Tier 3 differential/mutation coverage, the opaque private C session adapter and tests reaching the Rust export belong to the separate follow-up swap. The current C-source fixture is not a claim of Rust-boundary coverage. Tier 4 does not apply to this non-protocol API. Native Windows/macOS execution of the new C fixture, the full cmocka suite and hosted queue checks have not been verified locally.
Full ./lint ran once with SOLDR_PORCELAIN=0 and passed in 327.5 seconds. The final tree was clean after lint. Hosted CI remains the merge gate and the merge queue executes its selected heavy lanes.
All eight Rust category executables also link for Windows MSVC through ci/windows_link_check.py. This is link coverage, not native execution of the new C fixture. Only the host lld-link/libxml2 version-information warning was emitted.
The ./push client pipeline passed all six-target Clippy/Dylint gates, repository self-tests and data validators, host workspace/feature/doctest coverage, and Windows GNU linking. Its client-test lane passed in 1,025.6 seconds. Final signed head 3da39be has the same source tree as the locally validated GREEN commit; local signature verification, remote branch and PR head all agree. The optional Swift proof was unavailable because swift-format is absent; this PR changes no Swift files.