From db588dc7a2dbbb8493ea6006e6a6dc119c494655 Mon Sep 17 00:00:00 2001 From: Daniel Dias Date: Mon, 27 May 2024 15:02:51 -0300 Subject: [PATCH] fix(synthetic-monitoring): update messages to reduce alert fatigue --- .github/workflows/cypress-stage.yml | 26 +------------------------- .github/workflows/cypress.yml | 26 +------------------------- .github/workflows/k6-stage.yml | 26 +------------------------- .github/workflows/k6.yml | 26 +------------------------- .github/workflows/playwright-stage.yml | 24 +----------------------- .github/workflows/playwright.yml | 26 +------------------------- 6 files changed, 6 insertions(+), 148 deletions(-) diff --git a/.github/workflows/cypress-stage.yml b/.github/workflows/cypress-stage.yml index c7ba498..4b54f12 100644 --- a/.github/workflows/cypress-stage.yml +++ b/.github/workflows/cypress-stage.yml @@ -27,33 +27,9 @@ jobs: if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: - # check the block kit builder docs to understand how it works - # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - E2E Cypress - Pokeshop Demo STAGE :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *Cypress e2e with Pokeshop* on *stage*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL_STAGE }} diff --git a/.github/workflows/cypress.yml b/.github/workflows/cypress.yml index 3e273b9..56f07e0 100644 --- a/.github/workflows/cypress.yml +++ b/.github/workflows/cypress.yml @@ -25,33 +25,9 @@ jobs: if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: - # check the block kit builder docs to understand how it works - # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - E2E Cypress - Pokeshop Demo :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *Cypress e2e with Pokeshop*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/k6-stage.yml b/.github/workflows/k6-stage.yml index 57de86a..cdb8491 100644 --- a/.github/workflows/k6-stage.yml +++ b/.github/workflows/k6-stage.yml @@ -27,33 +27,9 @@ jobs: if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: - # check the block kit builder docs to understand how it works - # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - K6 - Pokeshop Demo :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *K6 with Pokeshop* on *stage*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL_STAGE }} diff --git a/.github/workflows/k6.yml b/.github/workflows/k6.yml index a32a658..6c214bd 100644 --- a/.github/workflows/k6.yml +++ b/.github/workflows/k6.yml @@ -26,33 +26,9 @@ jobs: if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: - # check the block kit builder docs to understand how it works - # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - K6 - Pokeshop Demo :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *K6 with Pokeshop*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL }} diff --git a/.github/workflows/playwright-stage.yml b/.github/workflows/playwright-stage.yml index 379ba58..6f00707 100644 --- a/.github/workflows/playwright-stage.yml +++ b/.github/workflows/playwright-stage.yml @@ -37,29 +37,7 @@ jobs: # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - E2E Playwright - Pokeshop Demo STAGE :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *Playwright E2E with Pokeshop* on *stage*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL_STAGE }} diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index ec1663f..e0c6084 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -32,33 +32,9 @@ jobs: if: ${{ failure() }} uses: slackapi/slack-github-action@v1.24.0 with: - # check the block kit builder docs to understand how it works - # and how to modify it: https://api.slack.com/block-kit payload: | { - "blocks": [ - { - "type": "header", - "text": { - "type": "plain_text", - "text": ":warning: Synthetic Monitoring Alert - E2E Playwright - Pokeshop Demo :warning:", - "emoji": true - } - }, - { - "type": "section", - "fields": [ - { - "type": "mrkdwn", - "text": "*Status:*\nFailed" - }, - { - "type": "mrkdwn", - "text": "*Pipeline:*\n<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" - } - ] - } - ] + "text": ":warning: Synthetic Monitoring failed for *Playwright E2E with Pokeshop*. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View workflow>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SYNTETIC_MONITORING_SLACK_WEBHOOK_URL }}