Thread (9 messages) flat view 9 messages, 4 authors, 49m ago
HOTtoday

[PATCH 2/2] ci: match Linux jobs to available CPUs

From: Tamir Duberstein <hidden>
Date: 2026-09-23 17:13:47
Subsystem: the rest · Maintainer: Linus Torvalds

GitHub Actions runs ten Make test suites concurrently even on private
Linux runners with two CPUs. Pull request runs enable the long tests.
These runs hit ENOSPC while multiple multi-gigabyte clone and repack
fixtures were active.

Use nproc to choose Make and prove parallelism, as the GitLab CI path
already does. This reduces overlapping fixtures on small Linux runners
while keeping the long tests enabled.

Signed-off-by: Tamir Duberstein <redacted>
---
 ci/lib.sh | 4 ++++
 1 file changed, 4 insertions(+)
diff --git a/ci/lib.sh b/ci/lib.sh
index c6ccbf8c17..0855026dad 100755
--- a/ci/lib.sh
+++ b/ci/lib.sh
@@ -228,6 +228,10 @@ then
 
 	GIT_TEST_OPTS="--github-workflow-markup"
 	JOBS=10
+	if test linux = "$CI_OS_NAME"
+	then
+		JOBS=$(nproc)
+	fi
 
 	distro=$(echo "$CI_JOB_IMAGE" | tr : -)
 elif test true = "$GITLAB_CI"
-- 
2.56.0.rc0.807.ga0c0929ce1.frankengit
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help