Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: E2E tests failure reporter #5452

Merged
merged 7 commits into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .github/actions/notify-e2e/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Actions to notify E2E tests failure through Slack message
description: 'This action collects the steps to setup python env and run job'
runs:
using: "composite"
steps:
- name: setup python
uses: actions/setup-python@57ded4d7d5e986d7296eab16560982c6dd7c923b #v4.6.0
with:
python-version: '3.8'
- name: install pipenv
run: pip install pipenv
shell: bash
- name: report E2E tests failure
run: |
cd scripts/e2e_message
pipenv install
pipenv run python3 e2e_notifier.py
env:
BUILD_ID: ${{ github.run_id }}
shell: bash
6 changes: 6 additions & 0 deletions .github/workflows/test-e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
run-e2e-test-ios:
needs: run-static-checks
runs-on: macos-latest
environment: dev
concurrency:
group: ${{ github.workflow }}-e2e-tests-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
Expand Down Expand Up @@ -60,6 +61,11 @@ jobs:
path: './_io-dev-api-server_'
- id: run-e2e-tests
run: bash ./.github/scripts/run-e2e-tests.sh
- id: notify-test-failure
if: failure()
uses: ./.github/actions/notify-e2e
env:
IO_APP_SLACK_HELPER_BOT_TOKEN: ${{ secrets.IO_APP_SLACK_HELPER_BOT_TOKEN }}
- id: upload-artifacts
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v.3.1.2
if: always()
Expand Down
15 changes: 15 additions & 0 deletions scripts/e2e_message/Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]

[packages]
urllib3 = ">=1.26.6"
requests = "*"
slackclient = "*"
urlextract = "*"

[requires]
python_version = "3.8"
Loading
Loading