Skip to content

Commit f09d690

Browse files
author
Roman
committed
kill forever happy test
1 parent fb7e078 commit f09d690

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/e2e-subtensor-tests.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -152,23 +152,21 @@ jobs:
152152
env:
153153
LOCALNET_IMAGE_NAME: ${{ needs.pull-docker-image.outputs.image-name }}
154154
run: |
155-
set +e
156155
for i in 1 2 3; do
157156
echo "::group::🔁 Test attempt $i"
158-
uv run pytest ${{ matrix.test-file }} -s
159-
echo "::endgroup::"
160-
status=$?
161-
if [ $status -eq 0 ]; then
157+
if uv run pytest ${{ matrix.test-file }} -s; then
162158
echo "✅ Tests passed on attempt $i"
163-
break
159+
echo "::endgroup::"
160+
exit 0
164161
else
165162
echo "❌ Tests failed on attempt $i"
166-
if [ $i -eq 3 ]; then
167-
echo "Tests failed after 3 attempts"
168-
exit 1
163+
echo "::endgroup::"
164+
if [ "$i" -lt 3 ]; then
165+
echo "Retrying..."
166+
sleep 5
169167
fi
170-
echo "Retrying..."
171-
sleep 5
172168
fi
173169
done
174170
171+
echo "Tests failed after 3 attempts"
172+
exit 1

0 commit comments

Comments
 (0)