Fix e2e test and add slack alert (#8817)

* Fix mysql test

* Run alarm on failed test

* Force failure for testing
This commit is contained in:
Pere Miquel Brull 2022-11-16 17:43:48 +01:00 committed by GitHub
parent 1bde821e9a
commit d1cc3e880c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 1 deletions

View File

@ -62,8 +62,21 @@ jobs:
timeout-minutes: 30
- name: Run Python Tests
id: e2e-test
env:
E2E_TEST: ${{ matrix.e2e-test }}
run: |
source env/bin/activate
python -m pytest -c ingestion/setup.cfg ingestion/tests/cli_e2e/test_cli_$E2E_TEST.py
- name: Slack on Failure
if: steps.e2e-test.outcome != 'success'
uses: slackapi/slack-github-action@v1.23.0
with:
payload: |
{
"text": "🔥 Failed E2E Test for $E2E_TEST 🔥"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.E2E_SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

View File

@ -104,4 +104,4 @@ class MysqlCliTest(CliCommonDB.TestSuite):
@staticmethod
def expected_filtered_mix() -> int:
return 43
return 44