CI: set the LITEST_JOBS in the template, not the script
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 17 Oct 2024 03:57:19 +0000 (13:57 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Thu, 17 Oct 2024 05:14:02 +0000 (15:14 +1000)
Fixes: 70c57e964450 ("CI: drop the job count for the valgrind test suite to 2")
Part-of: <https://gitlab.freedesktop.org/libinput/libinput/-/merge_requests/1063>

.gitlab-ci.yml
.gitlab-ci/ci.template

index c91931b5f0c5463e29a5a4a187bd8fb1406024e5..18dc1900a3637407619209d5d3b784520303f5f0 100644 (file)
@@ -524,11 +524,11 @@ freebsd:13.2@container-clean:
   variables:
     # remove the global --no-suite=hardware
     MESON_TEST_ARGS: ''
+    LITEST_JOBS: 4
   before_script:
     - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
     - echo "Testing $SUITES"
     - export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
-    - export LITEST_JOBS="2"
 
 
 .fedora:40@test-suite-vm:
@@ -666,7 +666,7 @@ vm-valgrind-touchpad:
     - vm-touchpad
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -678,7 +678,7 @@ vm-valgrind-tap:
     - vm-tap
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -690,7 +690,7 @@ vm-valgrind-touchpad-buttons:
     - vm-touchpad-buttons
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -702,7 +702,7 @@ vm-valgrind-tablet:
     - vm-tablet
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -714,7 +714,7 @@ vm-valgrind-gestures-device:
     - vm-gestures-device
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -726,7 +726,7 @@ vm-valgrind-backends:
     - vm-backends
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -738,7 +738,7 @@ vm-valgrind-misc:
     - vm-misc
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -750,7 +750,7 @@ vm-valgrind-other devices:
     - vm-other devices
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
@@ -762,7 +762,7 @@ vm-valgrind-pointer:
     - vm-pointer
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules:
index acaa3e4263b275bcc42e0c81f7b3891eac7c8fb1..7102d3c20adc62cec38d6afa79f1d83ff101f53b 100644 (file)
@@ -400,11 +400,11 @@ pre-commit-hooks:
   variables:
     # remove the global --no-suite=hardware
     MESON_TEST_ARGS: ''
+    LITEST_JOBS: 4
   before_script:
     - if ! [[ -z $SUITE_NAMES ]]; then SUITES=$(echo $SUITE_NAMES | sed 's/\([^ ]*\)/libinput-test-suite-\1/g'); fi
     - echo "Testing $SUITES"
     - export MESON_TEST_ARGS="$MESON_TEST_ARGS $SUITES"
-    - export LITEST_JOBS="2"
 
 
 {# qemu tests are only done for the latest version of any distribution #}
@@ -444,7 +444,7 @@ vm-valgrind-{{suite.name}}:
     - vm-{{suite.name}}
   variables:
     MESON_TEST_ARGS: '--setup=valgrind'
-    LITEST_JOBS: 4
+    LITEST_JOBS: 2
   retry:
     max: 2
   rules: