Skip to content

Slack notification when nightly build fail #5280

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 8 commits into from
Apr 22, 2025

Conversation

zpoint
Copy link
Collaborator

@zpoint zpoint commented Apr 18, 2025

Send slack notification when nightly build fail

image image

Need to configure SLACK_BOT_TOKEN and SLACK_CHANNEL_ID on github secrets

Tested (run the relevant ones):

  • Code formatting: install pre-commit (auto-check on commit) or bash format.sh
  • Any manual or new tests for this PR (please specify below)

@zpoint zpoint requested a review from Michaelvll April 18, 2025 09:35
Copy link
Collaborator

@Michaelvll Michaelvll left a comment

Choose a reason for hiding this comment

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

Thanks @zpoint! Added the two secrets. LGTM

run: |
TITLE_TEXT="Workflow ${{ github.workflow }} failed."
if [[ "${{ needs.wait-for-buildkite.result }}" == "failure" ]]; then
MARKDOWN_TEXT="🚨 Workflow <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|*${{ github.workflow }}*> failed at Buildkite step. <https://buildkite.com/skypilot-1/smoke-tests/builds/${{ needs.extract-build-number.outputs.build_number }}|Buildkite Log>"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can we also add the commit for the nightly build in the message as well?

@zpoint zpoint merged commit 69aebc3 into skypilot-org:master Apr 22, 2025
23 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants