Skip to content

ci: host-named files in Qt-area plugins don't select the Windows/macOS lanes; cmake/cross not run in CI #1294

Closed

Description

@zackees

Part of #897 (platform-scoped CI).

Problem. Windows/macOS host code in plugins whose path ci/ci_scope.py files under a Qt area is not compiled by any PR CI job. Found on #1292 (#855, frontend-tools).

  • plugins/frontend-tools/ is a Qt area, which selects only Linux and the Linux Qt lane (windows=False; the macOS flag is set, but no macOS job builds this plugin).
  • ci_scope.py has no rule that selects an OS lane from host-named paths. Rename platform folders and files to hosts/{windows,macos,linux,posix} (match the Rust layout) #1009's naming (hosts/<os>/, *-host-<os>) was meant to make that one rule, roughly /hosts?[/-](windows|macos|linux|posix)[/.], but it was never added.
  • cmake/cross/ (C/C++ cross-compile for win-x64 and mac-arm64 via cmake/cross/docker.sh) only runs locally. The CI cross lane is Rust-only.

On #1292 these files are compiled by no CI job:

  • frontend-tools-host-windows and frontend-tools-host-macos
  • the captions files
  • auto-scene-switcher-win and auto-scene-switcher-osx, with their precompiled headers
  • the Windows and macOS builds of scripts.cpp.hpp and auto-scene-switcher.cpp.hpp

They were checked only by a local cmake/cross run (mac-arm64 73/73; win-x64 compiled the host group, then stopped on unrelated missing win-dshow headers). The same gap applies to any host file a PR adds in a Qt-area plugin, and only master's push builds (or release builds) would catch a break.

Proposed.

  1. In ci_scope.py, a path matching the host naming rule (*-host-windows*, hosts/windows/, …, *-windows.pch.*) selects that OS's lane, whatever area the rest of the path is in. It needs a test in ci/test_ci_scope*.py.
  2. Optionally, run cmake/cross in CI for the touched plugins' host groups, as a cheap compile-only check (no app build), so Windows/macOS host files get compiled even when the full lanes aren't selected.
  3. Fix the win-dshow cross build (missing dshowcapture headers) so the win-x64 cross check can run to the end.

Test: ci_scope on #1292's file list selects windows and macos.

Activity

  1. zackees commented on Oct 18, 2026

    @zackees
    MemberAuthor

    Claiming part 1: in ci/platform_paths.py / ci/ci_scope.py, a path matching the host naming rule (*-host-<os>*, hosts/<os>/, *-<os>.pch.*, in windows/macos/linux/posix) selects that OS's lane whatever area the rest of the path is in, with a test (#1292's file list must select windows and macos). Parts 2 and 3 (cmake/cross in CI, the win-dshow cross build) stay open.

  2. added
    claimed
    on Oct 18, 2026
  3. removed
    claimed
    on Oct 20, 2026
  4. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Claiming: #1294 part 3. cmake/cross/docker.sh win-x64 on master fails at configure: cmake/cross/CMakeLists.txt still names coreaudio-encoder.core+.hpp.cpp, which #1607 split into .windows+/.macos+. Plan: 1) point the cross target at the current group, 2) rerun win-x64 and fix what it shows next (the earlier win-dshow header gap), 3) a ci/ test that every source the cross CMakeLists names exists, so CI catches this kind of drift. PR today.

  5. added
    claimed
    on Oct 23, 2026
  6. zackees commented on Oct 23, 2026

    @zackees
    MemberAuthor

    Part 3 done in #1967 (merged): cmake/cross/docker.sh win-x64 mac-arm64 builds every target again. The win-dshow header gap no longer reproduced. The real breakage was drift from the coreaudio-encoder and decklink host splits, and ci/test_cross_sources.py now catches renamed sources. Still open: part 2 (run cmake/cross in CI). Releasing part 3.

  7. moved this from In progress to Triage in obs-rust Multiviewon Oct 25, 2026
  8. removed
    claimed
    on Oct 25, 2026
  9. added
    P2
    size:M
    on Oct 25, 2026
  10. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    /ready

    Triage: part 1 is done (#1387, host-named paths select their OS lane) and so is part 3 (#1967, cmake/cross builds every target, ci/test_cross_sources.py). What's left is part 2: run cmake/cross (compile-only, no app build) in PR CI for the host groups a PR touches.

    That gap just broke master: #2176 added the frontend-windows-obs-main PCH with shellapi.h before windows.h. No PR job compiled it, and only the nightly Windows app build caught it (#1395, fixed in #2359). A compile-only cross check of the touched frontend/plugin Windows and macOS groups would have failed on the PR.

    Acceptance: a PR that changes a Windows or macOS host group (including its *.pch.hpp) compiles it for win-x64/mac-arm64 in PR CI, as a job in the existing workflows (no new workflow file), and it fails on a reverted #2359. P2, size:M.

  11. added
    ready
    on Oct 25, 2026
  12. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming: #1294 part 2. I'll add a compile-only cmake/cross job to the existing PR workflow that builds the host groups a PR touches, plus a ci/ test that selects it.

  13. moved this from Ready to In progress in obs-rust Multiviewon Oct 25, 2026
  14. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Part 2 is done. #2407 added the compile-only Cross Compile 🧰 PR job, which builds the cmake/cross host groups a PR touches (ci/test_cross_scope.py), and #2410 extended it to the frontend's Windows and macOS Qt groups (ci/test_cross_qt.py). With parts 1 (#1387) and 3 (#1967) already merged, the issue is complete. #2410 said "Closes #2408 and #1294", and GitHub only closes the first issue in that form.

  15. moved this from In progress to Done in obs-rust Multiviewon Oct 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P2readysize:M

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions