Skip to content

qt6: build QtTest on Linux and publish the Linux asset from qt6.yml (obs-rust/obs-studio#4837) - #32

Merged
vpacher merged 4 commits into
mainfrom
fix/4837-qt-testlib
Nov 19, 2026
Merged

vpacher merged 4 commits into
mainfrom
fix/4837-qt-testlib

Conversation

@vpacher

@vpacher vpacher commented Nov 13, 2026 •

Copy link
Copy Markdown
Member

Refs obs-rust/obs-studio#4837.

Problem

  1. recipes/linux/qt6.sh configures qtbase with -DFEATURE_testlib=OFF. The Linux Qt asset (qt6-6.11.1-linux-x86_64-glibc2.28-release) therefore has no Qt6Test, and obs-studio's Qt Frontend Linux job does not build the 8 Qt-linked tests that use QTest (test_dock_proportions, test_dock_state_restart and 6 others).
  2. The Linux Qt asset is built and published by hand, while qt6.yml builds and publishes Windows and macOS automatically.

Change

  • recipes/linux/qt6.sh: -DFEATURE_testlib=ON; the header comment lists Test and says why (RED da92bfc, GREEN 8b1c8c8).
  • qt6.yml: a build-linux job builds Qt with recipes/linux/qt6.sh in the manylinux 2.28 image through recipes/linux/ci-build.sh (the same path linux.yml uses for FFmpeg), records provenance, and the existing publish job publishes it with the Windows and macOS assets.
  • Two new inputs: platforms (all, linux, windows-macos) and label. A rebuild of a platform that is already published needs a label: the upload never overwrites (no --clobber), so published bytes stay immutable.
  • recipes/linux/ci-build.sh accepts qt6 and reads its QT_VERSION= as recipes/linux/pack.sh does (RED 4718185, GREEN 0eee7fb).

The AppImage is not affected: obs-studio's build-aux/appimage/assemble_appdir.py bundles the dependencies of the OBS binaries and a fixed set of Qt plugin folders. OBS does not link QtTest, so libQt6Test is not bundled.

Release after merge

Dispatch qt6.yml with platforms: linux and label: testlib. It publishes qt6-6.11.1-linux-x86_64-glibc2.28-release-testlib.tar.zst in the qt6-6.11.1 release beside the current asset and records it in the catalog. obs-studio then pins it (obs-rust/obs-studio#4837 part 2; part 1, the job failing on an unlisted skipped Qt test, is obs-rust/obs-studio#5265).

Tests

  • Local build of the recipe in the recipes/linux image on an x86_64 Linux host: 369 s, prefix 101 MB, lib/cmake has Qt6Test.
  • obs-studio master 9800296f8, ci/linux_qt_frontend.py against this prefix: all Qt-linked tests build and pass, including the 8 skipped today.
  • uv run --group dev pytest: 68 pass, 1 fails: tests/test_catalog.py::test_floor_is_measured, which fails the same way on main (macOS host).
  • actionlint 1.7.7 on qt6.yml: no findings in the new lines (two old ones: the windows-11-arm runner label is newer than actionlint, and SC2035 on the existing */manifest.json glob).
  • Not run: the workflow itself (it publishes). The first dispatch after the merge is its test; a GitHub-hosted runner should need about 30-60 min for the Linux build.

🤖 Generated with Claude Code

vpacher and others added 2 commits November 13, 2026 09:30
RED: the recipe configures qtbase with -DFEATURE_testlib=OFF, so the
asset has no Qt6Test and obs-studio's Qt Frontend Linux job does not
build the Qt-linked tests that use QTest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
GREEN: qtbase is configured with -DFEATURE_testlib=ON, so the prefix
has Qt6Test and its CMake package. obs-studio's Qt Frontend Linux job
then builds the 8 Qt-linked tests that use QTest. The AppImage bundles
only the libraries OBS links, so it does not carry QtTest.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vpacher

vpacher commented Nov 13, 2026

Copy link
Copy Markdown
Member Author

@zackees a question about the release of this change, since the Linux Qt asset is built and published outside CI today (bosn run --task qt6-linux, then pack, add and the release upload).

Could you publish the rebuilt asset with your usual pipeline after this is merged, for example with the label testlib beside the current qt6-6.11.1-linux-x86_64-glibc2.28-release? Then I pin it in obs-studio (obs-rust/obs-studio#4837) together with the change that makes the Qt Frontend Linux job fail when a Qt test has no target.

Or, if you prefer that the Linux Qt asset comes from CI from now on: I can add qt6 to the dispatch-only linux.yml, as it already builds FFmpeg in the same manylinux image with a pack record and provenance.txt. Its artifact would then be what gets published.

I can also do the publishing myself, but I did not want to put a binary built on my machine into the dependency chain without asking.

@vpacher vpacher left a comment

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Coordinator review (the same account as the author, so this is a check, not an independent approval).

  • Correctness: -DFEATURE_testlib=ON is the only build change. The header comment and the test say why. With no other qtbase feature changed, QtTest only adds Qt6Test to the prefix.
  • RED → GREEN: test_qtbase_builds_qttest asserts the flag and the absence of =OFF (da92bfc RED, 8b1c8c8 GREEN).
  • Release safety: published assets do not change. The rebuilt asset needs a new label next to the 6.11.1 asset, and the obs-studio pin follows in its own PR. The AppImage bundles only the libraries OBS links, so it does not ship libQt6Test.
  • This repo has no PR checks on this head, so the merge is a local one. The PR body records the local evidence (recipe build, the 8 QTest tests passing against the prefix, pytest 65/66 with the one failure also on main).

Verdict: ready to merge. The merge is left to the maintainer because this is their own PR.

vpacher and others added 2 commits November 19, 2026 18:36
…tudio#4837)

The Linux Qt asset is built and published by hand today, while qt6.yml
publishes Windows and macOS. The new cases require ci-build.sh to accept
qt6 and qt6.yml to build Linux with it and publish it with the others.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…st/obs-studio#4837)

qt6.yml now builds Linux (glibc 2.28) with recipes/linux/qt6.sh in the
manylinux image through recipes/linux/ci-build.sh, like linux.yml builds
FFmpeg, and publishes it with the Windows and macOS assets. Two new inputs:
platforms (all, linux, windows-macos) and label, for a rebuild of a
platform that is already published (the upload never overwrites).
ci-build.sh accepts qt6 and reads its QT_VERSION as pack.sh does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@vpacher vpacher changed the title recipe(qt6): build QtTest on Linux (obs-rust/obs-studio#4837) qt6: build QtTest on Linux and publish the Linux asset from qt6.yml (obs-rust/obs-studio#4837) Nov 19, 2026
@vpacher
vpacher requested review from zackees and removed request for zackees November 19, 2026 17:40
@vpacher
vpacher merged commit 9c0518a into main Nov 19, 2026
@obs-rust-project-manager obs-rust-project-manager Bot moved this from Stalled to Done in obs-rust Multiview Nov 19, 2026
wesleyhawes pushed a commit to wesleyhawes/obs-studio that referenced this pull request Nov 21, 2026
…t#4837) (obs-rust#5270)

* test: the Qt job pins the Qt asset with QtTest and skips no Qt test (obs-rust#4837)

test_qt_fastpath pins qt6-6.11.1-linux-x86_64-glibc2.28-release-testlib,
the Linux Qt asset with QtTest (obs-rust/obs-studio-libs#32). A new case
requires an empty KNOWN_SKIPS: every Qt test is built and run. The stale
entry check now uses a patched list, so it still holds with an empty one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* ci: pin the Linux Qt asset with QtTest and run every Qt test (obs-rust#4837)

The Qt Frontend Linux job pins qt6-6.11.1-linux-x86_64-glibc2.28-release-
testlib (obs-rust/obs-studio-libs#32, published by its qt6.yml), which has
QtTest. KNOWN_SKIPS is empty: the 8 Qt tests that need QtTest, among them
the dock layout tests, are built and run in CI.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

* cmake: the cross host Qt follows the Qt job's pin (obs-rust#4837)

test_cross_qt requires the cross build's host Qt to be the asset the Qt
Frontend Linux job pins. The testlib asset is the same Qt 6.11.1 recipe
with QtTest, so its host tools are unchanged.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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