Skip to content

Commit

Permalink
Update Cypress CI workflows for issue-14324 (#14334)
Browse files Browse the repository at this point in the history
* Update Cypress CI workflows for issue-14324

* Update Cypress CI workflows to introduce parallel execution

* Update cypress skip CI workflows
  • Loading branch information
preetsshah authored Dec 13, 2023
1 parent 9463a7b commit 89a861e
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 16 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/cypress-integration-tests-mysql-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'

Expand All @@ -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"'
23 changes: 19 additions & 4 deletions .github/workflows/cypress-integration-tests-mysql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'

Expand All @@ -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)
Expand Down Expand Up @@ -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}}
Expand Down
14 changes: 10 additions & 4 deletions .github/workflows/cypress-integration-tests-postgresql-skip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'

Expand All @@ -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"'
23 changes: 19 additions & 4 deletions .github/workflows/cypress-integration-tests-postgresql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/**'

Expand All @@ -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)
Expand Down Expand Up @@ -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}}
Expand Down

0 comments on commit 89a861e

Please sign in to comment.