fix: Increased worker count and increased test action timeout to test stability

This commit is contained in:
Muhammed Mustafa
2023-09-30 11:23:20 +05:30
parent e8a07675cd
commit d6482fa6bf
3 changed files with 13 additions and 21 deletions

View File

@@ -110,7 +110,6 @@ jobs:
with:
db: mysql
shard: 1
workers: 4
playwright-mysql-2:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -118,7 +117,6 @@ jobs:
with:
db: mysql
shard: 2
workers: 4
playwright-mysql-3:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -126,7 +124,6 @@ jobs:
with:
db: mysql
shard: 3
workers: 4
playwright-mysql-4:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -134,7 +131,6 @@ jobs:
with:
db: mysql
shard: 4
workers: 4
playwright-sqlite-1:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -142,7 +138,6 @@ jobs:
with:
db: sqlite
shard: 1
workers: 1
playwright-sqlite-2:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -150,7 +145,6 @@ jobs:
with:
db: sqlite
shard: 2
workers: 1
playwright-sqlite-3:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -158,15 +152,13 @@ jobs:
with:
db: sqlite
shard: 3
workers: 1
playwright-sqlite-4:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
uses: ./.github/workflows/playwright-test-workflow.yml
with:
db: sqlite
shard: 4
workers: 1
shard: 4
playwright-pg-shard-1:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -174,7 +166,6 @@ jobs:
with:
db: pg
shard: 1
workers: 4
playwright-pg-shard-2:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -182,7 +173,6 @@ jobs:
with:
db: pg
shard: 2
workers: 4
playwright-pg-shard-3:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
@@ -190,12 +180,10 @@ jobs:
with:
db: pg
shard: 3
workers: 4
playwright-pg-shard-4:
needs: pre-build-for-playwright
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'trigger-CI') || !github.event.pull_request.draft }}
uses: ./.github/workflows/playwright-test-workflow.yml
with:
db: pg
shard: 4
workers: 4
shard: 4

View File

@@ -10,9 +10,6 @@ on:
db:
required: true
type: string
workers:
required: true
type: string
jobs:
playwright:
@@ -147,7 +144,7 @@ jobs:
timeout-minutes: 2
- name: Run Playwright Tests
working-directory: ./tests/playwright
run: E2E_DB_TYPE=${{ inputs.db }} npm run ci:test:shard:${{ inputs.shard }} --workers=${{ inputs.workers }}
run: E2E_DB_TYPE=${{ inputs.db }} npm run ci:test:shard:${{ inputs.shard }}
timeout-minutes: 60
# Stress test added/modified tests
- name: Fetch develop branch