Repository navigation
qt6: build QtTest on Linux and publish the Linux asset from qt6.yml (obs-rust/obs-studio#4837) - #32
Conversation
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]>
|
@zackees a question about the release of this change, since the Linux Qt asset is built and published outside CI today ( Could you publish the rebuilt asset with your usual pipeline after this is merged, for example with the label Or, if you prefer that the Linux Qt asset comes from CI from now on: I can add 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
left a comment
There was a problem hiding this comment.
Coordinator review (the same account as the author, so this is a check, not an independent approval).
- Correctness:
-DFEATURE_testlib=ONis the only build change. The header comment and the test say why. With no other qtbase feature changed, QtTest only addsQt6Testto the prefix. - RED → GREEN:
test_qtbase_builds_qttestasserts 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.
…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]>
…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]>
Refs obs-rust/obs-studio#4837.
Problem
recipes/linux/qt6.shconfigures qtbase with-DFEATURE_testlib=OFF. The Linux Qt asset (qt6-6.11.1-linux-x86_64-glibc2.28-release) therefore has noQt6Test, and obs-studio's Qt Frontend Linux job does not build the 8 Qt-linked tests that useQTest(test_dock_proportions,test_dock_state_restartand 6 others).qt6.ymlbuilds and publishes Windows and macOS automatically.Change
recipes/linux/qt6.sh:-DFEATURE_testlib=ON; the header comment lists Test and says why (REDda92bfc, GREEN8b1c8c8).qt6.yml: abuild-linuxjob builds Qt withrecipes/linux/qt6.shin the manylinux 2.28 image throughrecipes/linux/ci-build.sh(the same pathlinux.ymluses for FFmpeg), records provenance, and the existingpublishjob publishes it with the Windows and macOS assets.platforms(all,linux,windows-macos) andlabel. 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.shacceptsqt6and reads itsQT_VERSION=asrecipes/linux/pack.shdoes (RED4718185, GREEN0eee7fb).The AppImage is not affected: obs-studio's
build-aux/appimage/assemble_appdir.pybundles the dependencies of the OBS binaries and a fixed set of Qt plugin folders. OBS does not link QtTest, solibQt6Testis not bundled.Release after merge
Dispatch
qt6.ymlwithplatforms: linuxandlabel: testlib. It publishesqt6-6.11.1-linux-x86_64-glibc2.28-release-testlib.tar.zstin theqt6-6.11.1release 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
recipes/linuximage on an x86_64 Linux host: 369 s, prefix 101 MB,lib/cmakehasQt6Test.9800296f8,ci/linux_qt_frontend.pyagainst 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 onmain(macOS host).qt6.yml: no findings in the new lines (two old ones: thewindows-11-armrunner label is newer than actionlint, and SC2035 on the existing*/manifest.jsonglob).🤖 Generated with Claude Code