From 61632fe416d2ff8a29209af0b1d621fe6c36ee9f Mon Sep 17 00:00:00 2001 From: Tuan Tran Date: Mon, 8 Jul 2024 11:58:06 +0700 Subject: [PATCH] ci: allow flaky interchaintest to rerun. (#1034) * ci * test * test2 * test3 --- .github/workflows/interchaintest-E2E.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/interchaintest-E2E.yml b/.github/workflows/interchaintest-E2E.yml index 81452ea5a..417550215 100644 --- a/.github/workflows/interchaintest-E2E.yml +++ b/.github/workflows/interchaintest-E2E.yml @@ -99,4 +99,19 @@ jobs: docker image ls -a - name: Run Test + id: run_test + continue-on-error: true run: make ${{ matrix.test }} + + - name: Retry Failed Test + if: steps.run_test.outcome == 'failure' + run: | + for i in 1 2; do + echo "Retry attempt $i" + if make ${{ matrix.test }}; then + echo "Test passed on retry" + exit 0 + fi + done + echo "Test failed after retries" + exit 1