Update Cypress CI workflows for issue-14324 (#14334)

* Update Cypress CI workflows for issue-14324

* Update Cypress CI workflows to introduce parallel execution

* Update cypress skip CI workflows
This commit is contained in:
Preet Shah 2023-12-13 14:14:20 +05:30 committed by GitHub
parent 9463a7b122
commit 89a861ea54
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 58 additions and 16 deletions

View File

@ -12,9 +12,15 @@
name: MySQL Cypress Integration Tests
on:
push:
branches:
- main
schedule:
- cron: '30 0 * * *'
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
paths:
- 'openmetadata-docs/**'
@ -23,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
job: [0, 1, 2]
job: [1, 2, 3, 4]
environment: test
steps:
- run: 'echo "Step is not required"'

View File

@ -16,9 +16,15 @@ name: MySQL Cypress Integration Tests
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '30 0 * * *'
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'openmetadata-docs/**'
@ -31,7 +37,16 @@ concurrency:
jobs:
cypress-ci-mysql:
if: |
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|| ( github.event_name == 'pull_request'
&& contains(github.event.pull_request.labels.*.name, 'e2e')
&& github.event.pull_request.draft == false
)
runs-on: ubuntu-latest
strategy:
matrix:
parallel-machine: [1, 2, 3, 4]
environment: test
steps:
- name: Free Disk Space (Ubuntu)
@ -115,7 +130,7 @@ jobs:
with:
install-command: yarn --frozen-lockfile --silent --ignore-scripts
record: true
parallel: false
parallel: true
working-directory: openmetadata-ui/src/main/resources/ui/
wait-on: 'http://localhost:8585'
group: cypress-ci-mysql-oss-${{ github.run_id }}-${{github.run_attempt}}

View File

@ -12,9 +12,15 @@
name: PostgreSQL Cypress Integration Tests
on:
push:
branches:
- main
schedule:
- cron: '30 0 * * *'
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
paths:
- 'openmetadata-docs/**'
@ -23,7 +29,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
job: [0, 1, 2]
job: [1, 2, 3, 4]
environment: test
steps:
- run: 'echo "Step is not required"'

View File

@ -16,9 +16,15 @@ name: PostgreSQL Cypress Integration Tests
on:
workflow_dispatch:
push:
branches:
- main
schedule:
- cron: '30 0 * * *'
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
- ready_for_review
paths-ignore:
- 'openmetadata-docs/**'
@ -31,7 +37,16 @@ concurrency:
jobs:
cypress-ci-postgresql:
if: |
github.event_name == 'schedule' || github.event_name == 'workflow_dispatch'
|| ( github.event_name == 'pull_request'
&& contains(github.event.pull_request.labels.*.name, 'e2e')
&& github.event.pull_request.draft == false
)
runs-on: ubuntu-latest
strategy:
matrix:
parallel-machine: [1, 2, 3, 4]
environment: test
steps:
- name: Free Disk Space (Ubuntu)
@ -115,7 +130,7 @@ jobs:
with:
install-command: yarn --frozen-lockfile --silent --ignore-scripts
record: true
parallel: false
parallel: true
working-directory: openmetadata-ui/src/main/resources/ui/
wait-on: 'http://localhost:8585'
group: cypress-ci-psql-oss-${{ github.run_id }}-${{github.run_attempt}}