Skip to content
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

Post to Discord on failures in more workflows. #19446

Merged
merged 1 commit into from
Dec 11, 2024

Conversation

ScottTodd
Copy link
Member

@ScottTodd ScottTodd commented Dec 11, 2024

Progress on #9305.

See also #19445, which triggers the presubmit workflows (linux_x64_bazel, linux_x64_clang, linux_x64_clang_asan) from ci.yml, removing the need to add alerting code to those files. If that PR lands, the changes in those workflows can be merged with these other changes.

@ScottTodd ScottTodd added the infrastructure Relating to build systems, CI, or testing label Dec 11, 2024
Comment on lines +71 to +77
- name: Post to Discord on Failure
uses: sarisia/actions-status-discord@ce8cc68e4e626000136b3c702d049a154243e490 # v1.14.7
if: failure() && github.ref_name == 'main' && github.repository_owner == 'iree-org'
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
description: "The ${{ github.workflow }} workflow failed"
url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}"
Copy link
Member Author

Choose a reason for hiding this comment

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

I considered using workflow_summary.yml in these places too but decided against that since these workflows only have a single job to "summarize".

Researched "composite actions" as a potential solution to reducing code duplication but the docs are confusing :P

Base automatically changed from users/scotttodd/ci-alerting to main December 11, 2024 17:13
@ScottTodd ScottTodd marked this pull request as ready for review December 11, 2024 17:19
Copy link
Member

@marbre marbre left a comment

Choose a reason for hiding this comment

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

Seems I now need to track Discord more closely ;)

@ScottTodd ScottTodd merged commit 274977c into main Dec 11, 2024
46 checks passed
@ScottTodd ScottTodd deleted the users/scotttodd/ci-alerting-2 branch December 11, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Relating to build systems, CI, or testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants