Skip to content

Commit

Permalink
PM-1891 - Optimize Alerting
Browse files Browse the repository at this point in the history
  • Loading branch information
kaozenn committed Aug 20, 2024
1 parent 2f06b0d commit 4d82b8c
Showing 1 changed file with 29 additions and 9 deletions.
38 changes: 29 additions & 9 deletions .github/workflows/sync-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,33 @@ jobs:
--peer ${{ matrix.seed }}
- name: Wait for Daemon to Sync
id: wait-for-sync
run: ./scripts/mina-sync-monitor.sh
- name: Post to a Slack channel
id: slack
run: exit 1 && ./scripts/mina-sync-monitor.sh
- name: Record Failing Seed
id: record-fail
if: ${{ failure() }}
uses: slackapi/[email protected]
with:
channel-id: "mf-alerts-info"
slack-message: "Failed to synchronize with Mina Daemon using seed peer:\n *_${{ matrix.seed }}_*"
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
run: |
echo "Update Failed Seed List"
echo "failed-seeds-${{strategy.job-index}}=${{ matrix.seed }}"
print-failed-seeds:
needs: test-peer
runs-on: minafoundation-default-runners
steps:
- name: Echo Failed Seeds
run: |
echo "Failed Seed List"
# send-slack-notification:
# needs: test-peer
# runs-on: minafoundation-default-runners
# steps:
# - name: Post to a Slack channel
# id: slack
# if: ${{ failure() }}
# uses: slackapi/[email protected]
# with:
# channel-id: "mf-alerts-info"
# slack-message: "Failed to synchronize with Mina Daemon using seed peer:\n *_${{ matrix.seed }}_*"
# env:
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}

0 comments on commit 4d82b8c

Please sign in to comment.