From: Tomas Krizek Date: Wed, 20 Feb 2019 13:44:46 +0000 (+0100) Subject: gitlabci: use retry for flaky tests X-Git-Tag: v4.0.0~24^2~83 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2dff0dfd54a5b192f1c075a252553ec5cb2623c3;p=thirdparty%2Fknot-resolver.git gitlabci: use retry for flaky tests --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 00ec716b0..be2a58c63 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -120,13 +120,10 @@ srpm: .test_flaky: &test_flaky <<: *test - except: - refs: - - master - variables: - # prevent flaky test from cancelling the rest of pipeline - - $SKIP_FLAKY == "1" # TODO use this variable in schedules - + retry: + max: 1 + when: + - script_failure lint:pedantic: stage: test # could be in build already, but let's not block the test stage if this fails @@ -273,6 +270,10 @@ pytests 2/2: <<: *test_flaky script: - ${MESON_TEST} pytests.parallel + # NOTE using start_in to delay this job is an experimental attempt to reduce chance + # this resource-intensive job is started on the same machine as the other pytests + when: delayed + start_in: 30 respdiff:basic: stage: test