From 3c95e09f59f8368cd4128589bfdff8b84655bbcc Mon Sep 17 00:00:00 2001 From: KShivendu Date: Wed, 5 Jun 2024 14:15:57 +0530 Subject: [PATCH 1/2] feat: Add Slack alert for CI benchmarks --- .github/workflows/continuous-benchmark.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/.github/workflows/continuous-benchmark.yaml b/.github/workflows/continuous-benchmark.yaml index fece9a47..34f7de04 100644 --- a/.github/workflows/continuous-benchmark.yaml +++ b/.github/workflows/continuous-benchmark.yaml @@ -48,3 +48,23 @@ jobs: - name: Fail job if any of the benches failed if: steps.benches.outputs.failed == 'true' run: exit 1 + - name: Send Notification + if: failure() || cancelled() + uses: slackapi/slack-github-action@v1.26.0 + with: + payload: | + { + "text": "CI benchmarks run status: ${{ job.status }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "CI benchmarks failed or timed out.\nView the results <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>" + } + } + ] + } + env: + SLACK_WEBHOOK_URL: ${{ secrets.CRASHER_CHANNEL_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK From 33e72f4d656a816de812fd5bf9a66a3ae900eb6e Mon Sep 17 00:00:00 2001 From: Kumar Shivendu Date: Wed, 5 Jun 2024 14:27:12 +0530 Subject: [PATCH 2/2] Update continuous-benchmark.yaml --- .github/workflows/continuous-benchmark.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/continuous-benchmark.yaml b/.github/workflows/continuous-benchmark.yaml index 34f7de04..9a695800 100644 --- a/.github/workflows/continuous-benchmark.yaml +++ b/.github/workflows/continuous-benchmark.yaml @@ -66,5 +66,5 @@ jobs: ] } env: - SLACK_WEBHOOK_URL: ${{ secrets.CRASHER_CHANNEL_WEBHOOK_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.CI_ALERTS_CHANNEL_WEBHOOK_URL }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK