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 internal slack if nightly tests fail #488

Open
praateekmahajan opened this issue Jan 17, 2025 · 0 comments
Open

Post to internal slack if nightly tests fail #488

praateekmahajan opened this issue Jan 17, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@praateekmahajan
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
If nightly scheduled tests fail then we would like to be notified on slack.
Describe the solution you'd like
Code as follows could work however we'd have to figure out the slack auth tokens

      - name: Notify on failure
        if: failure() && github.event_name == 'schedule'
        uses: slackapi/slack-github-action@v1
        with:
          channel-id: 'xyz'
          slack-message: "Nightly GPU tests failed! Check: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
        env:
          SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} # add secret somewhere

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

@praateekmahajan praateekmahajan added the enhancement New feature or request label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant