Skip to content

ci: Qt native test graph on Windows/macOS (#1878, slice 2) - #1968

Merged
zackees merged 5 commits into
masterfrom
infra/1878-qt-native-win-mac
Oct 23, 2026
Merged

zackees merged 5 commits into
masterfrom
infra/1878-qt-native-win-mac

Conversation

@zackees

@zackees zackees commented Oct 23, 2026 •

Copy link
Copy Markdown
Member

Refs #1878 (slice 2). #1966 (slice 1) has merged.

native_build::native_test_graph_generates_qt_metaobjects (moc, uic and rcc, then link and run, through Cargo and CMake) now passes against the published Qt 6.11.1 SDKs on the Windows and macOS lanes (run 40026510121; the step took 25 s on Windows and 36 s on macOS).

  • RED 1 269a273: the Check Published Qt SDK step runs the test (--features libobs-integration, with OBS_QT_TARGET_PREFIX, CMAKE_PREFIX_PATH and QT_PLUGIN_PATH, plus PATH on Windows). Run 40012359434 failed on both OSes:
    • macOS: QtCore.framework/Headers/QObject:1:10: fatal error: 'QtCore/qobject.h' file not found.
    • Windows: moc_0.cpp(9): fatal error C1083: Cannot open include file: '\\?\C:\...\answer.hpp'.
  • RED 2 05faa2d: qt_sdk_resolves_macos_frameworks_for_each_universal_slice expects -F<prefix>/lib once in the interface. It fails locally.
  • GREEN cf8c149:
    • Each lib/<M>.framework/Headers include directory adds the framework search path -F<lib> (platform::qt_framework_search).
    • qt.rs canonicalizes with dunce, so moc and cl.exe never see a \\?\ verbatim path.
  • 956bd02: on Windows, answer.exe then hung with no output (run 40015194009, cancelled after 36 min). The test now kills a Qt program after 60 s and prints its output, ctest gets --timeout 60, and the CI step has a 15 min limit.
  • a718f90: the cause of that hang is that the published Windows SDK ships no qoffscreen (only qminimal, qwindows and qdirect2d). The test now uses QT_QPA_PLATFORM=minimal, which all three SDKs ship. build: compile and run Cargo Qt graph tests against published Windows/macOS Qt SDKs #1878's acceptance criterion says offscreen; adding qoffscreen to the Windows SDK would be an obs-studio-libs change.

Still open on #1878: canonical_remux_queue_runs_unchanged, which needs cmocka on both hosts, and the macOS x86_64 run (the arm64 runner checks only x86_64 resolution).

Tiers: Tier 1 (tests/qt_sdk.rs) and the native graph test on the OS lanes. Tiers 2 to 4 do not apply.

…SDKs (RED, #1878)

Adds native_test_graph_generates_qt_metaobjects (Cargo and CMake halves)
to the Windows and macOS Qt SDK step. Expected to fail until the MSVC and
framework link paths work.
qt_sdk_resolves_macos_frameworks_for_each_universal_slice fails: the
interface has no -F<prefix>/lib, so <QtCore/qobject.h> from a framework
header is not found (macOS CI, native_test_graph_generates_qt_metaobjects).
…ndows (GREEN, #1878)

- Each lib/<M>.framework/Headers include directory adds -F<lib> once, so
  framework headers resolve <QtCore/qobject.h>.
- qt.rs canonicalizes with dunce: moc and the moc group wrote
  \\?\C:\... includes that cl.exe cannot open.
@zackees
zackees force-pushed the infra/1878-qt-native-win-mac branch from 0323c06 to cf8c149 Compare October 23, 2026 19:55
…1878)

On Windows the generated answer.exe never exited (run 40015194009,
cancelled after 36 min). The test now kills it after 60 s and prints its
stdout/stderr; ctest gets --timeout 60, and the CI step a 15 min limit.
The published Windows Qt SDK ships qminimal, qwindows and qdirect2d but no
qoffscreen, so answer.exe hung in Qt's fatal-error path (killed after 60 s
with no output, run 40022893426). minimal ships in all three SDKs.
@zackees
zackees marked this pull request as ready for review October 23, 2026 21:41
@zackees
zackees enabled auto-merge October 23, 2026 21:41
@zackees
zackees added this pull request to the merge queue Oct 23, 2026
Merged via the queue into master with commit c81244c Oct 23, 2026
32 checks passed
@zackees
zackees deleted the infra/1878-qt-native-win-mac branch October 26, 2026 15:45
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.

1 participant