summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-01-16 14:04:08 +0200
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2020-01-16 14:39:06 +0200
commita98fb02cc2816a48eec374392d9b6941abb6af2c (patch)
treefd4d0b4fd11cbc164cb660dfa2fbab7da20388e8 /.gitlab-ci.yml
parentc7b6d25226524a9a7831b0b318928dcf8ae7f6bd (diff)
.gitlab-ci: Retry `ninja test` 2 times in case of failures
Freedesktop CI/CD runners are shared machines with a lot of cores and they accept many parallel jobs coming from multiple projects. There are no resources guarantees, which leads to the sporadic slowness. This makes our `ninja test` fail in extreme cases. We have already tried to bump the timeout limit for the slower tests in e941638ce652 ("runner/tests: Increase the timeout by 10x") which helped a bit, but we still fail from time to time. As an extra mitigation let's make the CI do 2 retries (= total of 3 attempts) before finally failing the whole pipeline. Cc: Petri Latvala <petri.latvala@intel.com> Issue: https://gitlab.freedesktop.org/freedesktop/freedesktop/issues/197 Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Acked-by: Petri Latvala <petri.latvala@intel.com>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml6
1 files changed, 6 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9a4dcb71..c5a6bd9e 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -168,12 +168,14 @@ build:tests-debian-autotools:
#################### TEST ##########################
test:ninja-test:
+ retry: 2
dependencies:
- build:tests-fedora
stage: test
script: ninja -C build test
test:ninja-test-clang:
+ retry: 2
dependencies:
- build:tests-fedora-clang
variables:
@@ -182,6 +184,7 @@ test:ninja-test-clang:
script: ninja -C build test
test:ninja-test-minimal:
+ retry: 2
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-minimal:commit-$CI_COMMIT_SHA
dependencies:
- build:tests-debian-minimal
@@ -189,6 +192,7 @@ test:ninja-test-minimal:
script: ninja -C build test
test:ninja-test-arm64:
+ retry: 2
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-arm64:commit-$CI_COMMIT_SHA
dependencies:
- build:tests-debian-meson-arm64
@@ -203,6 +207,7 @@ test:ninja-test-arm64:
when: on_failure
test:ninja-test-armhf:
+ retry: 2
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-armhf:commit-$CI_COMMIT_SHA
dependencies:
- build:tests-debian-meson-armhf
@@ -217,6 +222,7 @@ test:ninja-test-armhf:
when: on_failure
test:ninja-test-mips:
+ retry: 2
image: $CI_REGISTRY/$CI_PROJECT_PATH/build-debian-mips:commit-$CI_COMMIT_SHA
dependencies:
- build:tests-debian-meson-mips