From c55932fb83d4343116ae46fbe7cc8a2a2f7dbe6b Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 18 Jun 2024 20:18:33 +0200 Subject: [PATCH] Retry sasl tests as they appear to be flaky --- .github/workflows/cyrus-sasl.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cyrus-sasl.yml b/.github/workflows/cyrus-sasl.yml index 9cd572aea0..8938bb0db4 100644 --- a/.github/workflows/cyrus-sasl.yml +++ b/.github/workflows/cyrus-sasl.yml @@ -88,4 +88,11 @@ jobs: working-directory: sasl run: | make -j -C utils testsuite saslpasswd2 - $GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/run-tests.sh + # Retry up to five times + for i in {1..5}; do + TEST_RES=0 + $GITHUB_WORKSPACE/osp/cyrus-sasl/${{ matrix.ref }}/run-tests.sh || TEST_RES=$? + if [ "$TEST_RES" -eq "0" ]; then + break + fi + done