From 58a39f32167bea357f00ac6176de84825bd90afb Mon Sep 17 00:00:00 2001 From: Anusha Hegde Date: Tue, 11 Feb 2025 06:58:50 +0530 Subject: [PATCH 1/2] e2e tests run on pr approval, on failure send notification to log-int slack channel --- .github/workflows/run-e2e-tests.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/run-e2e-tests.yaml b/.github/workflows/run-e2e-tests.yaml index 654decc..ef63c96 100644 --- a/.github/workflows/run-e2e-tests.yaml +++ b/.github/workflows/run-e2e-tests.yaml @@ -1,13 +1,13 @@ name: E2E Test Workflow For Firehose on: - push: - branches: - - main - - develop + pull_request_review: + types: + - submitted jobs: deploy-and-test: + if: github.event.review.state == 'approved' runs-on: ubuntu-latest permissions: id-token: write @@ -42,3 +42,11 @@ jobs: ./build_template.sh ./firehose_e2e_tests.sh ${{ matrix.test-case }} + - name: Send failure notification to Slack + if: always() + uses: ravsamhq/notify-slack-action@v1 + with: + status: ${{ job.status }} + notify_when: 'failure' + env: + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 3c7f76400d692bfb868f954e7449d200c644c7c9 Mon Sep 17 00:00:00 2001 From: Anusha Hegde Date: Tue, 11 Feb 2025 16:18:25 +0530 Subject: [PATCH 2/2] added e2e tests to run once every month as cron job --- .github/workflows/run-e2e-tests.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/run-e2e-tests.yaml b/.github/workflows/run-e2e-tests.yaml index ef63c96..0699a53 100644 --- a/.github/workflows/run-e2e-tests.yaml +++ b/.github/workflows/run-e2e-tests.yaml @@ -4,6 +4,8 @@ on: pull_request_review: types: - submitted + schedule: + - cron: '0 0 1 * *' jobs: deploy-and-test: