Thanks to visit codestin.com
Credit goes to github.com

Skip to content

chore: notify #dev of nightly gauntlet failures #16105

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 13, 2025
Merged

Conversation

dannykopping
Copy link
Contributor

Expands on #16102

This workflow is currently failing every night, so this will not only raise immediate awareness but will also be easy to validate this job.

Comment on lines +76 to +123
notify-slack-on-failure:
runs-on: ubuntu-latest
if: always() && failure()

steps:
- name: Send Slack notification
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{
"blocks": [
{
"type": "header",
"text": {
"type": "plain_text",
"text": "❌ Nightly gauntlet failed",
"emoji": true
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Workflow:*\n${{ github.workflow }}"
},
{
"type": "mrkdwn",
"text": "*Failed Job:*\n${{ github.job }}"
},
{
"type": "mrkdwn",
"text": "*Committer:*\n${{ github.actor }}"
},
{
"type": "mrkdwn",
"text": "*Commit:*\n${{ github.sha }}"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*View failure:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|Click here>"
}
}
]
}' ${{ secrets.CI_FAILURE_SLACK_WEBHOOK }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not now but it would be nice to extract this job into a separate GitHub action we can reuse across the jobs. Similar to setup-node and setup-go actions.

@dannykopping dannykopping enabled auto-merge (squash) January 13, 2025 09:53
@dannykopping dannykopping merged commit 73d8dde into main Jan 13, 2025
34 checks passed
@dannykopping dannykopping deleted the dk/nightly branch January 13, 2025 10:15
@github-actions github-actions bot locked and limited conversation to collaborators Jan 13, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants