From 2dff0dfd54a5b192f1c075a252553ec5cb2623c3 Mon Sep 17 00:00:00 2001 From: Tomas Krizek Date: Wed, 20 Feb 2019 14:44:46 +0100 Subject: [PATCH] gitlabci: use retry for flaky tests --- .gitlab-ci.yml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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 -- 2.47.2