From 903b9e4c89b23992eba229df16ca3860d3f8770b Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Fri, 5 Apr 2024 12:11:25 +0530 Subject: [PATCH] Send alerts to an additional Slack --- .gitea/workflows/fixturenet-eth-plugeth-arm-test.yml | 10 +++++++++- .gitea/workflows/fixturenet-eth-plugeth-test.yml | 10 +++++++++- .gitea/workflows/fixturenet-eth-test.yml | 10 +++++++++- .gitea/workflows/fixturenet-laconicd-test.yml | 10 +++++++++- .gitea/workflows/lint.yml | 10 +++++++++- .gitea/workflows/publish.yml | 10 +++++++++- .gitea/workflows/test-container-registry.yml | 10 +++++++++- .gitea/workflows/test-database.yml | 10 +++++++++- .gitea/workflows/test-deploy.yml | 10 +++++++++- .gitea/workflows/test-k8s-deploy.yml | 11 +++++++++-- .gitea/workflows/test-webapp.yml | 10 +++++++++- .gitea/workflows/test.yml | 10 +++++++++- 12 files changed, 108 insertions(+), 13 deletions(-) diff --git a/.gitea/workflows/fixturenet-eth-plugeth-arm-test.yml b/.gitea/workflows/fixturenet-eth-plugeth-arm-test.yml index b51123b4..03140c4f 100644 --- a/.gitea/workflows/fixturenet-eth-plugeth-arm-test.yml +++ b/.gitea/workflows/fixturenet-eth-plugeth-arm-test.yml @@ -43,7 +43,15 @@ jobs: run: ./scripts/build_shiv_package.sh - name: "Run fixturenet-eth tests" run: ./tests/fixturenet-eth-plugeth/run-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/fixturenet-eth-plugeth-test.yml b/.gitea/workflows/fixturenet-eth-plugeth-test.yml index d31b2afa..ad7747d9 100644 --- a/.gitea/workflows/fixturenet-eth-plugeth-test.yml +++ b/.gitea/workflows/fixturenet-eth-plugeth-test.yml @@ -47,7 +47,15 @@ jobs: sleep 5 - name: "Run fixturenet-eth tests" run: ./tests/fixturenet-eth-plugeth/run-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/fixturenet-eth-test.yml b/.gitea/workflows/fixturenet-eth-test.yml index dab3fa7e..99a58572 100644 --- a/.gitea/workflows/fixturenet-eth-test.yml +++ b/.gitea/workflows/fixturenet-eth-test.yml @@ -45,7 +45,15 @@ jobs: sleep 5 - name: "Run fixturenet-eth tests" run: ./tests/fixturenet-eth/run-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/fixturenet-laconicd-test.yml b/.gitea/workflows/fixturenet-laconicd-test.yml index 34fb5b07..261f16e1 100644 --- a/.gitea/workflows/fixturenet-laconicd-test.yml +++ b/.gitea/workflows/fixturenet-laconicd-test.yml @@ -48,7 +48,15 @@ jobs: run: ./tests/fixturenet-laconicd/run-test.sh - name: "Run laconic CLI tests" run: ./tests/fixturenet-laconicd/run-cli-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/lint.yml b/.gitea/workflows/lint.yml index 182ff05f..9b8e64da 100644 --- a/.gitea/workflows/lint.yml +++ b/.gitea/workflows/lint.yml @@ -19,7 +19,15 @@ jobs: python-version: '3.8' - name : "Run flake8" uses: py-actions/flake8@v2 - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index 05769c63..7640ba83 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -54,7 +54,15 @@ jobs: # Hack using endsWith to workaround Gitea sometimes sending "publish-test" vs "refs/heads/publish-test" draft: ${{ endsWith('publish-test', github.ref ) }} files: ./laconic-so - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/test-container-registry.yml b/.gitea/workflows/test-container-registry.yml index c87be3a6..3351d601 100644 --- a/.gitea/workflows/test-container-registry.yml +++ b/.gitea/workflows/test-container-registry.yml @@ -51,7 +51,15 @@ jobs: source /opt/bash-utils/cgroup-helper.sh join_cgroup ./tests/container-registry/run-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/test-database.yml b/.gitea/workflows/test-database.yml index 23737bbb..4183724c 100644 --- a/.gitea/workflows/test-database.yml +++ b/.gitea/workflows/test-database.yml @@ -49,7 +49,15 @@ jobs: source /opt/bash-utils/cgroup-helper.sh join_cgroup ./tests/database/run-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/test-deploy.yml b/.gitea/workflows/test-deploy.yml index 5ed214c8..4a0a7ff7 100644 --- a/.gitea/workflows/test-deploy.yml +++ b/.gitea/workflows/test-deploy.yml @@ -47,7 +47,15 @@ jobs: sleep 5 - name: "Run deploy tests" run: ./tests/deploy/run-deploy-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/test-k8s-deploy.yml b/.gitea/workflows/test-k8s-deploy.yml index 14f1afcd..4d388f8d 100644 --- a/.gitea/workflows/test-k8s-deploy.yml +++ b/.gitea/workflows/test-k8s-deploy.yml @@ -51,7 +51,15 @@ jobs: source /opt/bash-utils/cgroup-helper.sh join_cgroup ./tests/k8s-deploy/run-deploy-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: @@ -59,4 +67,3 @@ jobs: notify_when: 'failure' env: SLACK_WEBHOOK_URL: ${{ secrets.DEEPSTACK_SLACK_CI_ALERTS }} - diff --git a/.gitea/workflows/test-webapp.yml b/.gitea/workflows/test-webapp.yml index e09ee100..511287a8 100644 --- a/.gitea/workflows/test-webapp.yml +++ b/.gitea/workflows/test-webapp.yml @@ -49,7 +49,15 @@ jobs: sleep 5 - name: "Run webapp tests" run: ./tests/webapp-test/run-webapp-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index cd0f1a72..0545688e 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -47,7 +47,15 @@ jobs: sleep 5 - name: "Run smoke tests" run: ./tests/smoke-test/run-smoke-test.sh - - name: Notify Slack on CI failure + - name: Notify Vulcanize Slack on CI failure + if: always() + uses: ravsamhq/notify-slack-action@v2 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.VULCANIZE_SLACK_CI_ALERTS }} + - name: Notify DeepStack Slack on CI failure if: always() uses: ravsamhq/notify-slack-action@v2 with: