]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
ci: attempt to make CI more robust by reducing paralelism
authorTomas Krizek <tomas.krizek@nic.cz>
Mon, 21 Jun 2021 14:45:09 +0000 (16:45 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Wed, 7 Jul 2021 04:34:06 +0000 (06:34 +0200)
Some tests (typically those using network) ocassionally fail due to
timeouts, which is probably due to increased CI load - perhaps reducing
it could make the tests more stable.

.gitlab-ci.yml

index decff45507f3f80e2e0680642826a4fa52ad22aa..f04f66b44c916873613fefaa23a4b155abbb43ec 100644 (file)
@@ -101,7 +101,7 @@ build:armhf:
     - meson build_ci_armhf --default-library=static --prefix=$PREFIX -Dwerror=true -Dextra_tests=enabled
     - ninja -C build_ci_armhf
     - ninja -C build_ci_armhf install >/dev/null
-    - ${MESON_TEST} --suite unit --suite config --no-suite snowflake --no-suite y2k38
+    - MESON_TESTTHREADS=1 ${MESON_TEST} --suite unit --suite config --no-suite snowflake --no-suite y2k38
 
 build:arm64:
   <<: *build
@@ -112,7 +112,7 @@ build:arm64:
     - meson build_ci_arm64 --default-library=static --prefix=$PREFIX -Dwerror=true -Dextra_tests=enabled
     - ninja -C build_ci_arm64
     - ninja -C build_ci_arm64 install >/dev/null
-    - ${MESON_TEST} --suite unit --suite config --no-suite snowflake
+    - MESON_TESTTHREADS=1 ${MESON_TEST} --suite unit --suite config --no-suite snowflake
 
 build-asan:
   <<: *build
@@ -123,7 +123,7 @@ build-asan:
     - ninja -C build_ci_asan install >/dev/null
       # TODO _leaks: not sure what exactly is wrong in leak detection on config tests
       # TODO skip_asan: all three of these disappear locally when using gcc 9.1 (except some leaks)
-    - ASAN_OPTIONS=detect_leaks=0 ${MESON_TEST} --suite unit --suite config --suite dnstap --no-suite skip_asan --no-suite snowflake
+    - MESON_TESTTHREADS=1 ASAN_OPTIONS=detect_leaks=0 ${MESON_TEST} --suite unit --suite config --suite dnstap --no-suite skip_asan --no-suite snowflake
 
 build:macOS:
   <<: *nodep