You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
build: compile and run Cargo Qt graph tests against published Windows/macOS Qt SDKs #1878
Follow-up to #1869 / PR #1877. The explicit Qt SDK resolver (qt::Sdk, OBS_QT_TARGET_PREFIX/OBS_QT_HOST_PREFIX) resolves the published obs-studio-libsqt6-6.11.1 Windows x86_64 and macOS universal2 SDKs (qt_sdk_resolves_published_sdks) and compiles/runs the Qt graph and unchanged remux queue tests on Linux. It has not compiled or run anything on Windows or macOS hosts: those Rust lanes have no Qt.
Acceptance
In the existing Windows and macOS lanes (no new workflow files), fetch the published SDK with ci/fetch_libs_asset.py (pinned tag/asset/SHA256, cached), only when ci/ci_scope.py selects rust/obs-build Qt paths. Never build Qt in CI; a rebuild happens once in obs-rust/obs-studio-libs.
Run native_test_graph_generates_qt_metaobjects, canonical_remux_queue_runs_unchanged and qt_sdk_resolves_published_sdks with OBS_QT_TARGET_PREFIX set, through Cargo and CMake.
Windows: MSVC options and import libraries link; DLL PATH prepend lets the test load Qt and its platform plugin (QT_QPA_PLATFORM=offscreen).
macOS: framework link and rpath for both arm64 and x86_64 targets.
Record the CI time cost and keep it within the lane budgets in docs/ci-tooling.md.
Out of scope: Windows ARM64 and MinGW Qt, distro multiarch layouts as explicit prefixes, and the rest of #1332.
ci/ci_scope.py gets a qt_sdk output, set by rust/obs-build Qt paths (src/qt.rs, src/qt/**, src/platform/qt_sdk.rs, tests/qt_sdk.rs). It also selects the macOS and Windows lanes. Full runs set it too. When it is set, rust-tests fetches the pinned qt6-6.11.1 asset with ci/fetch_libs_asset.py (actions/cache, keyed on the SHA-256, saved from master only) and runs qt_sdk_resolves_published_sdks with OBS_QT_TEST_{WINDOWS,MACOS}_PREFIX. The PR records the step times.
native_test_graph_generates_qt_metaobjects and canonical_remux_queue_runs_unchanged through Cargo and CMake with OBS_QT_TARGET_PREFIX: MSVC import libraries and the DLL PATH on Windows, framework link and rpath on macOS.
Decisions: the Windows asset is 163 MB, so it is fetched only when qt_sdk is set (full runs and Qt path changes), never on every Windows PR.
ci: Qt native test graph on Windows/macOS (#1878, slice 2) #1968: native_test_graph_generates_qt_metaobjects runs through Cargo and CMake on both hosts. Fixes: a macOS framework search path (-F<lib>), no \\?\ verbatim paths for moc and cl.exe, and a 60 s bound on Qt programs.
Measured step cost: about 1 min 54 s on Windows (the vcpkg build is not cached yet) and 34 s on macOS.
Deviations and remaining work:
The published Windows Qt SDK ships no qoffscreen, so the tests use QT_QPA_PLATFORM=minimal (test_remux_queue_model already did that on Windows). Supporting offscreen there would be an obs-studio-libs change.
The macOS x86_64 slice is only resolved, not run, because the runner is arm64.
The Windows vcpkg cmocka and pkgconf could reuse Tier 2's vcpkg-bin cache if the step time matters.
Activity
zackees commentedon Oct 23, 2026
Claiming: #1878 Windows/macOS Qt SDK lanes.
Plan (two PRs, no new workflow files):
ci/ci_scope.pygets aqt_sdkoutput, set byrust/obs-buildQt paths (src/qt.rs,src/qt/**,src/platform/qt_sdk.rs,tests/qt_sdk.rs). It also selects the macOS and Windows lanes. Full runs set it too. When it is set,rust-testsfetches the pinnedqt6-6.11.1asset withci/fetch_libs_asset.py(actions/cache, keyed on the SHA-256, saved from master only) and runsqt_sdk_resolves_published_sdkswithOBS_QT_TEST_{WINDOWS,MACOS}_PREFIX. The PR records the step times.native_test_graph_generates_qt_metaobjectsandcanonical_remux_queue_runs_unchangedthrough Cargo and CMake withOBS_QT_TARGET_PREFIX: MSVC import libraries and the DLLPATHon Windows, framework link and rpath on macOS.Decisions: the Windows asset is 163 MB, so it is fetched only when
qt_sdkis set (full runs and Qt path changes), never on every Windows PR.First PR expected today.
ci: run the Qt native test graph against the published Windows/macOS …
obs-build: test the macOS Qt framework search path (RED, #1878)
obs-build: Qt framework search path on macOS, no verbatim paths on Wi…
ci: check the Qt SDK resolver against the published Windows/macOS SDKs (
test: bound the Qt metaobject test's programs and keep their output (#…
test: run the Qt metaobject test on the minimal platform plugin (#1878)
ci: Qt native test graph on Windows/macOS (obs-rust#1878, slice 2) (o…
obs-build: test package link options for MSVC import libraries (RED, #…
obs-build: link pkg-config packages through MSVC import libraries; ru…
ci: pass --exact once for both Qt native tests (#1878)
ci: test that native Qt test graph paths select the SDK step (RED, #1878
ci: native Qt test graph paths select the Windows/macOS Qt SDK step (…
obs-build: remux queue test on Windows/macOS via MSVC import libraries (
zackees commentedon Oct 23, 2026
Done in three PRs:
rust-testslanes fetch the pinnedqt6-6.11.1SDK whenci/ci_scope.pyqt_sdkis set (Qt SDK and native-graph paths, or full runs). They runqt_sdk_resolves_published_sdksagainst it.native_test_graph_generates_qt_metaobjectsruns through Cargo and CMake on both hosts. Fixes: a macOS framework search path (-F<lib>), no\\?\verbatim paths for moc and cl.exe, and a 60 s bound on Qt programs..libimport libraries, andcanonical_remux_queue_runs_unchangedruns unchanged on both hosts (vcpkg cmocka and pkgconf on Windows, brew on macOS).Measured step cost: about 1 min 54 s on Windows (the vcpkg build is not cached yet) and 34 s on macOS.
Deviations and remaining work:
qoffscreen, so the tests useQT_QPA_PLATFORM=minimal(test_remux_queue_modelalready did that on Windows). Supportingoffscreenthere would be an obs-studio-libs change.vcpkg-bincache if the step time matters.