From c14452848197399448ec6a0f1c93bcc27d6a48be Mon Sep 17 00:00:00 2001 From: Jorijn van der Graaf Date: Fri, 27 Nov 2026 10:22:34 +0100 Subject: [PATCH] docs(packaging): add the 6.5.0 release entry 6.5.0 gives a test that sets Test::wayland a headless compositor of its own, so that the windows a test opens through WAYLAND_DISPLAY no longer show up on the desktop of whoever runs the suite, ships weston in the Flatpak for it, and runs every test's command with a TMPDIR of its own, so that two runs of `crafter-build test` at once no longer write into each other's temporary files where the test's runner hands it TMPDIR, as running it directly and qemu-user do, and wine and wasmtime do not. A minor release, by the version rule: the notes have New and Fixes and nothing Breaking. The range adds Test::wayland, TestBuilder::Wayland, TestResult::compositorLog, RunTestsOptions::compositorOverride and the export of PrivateDirectory, and two parameters at the end of RunSingleTest, both with defaults, so that the calls to it that compiled before compile unchanged. --- .../flatpak/net.catcrafts.CrafterBuild.metainfo.xml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml index afaf84a..f9b0307 100644 --- a/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml +++ b/packaging/flatpak/net.catcrafts.CrafterBuild.metainfo.xml @@ -26,6 +26,19 @@ + + +

New

+
    +
  • A test that sets Test::wayland, or .Wayland() on what AddTest returns, runs with a headless Wayland compositor of its own instead of your session's display, so the windows it opens through WAYLAND_DISPLAY no longer show up on your desktop. The compositor is started for that test alone and stopped when it ends; the test finds it through WAYLAND_DISPLAY, the full path of its socket, and runs without DISPLAY. It is weston on its headless backend with its GL renderer, unless CRAFTER_BUILD_COMPOSITOR or the new --compositor= names another command, and host gives such tests your own display, to watch what they draw. A test whose compositor cannot be started fails, saying why, unless it declares .Requires("tool:weston"), which skips it where weston is missing, and when a test that ran fails, crashes or times out, what its compositor printed, if anything, goes to build/test-logs/<name>.compositor.log, named as the test's own log is. The README's new "Tests that open windows" section has the details.
  • +
  • The Flatpak ships weston 16.0.2, with its headless backend, its GL renderer and its desktop shell: the compositor those tests get.
  • +
+

Fixes

+
    +
  • Two runs of crafter-build test at once no longer write into each other's temporary files. Each test now runs with TMPDIR naming a directory of its own, made for the run, so fs::temp_directory_path() in a test is the test's alone. Tests that staged files under fixed names there collided with another run doing the same: natively every process shares /tmp, and in the Flatpak every instance of the app shares one. What a test leaves there is removed when it passes or skips, and kept when it fails, crashes or times out, with its place in the test's log, until a later run removes it, a minute after the run that kept it ended, or after its last change to it where that run was killed. This takes a runner that passes the test TMPDIR, as running it directly and qemu-user do; under wine, which does not pass it on, and wasmtime, which passes on no environment at all, a test's temporary directory is what it was. A test that builds against a sysroot it stages there, or has crafter-build fetch a repository it stages there, keys crafter-build's cache on a path that is now a new one every run: point XDG_CACHE_HOME into its temporary directory as well.
  • +
+
+

Fixes