From eb35167dd4b5f410c261680c8d634bee394eca19 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Mon, 2 Mar 2026 12:55:02 +0100 Subject: [PATCH] ci: unset GITLAB_FEATURES envvar to not bust xargs(1) limits We have started to see the following assert happen in our GitLab CI pipelines for jobs that use Windows with Meson: assertion "bc_ctl.arg_max >= LINE_MAX" failed: file "xargs.c", line 512, function: main The assert in question verifies that we have enough room available to pass at least `LINE_MAX` many bytes via the command line. The xargs(1) binary in those jobs comes from Git for Windows, which in turn sources the binaries from MSYS2, and has the following limits in place: $ & "C:/Program Files/Git/usr/bin/bash.exe" -l -c 'xargs --show-limits Signed-off-by: Junio C Hamano --- ci/lib.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/lib.sh b/ci/lib.sh index 3ecbf147db..42a2b6a318 100755 --- a/ci/lib.sh +++ b/ci/lib.sh @@ -231,6 +231,10 @@ then distro=$(echo "$CI_JOB_IMAGE" | tr : -) elif test true = "$GITLAB_CI" then + # This environment is multiple kB in size and may cause us to exceed + # xargs(1) limits on Windows. + unset GITLAB_FEATURES + CI_TYPE=gitlab-ci CI_BRANCH="$CI_COMMIT_REF_NAME" CI_COMMIT="$CI_COMMIT_SHA"