Skip to content

Commit a463a9a

Browse files
committed
Retry creating and getting queue, submitting job
Signed-off-by: Enrico Minack <github@enrico.minack.dev>
1 parent 7096231 commit a463a9a

File tree

1 file changed

+66
-3
lines changed

1 file changed

+66
-3
lines changed

.github/workflows/integration.yml

Lines changed: 66 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,73 @@ jobs:
2323
run: make kind-all
2424

2525
- name: Create test queue
26-
run: ./bin/app/armadactl create queue test
26+
run: |
27+
# Create test queue
28+
for second in {1..60}
29+
do
30+
if ./bin/app/armadactl create queue test 2> armadactl.log
31+
then
32+
if [[ second -eq 1 ]]
33+
then
34+
echo "Successfully created queue 'test'"
35+
else
36+
echo "Successfully created queue 'test' after ${second}s"
37+
echo "Previously failed due to:"
38+
cat armadactl.log
39+
fi
40+
exit
41+
fi
42+
sleep 1
43+
done
44+
45+
echo "Failed to create queue 'test' after ${second}s"
46+
cat armadactl.log >&2
47+
exit 1
2748
2849
- name: Test queue exists
29-
run: ./bin/app/armadactl get queue test
50+
run: |
51+
# Test queue exists
52+
for second in {1..60}
53+
do
54+
if ./bin/app/armadactl get queue test 2> armadactl.log
55+
then
56+
if [[ second -eq 1 ]]
57+
then
58+
echo "Successfully inspected queue 'test'"
59+
else
60+
echo "Successfully inspected queue 'test' after ${second}s"
61+
echo "Previously failed due to:"
62+
cat armadactl.log
63+
fi
64+
exit
65+
fi
66+
sleep 1
67+
done
68+
69+
echo "Failed to inspected queue 'test' after ${second}s"
70+
cat armadactl.log >&2
71+
exit 1
3072
3173
- name: Submit job
32-
run: ./bin/app/armadactl submit dev/quickstart/example-job.yaml
74+
run: |
75+
# Submit job
76+
for second in {1..60}
77+
do
78+
if ./bin/app/armadactl submit dev/quickstart/example-job.yaml 2> armadactl.log
79+
then
80+
if [[ attempt -eq 1 ]]
81+
then
82+
echo "Successfully submitted job"
83+
else
84+
echo "Successfully submitted job after ${second}s"
85+
echo "Previously failed due to:"
86+
cat armadactl.log
87+
fi
88+
exit
89+
fi
90+
sleep 1
91+
done
92+
93+
echo "Failed to submitted job after ${second}s"
94+
cat armadactl.log >&2
95+
exit 1

0 commit comments

Comments
 (0)