Skip to content

Commit 9bf6706

Browse files
committed
retry functionality for lifestyle e2e test
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
1 parent 7e357eb commit 9bf6706

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/test-e2e-runtime.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,20 @@ jobs:
3030
- name: Build
3131
run: make
3232
- name: E2E runtime for ${{ matrix.runtime }}
33-
run: make test-e2e-runtime runtime=${{ matrix.runtime }}
33+
run: |
34+
attempt=0
35+
max_attempts=5
36+
until [ $attempt -ge $max_attempts ]
37+
do
38+
attempt=$((attempt+1))
39+
echo "------------------ Attempt $attempt for ${{matrix.runtime}} ------------------"
40+
make test-e2e-runtime runtime=${{ matrix.runtime }} && break
41+
echo "------------------ failed, retrying... ------------------"
42+
if [ $attempt -ge $max_attempts ]; then
43+
echo "------------------ max # of retries reached, exiting ------------------"
44+
exit 1
45+
fi
46+
done
3447
- uses: codecov/codecov-action@v5
3548
with:
3649
files: ./coverage.txt

0 commit comments

Comments
 (0)