Skip to content

Commit ebe4c71

Browse files
committed
attempt multiple cluster allocs
Signed-off-by: David Fridrich <fridrich.david19@gmail.com>
1 parent 9bf6706 commit ebe4c71

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
@@ -24,7 +24,20 @@ jobs:
2424
- name: Install Binaries
2525
run: ./hack/install-binaries.sh
2626
- name: Allocate Cluster
27-
run: ./hack/allocate.sh
27+
run: |
28+
attempt=0
29+
max_attempts=5
30+
until [ $attempt -ge $max_attempts ]
31+
do
32+
attempt=$((attempt+1))
33+
echo "------------------ Attempt $attempt for ${{matrix.runtime}} ------------------"
34+
./hack/allocate.sh && break
35+
echo "------------------ failed, retrying... ------------------"
36+
if [ $attempt -ge $max_attempts ]; then
37+
echo "------------------ max # of retries reached, exiting ------------------"
38+
exit 1
39+
fi
40+
done
2841
- name: Local Registry
2942
run: ./hack/registry.sh
3043
- name: Build

0 commit comments

Comments
 (0)