mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 03:59:12 +00:00
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:
parent
1bde821e9a
commit
d1cc3e880c
13
.github/workflows/py-cli-e2e-tests.yml
vendored
13
.github/workflows/py-cli-e2e-tests.yml
vendored
@ -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
|
||||
|
||||
@ -104,4 +104,4 @@ class MysqlCliTest(CliCommonDB.TestSuite):
|
||||
|
||||
@staticmethod
|
||||
def expected_filtered_mix() -> int:
|
||||
return 43
|
||||
return 44
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user