Skip to content

ci: build test_source_profiler_vendor only where the obs-websocket submodule is (Fixes #5955) - #5959

Merged
zackees merged 2 commits into
masterfrom
fix/5955-vendor-test-ws-gate
Nov 29, 2026
Merged

zackees merged 2 commits into
masterfrom
fix/5955-vendor-test-ws-gate

Conversation

@rdoupe

@rdoupe rdoupe commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Fixes #5955.

The source profiler vendor test (#5949) includes plugins/obs-websocket/lib/obs-websocket-api.h through its PCH, but unlike every other test that uses obs-websocket files it had no submodule gate. Windows Tier 2 under Wine checks out without submodules, so it fails:

frontend/build/frontend-utility-source-profiler-vendor.pch.h(13,10): fatal error: 'plugins/obs-websocket/lib/obs-websocket-api.h' file not found

This ejected #5950 from the merge queue (run 46294484704) and fails #5954 the same way.

Change

  • HAVE_WS_VENDOR_API_TEST_OWNER: true when plugins/obs-websocket/lib/obs-websocket-api.h exists. Set in test/cmocka/native-test-graph.cmake (and listed as a known host option) and in the Cargo graphics builder (rust/obs-build/src/validation.rs), with the optional-owner fallback in validation/graph.rs.
  • test_source_profiler_vendor gets "requires": "HAVE_WS_VENDOR_API_TEST_OWNER". Lanes with the submodule (Linux Tier 2) still build and run it.
  • ci/test_cmocka_websocket_gate.py: any graph target naming a plugins/obs-websocket path must require a HAVE_WS_ fact, so the next one is caught by ./lint instead of the queue.

Evidence

RED (commit cd72c50, on origin/master a173a79):

$ uv run --no-project python -m unittest ci/test_cmocka_websocket_gate.py
- ['test_source_profiler_vendor']
+ []
FAILED (failures=1)

GREEN (b3c2b45):

$ uv run --no-project python -m unittest ci/test_cmocka_websocket_gate.py ci/test_test_graph_sorted.py ci/test_native_test_graph_slices.py
Ran 5 tests ... OK
$ ./lint
== lane lint: ok
$ soldr cargo test -p obs-build --lib
test result: ok. 10 passed; 0 failed

The PR touches test/cmocka/, so its own Rust Tier 2 (windows, wine) job is the end-to-end check of the CMake gate.

Test cost: the new check is a Python unittest reading one JSON file, under 0.02 s, a few MB RSS, one thread. No Rust tests added.

🤖 Generated with Claude Code

rdoupe and others added 2 commits November 29, 2026 13:54
…5955)

test_source_profiler_vendor includes obs-websocket-api.h but has no
HAVE_WS_ requirement, so lanes without the submodule fail to build it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…bmodule is, GREEN (Fixes #5955)

A HAVE_WS_VENDOR_API_TEST_OWNER fact, true when
plugins/obs-websocket/lib/obs-websocket-api.h exists, set by the CMake
graph reader and the Cargo graphics builder, gates the test like the
other obs-websocket helpers. Windows Tier 2 under Wine checks out
without submodules and no longer fails on the missing header.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Ci-Attestation: {"at":1795978788,"gate":"data/all/compatibility","host":"linux-x86_64","key":"","lane":"client-checks","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":76,"stamp":"8587db6f1380e7dba011167ec7b64518","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978788,"gate":"data/all/flatpak-manifest","host":"linux-x86_64","key":"","lane":"client-checks","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":76,"stamp":"e15b2b0d83b5ee702068c51f07d341fb","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978788,"gate":"data/all/qt-xml","host":"linux-x86_64","key":"","lane":"client-checks","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":76,"stamp":"49da7981823819ba80cb5761784e26dc","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978788,"gate":"data/all/services-schema","host":"linux-x86_64","key":"","lane":"client-checks","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":76,"stamp":"1434ef9c3ae10ea5d035846540aea32d","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"general/all/client-lint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"c4286024a60fecacccfd99045128f0e5","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978788,"gate":"python/all/self-test","host":"linux-x86_64","key":"","lane":"client-checks","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":76,"stamp":"c46a728d5732c0132b5f82aeb2c15dd4","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-apple-darwin/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"245d80e25cab23c4b26b1128173eaec4","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-apple-darwin/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"332c1978686348a10fd76a25122f3c91","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"04e2c6a4ec94f31b4b162aacb6f9790b","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"9231447d354d56c0304325926428d045","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"6294d3df8d4af717d39a12278f714160","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/aarch64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"eb6630aa7c0e6f90f6379eadad6971ae","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-apple-darwin/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"27e00f8b91ea06a75dc5cf6dde06d3f4","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-apple-darwin/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"83871933fe58f50d15064df83730272f","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-pc-windows-msvc/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"5a829340c552744222b33536862e62c9","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-pc-windows-msvc/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"7b9ad9d54ad659ca43f317cc458b9e49","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-unknown-linux-gnu/client-clippy","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"020535b892e66b8f50dcab89492e7135","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795978711,"gate":"rust/x86_64-unknown-linux-gnu/client-dylint","host":"linux-x86_64","key":"fd0a9a3fc43fa9d3fce5487610344efc175d5a6e64b7639b171af8a695755b0a","lane":"client-lint","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":65,"stamp":"4aa463d517c3c535500bdb71eb7fc372","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}
Ci-Attestation: {"at":1795979080,"gate":"rust/x86_64-unknown-linux-gnu/client-test","host":"linux-x86_64","key":"6411e6d9e9f1aa2f4d64783cd84cca47030442788cf9e03e73da4b1287f727b0","lane":"client-test-x86_64-unknown-linux-gnu","parents":["cd72c5052d43f9de9842f725454e8fe27db86aa3"],"secs":291,"stamp":"a8c291565ae748df72059ab0f4355b18","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb","v":1,"via":"run"}

Client-Checks: {"checks":{"base":"a173a79dba3875e332612d951e8a9b7a6f14bb48","coverage":"all-tracked-applicable-files","diff":["ci/test_cmocka_websocket_gate.py","rust/obs-build/src/validation.rs","rust/obs-build/src/validation/graph.rs","test/cmocka/build/test-graph.json","test/cmocka/native-test-graph.cmake"],"head":"eed47d117e497acf51098e2c3c6c4acdc3d27449","tools":{"orchestrator-python":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.1.3 ]","schema-dependencies":"3.13.16 (main, Oct 14 2026, 01:04:01) [Clang 23.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-GITv2.15.4\n   compiled with: Threads Tree Output Push Reader Patterns Writer SAXv1 DTDValid HTML C14N Catalog XPath XPointer XInclude Iconv ICU ISO8859X Regexps Automata RelaxNG Schemas Schematron Modules Debug Zlib"},"tracked-digest":"bfdc2226daa9cf2da3ca87f7f8623caa91faf84ed6a371863f6f47b20dcf377b","tree":"09ab5db87eb74757dd6cd72515a96bd5e092deeb"}}
@rdoupe
rdoupe requested a review from zackees as a code owner November 29, 2026 19:04
@rdoupe rdoupe changed the title ci: build test_source_profiler_vendor only where the obs-websocket submodule is, GREEN (Fixes #5955) ci: build test_source_profiler_vendor only where the obs-websocket submodule is (Fixes #5955) Nov 29, 2026

@zackees zackees left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coordinator review: LGTM.

  • The cause is right: #5949's test_source_profiler_vendor includes plugins/obs-websocket/lib/obs-websocket-api.h through its PCH without a submodule gate. Windows Tier 2 under Wine checks out without submodules, so the build fails. That ejected #5950 twice (merge-group runs 46294484704 and 46296715438).
  • The fix: HAVE_WS_VENDOR_API_TEST_OWNER is set in both the CMake reader and obs-build's validation graph, so the two agree.
  • The guard: ci/test_cmocka_websocket_gate.py fails any graph target that names an obs-websocket path without a HAVE_WS_ requirement, so the next one can't slip in.
  • Status: auto-merge on. It has to land before #5950, #5953 and #5954 can get through the queue.

@zackees
zackees enabled auto-merge November 29, 2026 19:21
@zackees
zackees added this pull request to the merge queue Nov 29, 2026
Merged via the queue into master with commit b6f94bd Nov 29, 2026
53 checks passed
@zackees
zackees deleted the fix/5955-vendor-test-ws-gate branch November 29, 2026 20:41
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.

ci: Windows Tier 2 (Wine) fails to build test_source_profiler_vendor without the obs-websocket submodule

2 participants