From d7401babd4381a71544291cf8e3055defcffcf9d Mon Sep 17 00:00:00 2001 From: pokeeffe-molecula Date: Thu, 27 Jan 2022 15:49:54 -0600 Subject: [PATCH] add retries....so these fracking flaky ass tests don't screw up the pipeline constantly --- .gitlab/.gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab/.gitlab-ci.yml b/.gitlab/.gitlab-ci.yml index 3f744141a..1264c9b16 100644 --- a/.gitlab/.gitlab-ci.yml +++ b/.gitlab/.gitlab-ci.yml @@ -64,6 +64,7 @@ run go tests: image: golang:$GOVERSION rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"' + retry: 1 script: - echo "Running featurebase unit tests..." - go test -timeout=30m ./... @@ -75,6 +76,7 @@ run go tests race: image: golang:$GOVERSION rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"' + retry: 1 script: - echo "Running featurebase race tests..." - go test -race -timeout=90m ./... @@ -100,6 +102,7 @@ run go tests future: image: golang:1.17.6 rules: - if: '$CI_PIPELINE_SOURCE == "push" || $CI_PIPELINE_SOURCE == "schedule" || $CI_PIPELINE_SOURCE == "web"' + retry: 1 script: - echo "Running featurebase unit tests..." - PKG_LIST=$(go list ./... | grep -v internal/clustertests | paste -s -d, -)