]> git.ipfire.org Git - thirdparty/git.git/commit
gitlab-ci: restrict maximum number of link jobs on Windows
authorPatrick Steinhardt <ps@pks.im>
Wed, 26 Feb 2025 08:22:23 +0000 (09:22 +0100)
committerJunio C Hamano <gitster@pobox.com>
Wed, 26 Feb 2025 17:09:37 +0000 (09:09 -0800)
commit9350423982a851695b8f0fab1fd7aa8fafb10654
tree292c18a2a0f820ed4850f660fd1caebdd259f3d0
parent2c374ea4bb47c84f80f905df3a00b7d724386a28
gitlab-ci: restrict maximum number of link jobs on Windows

The hosted Windows runners on GitLab.com only have 7.5GB of RAM. Given
that "link.exe" provided by Microsoft Visual Studio is multi-threaded by
itself already and thus quite memory hungry this can quickly lead to
memory starvation, out-of-memory situations and thus failed CI jobs.

Fix the issue by limiting the number of concurrent linker jobs. The same
issue hasn't been observed on GitHub Actions yet, probably because it
got more than twice the amount of RAM with 16GB.

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
.gitlab-ci.yml