Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AA65325728 for ; Tue, 25 Nov 2025 17:39:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=212.227.17.22 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764092403; cv=none; b=IQDjy21T2LBnodQjiNc4dUJhZ9PYT0WZ/lzcupDXs5i1fADPlOSksOgvLqsSwMUstaRFNm5WIT/cNYBnI7MWWd82z3rIHko/kqk1bxxWC2XSZ5Z0rxZQzQTIPBwqLws5q/vyJyRfhf9nLXuvFrH1Jk1PycEnl/ELIIW2DSuwM+o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764092403; c=relaxed/simple; bh=eLXAv43/7TsJ7EK7/fIm4ePZartvJ+5XrHD+DCEdbIA=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References: MIME-Version:Content-Type; b=GKZX7hWv+uU8Fy0Sr+A3WpqKQMRW7YYxMw5dpmlLon04dUk+4V+VE+iAyb2YGuoDzaANirgqIwbdh0bVXBNgHyndiq4lD964LRqx64soYOjxM/kcHh8sBAjFG1kNNJi0j0u7hEO6X4JR64cs4VbUZt77IGNh0bjlD7aACrhTMsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de; spf=pass smtp.mailfrom=gmx.de; dkim=pass (2048-bit key) header.d=gmx.de header.i=johannes.schindelin@gmx.de header.b=MnplpaQ3; arc=none smtp.client-ip=212.227.17.22 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=gmx.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmx.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmx.de header.i=johannes.schindelin@gmx.de header.b="MnplpaQ3" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1764092398; x=1764697198; i=johannes.schindelin@gmx.de; bh=7pYNRbrpJNGRLjj2M3PXLzGZg8g712ELATPkVI/8xso=; h=X-UI-Sender-Class:Date:From:To:cc:Subject:In-Reply-To:Message-ID: References:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=MnplpaQ3bGI+/Ne3UdQRsQoIyyHFejbxpO+twg2QbD9zHXjbHdEgavTDsC8uLD82 5d/CDi52EXGb2u5lWA4JMM07j8EiJ/tUbTMhz011qSzrBRGyBAAkkxhrtbIRXQ4cC C/Cj7WW050bfRy6qNo5Qx34RYQ5vLO062jqmCeZSgajyNb3Ljh+X61WO+d67reip+ 1ExnPl9sKtbmDEY8kTrdlgqNyQCMeAOozzpsToFokqnEFQwP8m+8TKsHEe7DJ0gFy wE9aI6yKuFz210jNUmUtb3zdIu5kOq9jfV0o5Z/U6sXuX65Yt25tKly7R5Oh8FS7Q 2GxJjT6OIbkW6+j3Jg== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from [172.23.242.68] ([89.1.213.165]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MryTF-1vrDp50Q5N-00jfEf; Tue, 25 Nov 2025 18:39:58 +0100 Date: Tue, 25 Nov 2025 18:39:57 +0100 (CET) From: Johannes Schindelin To: Jeff King cc: git@vger.kernel.org Subject: Re: [PATCH 2/2] ci(windows-meson-test): handle options and output like other test jobs In-Reply-To: <20251118093519.GB530438@coredump.intra.peff.net> Message-ID: References: <20251118093221.GA530337@coredump.intra.peff.net> <20251118093519.GB530438@coredump.intra.peff.net> Precedence: bulk X-Mailing-List: git@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text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GgYZjZhfZeDOhCxTP 0ZHR00LeGk+02phYgXEj9rJZG1of8/4IHDonkSNYqwuSo0tpggfoIXG+LH+bxgN/XP95kOQY8 BmO9zFrqqx4Xq4IwvKU010ILkW+OJx+U43sY1X6wQOJ+zWUDHFhQry73DmRQfhCoKuSqS3eL4 tXnQW04cJMcfU35He8Q4RsO04KEY3jmtOUVYiS26qlOxyThBzsRolVvyVZ3tI9+jEp+2Pl5md NIGcITqWY7ZQiJXV3BgZGxottSi5GPe0eq2m/lqKocx63Iu6Ldw== Content-Transfer-Encoding: quoted-printable Hi Jeff, On Tue, 18 Nov 2025, Jeff King wrote: > The GitHub windows-meson-test jobs directly run "meson test" with the > --slice option. This means they skip all of the ci/lib.sh > infrastructure, and in particular: >=20 > 1. They do not actually set any GIT_TEST_OPTS like --verbose-log or > -x. >=20 > 2. They do not do the usual handle_failed_tests() magic to print test > failures or tar up failed directories. >=20 > As a result, you get almost no feedback at all when a test fails in this > job, making debugging rather tricky. >=20 > Let's try to make this behave more like the other CI jobs. Because we're > on Windows, we can't just use the normal run-build-and-tests.sh script. > Our build runs as a separate job (like the non-meson Windows job), and > then we parallelize the tests across several job slices. So we need > something like the run-test-slice.sh script that the "windows-test" job > uses. >=20 > In theory we could just swap out the "make" invocation there for > "meson". But it doesn't quite work, because "make" knows how to pull > GIT_TEST_OPTS out of GIT-BUILD-OPTIONS automatically. But for meson, we > have to extract them into the --test-args option ourselves. I tried > making the logic in run-test-slice.sh conditional, but there ended up > being hardly any common code at all (and there are some tricky ordering > constraints). So I added up with a new meson-specific test-slice runner. >=20 > Signed-off-by: Jeff King > --- Thank you for fixing this. The patch looks good to me. I cannot help but wonder whether switching to Meson was worth it, as we're not only deviating from the mainstream (if MSYS2 is any indication, Meson usage is negligible: 16 packages use it in MSYS2, 294 use CMake, and 975 use GNU make), but also are forced to repeat the very same steps we already took for `make`-based builds and then for CMake builds. This very much makes me think of some saying I vaguely remember that involves history and something about repetitions. > BTW, one curiosity. I tried swapping out "pwsh" as the shell for "bash", > to match what the non-meson test does. And it _mostly_ works, but > curiously it causes a handful of mergetool tests to fail (it looks like > maybe "c:\foo" Windows-style paths get used where we expect "/c/foo" > paths). I didn't dig further, and just added it to my "things that > confuse and terrify me about Windows" list. Indeed, the path conversion kicks in, where `/mingw64` gets converted to `D:\git-for-windows-minimal\mingw64` or something like that so that PowerShell isn't losing its mind over paths that simply don't exist. When you then call Bash (implicitly, as you know all too well Git's test suite depends on it in a major way, which is still a shame), this conversion is not reverted, at least not fully. Ciao, Johannes >=20 > .github/workflows/main.yml | 12 +++++++++++- > ci/run-test-slice-meson.sh | 13 +++++++++++++ > 2 files changed, 24 insertions(+), 1 deletion(-) > create mode 100755 ci/run-test-slice-meson.sh >=20 > diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml > index 816d5a34c4..27ebf2c8cc 100644 > --- a/.github/workflows/main.yml > +++ b/.github/workflows/main.yml > @@ -298,7 +298,17 @@ jobs: > path: build > - name: Test > shell: pwsh > - run: meson test -C build --no-rebuild --print-errorlogs --slice "= $(1+${{ matrix.nr }})/10" > + run: ci/run-test-slice-meson.sh build ${{matrix.nr}} 10 > + - name: print test failures > + if: failure() && env.FAILED_TEST_ARTIFACTS !=3D '' > + shell: bash > + run: ci/print-test-failures.sh > + - name: Upload failed tests' directories > + if: failure() && env.FAILED_TEST_ARTIFACTS !=3D '' > + uses: actions/upload-artifact@v4 > + with: > + name: failed-tests-windows-meson-${{ matrix.nr }} > + path: ${{env.FAILED_TEST_ARTIFACTS}} > =20 > regular: > name: ${{matrix.vector.jobname}} (${{matrix.vector.pool}}) > diff --git a/ci/run-test-slice-meson.sh b/ci/run-test-slice-meson.sh > new file mode 100755 > index 0000000000..961c94fba0 > --- /dev/null > +++ b/ci/run-test-slice-meson.sh > @@ -0,0 +1,13 @@ > +#!/bin/sh > + > +# We must load the build options so we know where to find > +# things like TEST_OUTPUT_DIRECTORY. This has to come before > +# loading lib.sh, though, because it may clobber some CI lib > +# variables like our custom GIT_TEST_OPTS. > +. "$1"/GIT-BUILD-OPTIONS > +. ${0%/*}/lib.sh > + > +group "Run tests" \ > + meson test -C "$1" --no-rebuild --print-errorlogs \ > + --test-args=3D"$GIT_TEST_OPTS" --slice "$((1+$2))/$3" || > +handle_failed_tests > --=20 > 2.52.0.278.gadc6434dc3 >=20 >=20