From 1bc8e61df480cbf45e401baf2e81a62093e6d2a2 Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 11 Jan 2026 10:21:12 +0100 Subject: Don't use "make -j" when running tests * test/infra/gitlab-ci.yml (.job-template): * test/README: Don't use "make -j". --- test/README | 4 ++++ test/infra/gitlab-ci.yml | 5 ++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/test/README b/test/README index d897e9e2c8b..a287ae69734 100644 --- a/test/README +++ b/test/README @@ -33,6 +33,10 @@ The following examples expect this directory as the current working directory. If you call make from Emacs' root directory, use "make -C test" instead. +Running several tests in parallel could result in unexpected side +effects with ephemeral test errors. Therefore, it is recommend not to +use "make -j". + The Makefile sets the environment variable $EMACS_TEST_DIRECTORY, which points to this directory. This environment variable does not exist when the tests are run outside make. The Makefile supports the diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml index 1f0f33bbe86..23af677d186 100644 --- a/test/infra/gitlab-ci.yml +++ b/test/infra/gitlab-ci.yml @@ -90,7 +90,6 @@ default: -e EMACS_TEST_JUNIT_REPORT=${EMACS_TEST_JUNIT_REPORT} -e EMACS_TEST_TIMEOUT=${EMACS_TEST_TIMEOUT} -e EMACS_TEST_VERBOSE=${EMACS_TEST_VERBOSE} - -e NPROC=`nproc` -e http_proxy=${http_proxy} -e https_proxy=${https_proxy} -e no_proxy=${no_proxy} @@ -104,8 +103,8 @@ default: git diff --name-only FETCH_HEAD && ( git diff --name-only FETCH_HEAD | xargs git checkout -f FETCH_HEAD ) && - make -j \$NPROC && - make -k -j \$NPROC ${make_params}"' + make && + make -k ${make_params}"' after_script: # - docker ps -a # - pwd; printenv -- cgit v1.2.1