public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: Johannes Schindelin <Johannes.Schindelin@gmx•de>
To: Patrick Steinhardt <ps@pks•im>
Cc: git@vger•kernel.org, Justin Tobler <jltobler@gmail•com>,
	 Junio C Hamano <gitster@pobox•com>, Jeff King <peff@peff•net>
Subject: Re: [PATCH 5/7] ci: make test slicing consistent across Meson/Make
Date: Wed, 18 Feb 2026 22:32:20 +0100 (CET)	[thread overview]
Message-ID: <83168201-9c26-4ece-51e1-1931d4b38443@gmx.de> (raw)
In-Reply-To: <20260211-b4-pks-ci-meson-improvements-v1-5-cb167cc80b86@pks.im>

Hi Patrick,

On Wed, 11 Feb 2026, Patrick Steinhardt wrote:

> In the preceding commit we have adjusted test slicing to be one-based
> when using the "ci/run-test-slice.sh" script. But we also have an
> equivalent script for Meson that is still zero-based, which is of course
> inconsistent.
> 
> Adapt the script to be one-based, as well, and adapt the GitHub workflow
> accordingly. Note that GitLab doesn't yet use the script, so it does not
> need to be adapted. This will change in the next commit though.

This seems to require the following to be squashed in:

-- snip --
From 677370c8cd3b73358713a0efac6bb573b347d53f Mon Sep 17 00:00:00 2001
From: Johannes Schindelin <johannes.schindelin@gmx•de>
Date: Wed, 18 Feb 2026 22:12:27 +0100
Subject: [PATCH] fixup??? ci: make test slicing consistent across Meson/Make

This seems to be needed to let the first "win+VS test" job pass. See
https://github.com/git-for-windows/git/actions/runs/22153194896/job/64053953314#step:5:70
("fatal: slice must be in the range 1 <= slice <= 10, got '0'").

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx•de>
---
 .github/workflows/main.yml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index 412842eb3e2..42585fff779 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -240,7 +240,7 @@ jobs:
       shell: bash
       env:
         NO_SVN_TESTS: 1
-      run: . /etc/profile && ci/run-test-slice.sh ${{matrix.nr}} 10
+      run: . /etc/profile && ci/run-test-slice.sh $((${{matrix.nr}}+1)) 10
     - name: print test failures
       if: failure() && env.FAILED_TEST_ARTIFACTS != ''
       shell: bash
-- snap --

This here run proves that this change fixes the CI failure:
https://github.com/git-for-windows/git/actions/runs/22157880378/job/64067214717#step:5:70

Patrick, would you mind adopting this amendment into your patch?

Thank you,
Johannes

> 
> Signed-off-by: Patrick Steinhardt <ps@pks•im>
> ---
>  .github/workflows/main.yml | 2 +-
>  ci/run-test-slice-meson.sh | 2 +-
>  2 files changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
> index 76ef513e72..352357965b 100644
> --- a/.github/workflows/main.yml
> +++ b/.github/workflows/main.yml
> @@ -298,7 +298,7 @@ jobs:
>          path: build
>      - name: Test
>        shell: bash
> -      run: ci/run-test-slice-meson.sh build ${{matrix.nr}} 10
> +      run: ci/run-test-slice-meson.sh build $((${{matrix.nr}} + 1)) 10
>      - name: print test failures
>        if: failure() && env.FAILED_TEST_ARTIFACTS != ''
>        shell: bash
> diff --git a/ci/run-test-slice-meson.sh b/ci/run-test-slice-meson.sh
> index 961c94fba0..a6df927ba5 100755
> --- a/ci/run-test-slice-meson.sh
> +++ b/ci/run-test-slice-meson.sh
> @@ -9,5 +9,5 @@
>  
>  group "Run tests" \
>  	meson test -C "$1" --no-rebuild --print-errorlogs \
> -		--test-args="$GIT_TEST_OPTS" --slice "$((1+$2))/$3" ||
> +		--test-args="$GIT_TEST_OPTS" --slice "$(($2))/$3" ||
>  handle_failed_tests
> 
> -- 
> 2.53.0.295.g64333814d3.dirty
> 
> 
> 

  reply	other threads:[~2026-02-18 21:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-11 10:34 [PATCH 0/7] Some assorted fixes for GitLab CI Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 1/7] ci: handle failures of test-slice helper Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 2/7] ci: don't skip smallest test slice in GitLab Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 3/7] meson: fix MERGE_TOOL_DIR with "--no-bin-wrappers" Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 4/7] github: fix Meson tests not executing at all Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 5/7] ci: make test slicing consistent across Meson/Make Patrick Steinhardt
2026-02-18 21:32   ` Johannes Schindelin [this message]
2026-02-19  6:18     ` Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 6/7] gitlab-ci: use "run-test-slice-meson.sh" Patrick Steinhardt
2026-02-11 10:34 ` [PATCH 7/7] gitlab-ci: handle failed tests on MSVC+Meson job Patrick Steinhardt
2026-02-11 10:54 ` [PATCH 0/7] Some assorted fixes for GitLab CI Patrick Steinhardt
2026-02-11 16:52   ` Junio C Hamano
2026-02-19  6:25 ` [PATCH v2 " Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 1/7] ci: handle failures of test-slice helper Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 2/7] ci: don't skip smallest test slice in GitLab Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 3/7] meson: fix MERGE_TOOL_DIR with "--no-bin-wrappers" Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 4/7] github: fix Meson tests not executing at all Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 5/7] ci: make test slicing consistent across Meson/Make Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 6/7] gitlab-ci: use "run-test-slice-meson.sh" Patrick Steinhardt
2026-02-19  6:25   ` [PATCH v2 7/7] gitlab-ci: handle failed tests on MSVC+Meson job Patrick Steinhardt
2026-02-19 18:24   ` [PATCH v2 0/7] Some assorted fixes for GitLab CI Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83168201-9c26-4ece-51e1-1931d4b38443@gmx.de \
    --to=johannes.schindelin@gmx$(echo .)de \
    --cc=git@vger$(echo .)kernel.org \
    --cc=gitster@pobox$(echo .)com \
    --cc=jltobler@gmail$(echo .)com \
    --cc=peff@peff$(echo .)net \
    --cc=ps@pks$(echo .)im \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox