git » dnss » commit a5f4c45

gitlab-ci: Retry integration tests to reduce false negatives

author Alberto Bertogli
2022-09-20 09:18:51 UTC
committer Alberto Bertogli
2022-09-20 09:18:51 UTC
parent 79e7e85a562a3b87a2ab08fb551fa226e10f13d1

gitlab-ci: Retry integration tests to reduce false negatives

The integration tests contact external services (to verify that dnss has
no issues interacting with popular DoH providers).

However, because of that, the runs can be flaky sometimes, e.g.
due to transient network or service failures.

This patch makes gitlab-ci retry failed runs 2 times, to try to reduce
those false negatives.

.gitlab-ci.yml +4 -0

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 53760a2..2a4362d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -35,6 +35,9 @@ integration_stable:
     expire_in: 1 hour
     paths:
       - docker-out/
+  # The test contacts external services so it can be flaky; retry failures to
+  # prevent false negatives.
+  retry: 2
 
 
 # Integration test, using the latest module versions.
@@ -53,3 +56,4 @@ integration_latest:
     expire_in: 1 hour
     paths:
       - docker-out/
+  retry: 2