From: Justin Tobler <jltobler@gmail.com>
To: Patrick Steinhardt <ps@pks.im>
Cc: git@vger.kernel.org
Subject: Re: [PATCH] ci: unset GITLAB_FEATURES envvar to not bust xargs(1) limits
Date: Tue, 3 Mar 2026 00:32:56 -0600 [thread overview]
Message-ID: <aaZ_yngsx-CXAx0p@denethor> (raw)
In-Reply-To: <aaZ8nyJFjFqct2Ri@pks.im>
On 26/03/03 07:15AM, Patrick Steinhardt wrote:
> On Mon, Mar 02, 2026 at 11:11:52AM -0600, Justin Tobler wrote:
> > On 26/03/02 12:55PM, Patrick Steinhardt wrote:
> [snip]
> > > The GITLAB_FEATURES environment variable makes up for roughly a third of
> > > the complete environment. This variable is a comma-separated list of
> > > features available for the GitLab instance, and seemingly it has been
> > > growing over time as GitLab added more and more features.
> > >
> > > Fix the issue by unsetting the environment variable in "ci/lib.sh". This
> > > ensures that the environment variables are now smaller than the upper
> > > limit on argument length again, and that in turn fixes the assert in
> > > xargs(1).
> >
> > So if we unset GITLAB_FEATURES, that puts us at 10987 bytes (17373 -
> > 6386) which would be under the upper limit. Unsetting this environment
> > variable seems like a reasonable means to mitigate this problem. Naive
> > question: is the upper limit something we could increase for the
> > environment?
>
> Unfortunately not. Under normal Linux systems you'd be able to do that,
> but in MSYS2 the limits are hardcoded as far as I could see.
Ah ok, good to know. I was wondering if there would be value in trying
to increase the headroom we have in case the overall size of the
environment variables increases over time again, but it sounds like this
wouldn't be possible. Hopefully we should be good though. :)
Thanks,
-Justin
prev parent reply other threads:[~2026-03-03 6:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-02 11:55 [PATCH] ci: unset GITLAB_FEATURES envvar to not bust xargs(1) limits Patrick Steinhardt
2026-03-02 17:11 ` Justin Tobler
2026-03-03 6:15 ` Patrick Steinhardt
2026-03-03 6:32 ` Justin Tobler [this message]
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=aaZ_yngsx-CXAx0p@denethor \
--to=jltobler@gmail.com \
--cc=git@vger.kernel.org \
--cc=ps@pks.im \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
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