Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions .github/workflows/nightly-e2e-tests-subtensor-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -156,23 +156,20 @@ jobs:
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
echo "failed=false" >> "$GITHUB_OUTPUT"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 3 ]; then
echo "Tests failed after 3 attempts"
echo "failed=true" >> "$GITHUB_OUTPUT"
exit 1
fi
echo "Retrying..."
sleep 5
fi
done

- name: Set fail flag
if: failure()
id: set-fail
run: echo "failed=true" >> "$GITHUB_OUTPUT"

# Daily run of fast-blocks tests from `bittensor:staging` based on `subtensor:devnet-ready` docker image
run-fast-blocks-e2e-test-staging:
name: "FB staging: ${{ matrix.test-file }} / Python ${{ matrix.python-version }}"
Expand Down Expand Up @@ -229,23 +226,20 @@ jobs:
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
echo "failed=false" >> "$GITHUB_OUTPUT"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 3 ]; then
echo "Tests failed after 3 attempts"
echo "failed=true" >> "$GITHUB_OUTPUT"
exit 1
fi
echo "Retrying..."
sleep 5
fi
done

- name: Set fail flag
if: failure()
id: set-fail
run: echo "failed=true" >> "$GITHUB_OUTPUT"

# Saturday run of non-fast-blocks tests from `bittensor:master` based on `subtensor:main` docker image
run-non-fast-blocks-e2e-test-master:
if: needs.check-if-non-fast-blocks-run.outputs.non-fast-blocks-run == 'true'
Expand Down Expand Up @@ -305,23 +299,20 @@ jobs:
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
echo "failed=false" >> "$GITHUB_OUTPUT"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 3 ]; then
echo "Tests failed after 3 attempts"
echo "failed=true" >> "$GITHUB_OUTPUT"
exit 1
fi
echo "Retrying..."
sleep 5
fi
done

- name: Set fail flag
if: failure()
id: set-fail
run: echo "failed=true" >> "$GITHUB_OUTPUT"

# Saturday run of non-fast-blocks tests from `bittensor:staging` based on `subtensor:devnet-ready` docker image
run-non-fast-blocks-e2e-test-staging:
if: needs.check-if-non-fast-blocks-run.outputs.non-fast-blocks-run == 'true'
Expand Down Expand Up @@ -381,21 +372,19 @@ jobs:
status=$?
if [ $status -eq 0 ]; then
echo "✅ Tests passed on attempt $i"
echo "failed=false" >> "$GITHUB_OUTPUT"
break
else
echo "❌ Tests failed on attempt $i"
if [ $i -eq 3 ]; then
echo "Tests failed after 3 attempts"
echo "failed=true" >> "$GITHUB_OUTPUT"
exit 1
fi
echo "Retrying..."
sleep 5
fi
done
- name: Set fail flag
if: failure()
id: set-fail
run: echo "failed=true" >> "$GITHUB_OUTPUT"

# Send centralized Discord failure notification
notify-on-failure:
Expand Down