Skip to content

build: compile and run Cargo Qt graph tests against published Windows/macOS Qt SDKs #1878

Closed

Description

@zackees

Task

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-libs qt6-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.

Activity

  1. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Claiming: #1878 Windows/macOS Qt SDK lanes.

    Plan (two PRs, no new workflow files):

    1. 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.
    2. 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.

    First PR expected today.

  2. added
    claimed
    on Oct 23, 2026
  3. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Done in three PRs:

    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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    claimed

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions