From 99bc0f998f48bba2b2f87de61b139acb0d11ddec Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Sat, 16 Jan 2021 11:07:48 +0100 Subject: [PATCH] * .gitlab-ci.yml (before_script): Debug parallelization settings. --- .gitlab-ci.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 97e7563d8..e0b1668b5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -3,6 +3,16 @@ stages: - build2 - publish +default: + before_script: + # Our build agent are supposed to define these variables to enable + # build parallelization using a number of cores appropriate for + # the agent. However we have had cases where they were not + # defined, slowing down the builds. This should help us debug + # these situations. + - echo "MAKEFLAGS='$MAKEFLAGS' NBPROC='$NBPROC'" + - cat /sys/fs/cgroup/cpuset.cpus || cat /sys/fs/cgroup/cpuset/cpuset.cpus + debian-stable-gcc: stage: build only: