test: Adjust batch size and worker count

This commit is contained in:
Artem Sorokin 2025-11-18 11:48:08 +01:00
parent 1a9d87488f
commit c3876ab3e9
No known key found for this signature in database
3 changed files with 6 additions and 3 deletions

View File

@ -48,7 +48,7 @@ env:
NODE_OPTIONS: --max-old-space-size=3072
# Disable Ryuk to avoid issues with Docker since it needs privileged access, containers are cleaned on teardown anyway
TESTCONTAINERS_RYUK_DISABLED: true
PLAYWRIGHT_WORKERS: ${{ inputs.workers || '2' }} # Configurable workers, defaults to 2 to reduce resource contention
PLAYWRIGHT_WORKERS: ${{ inputs.workers || '3' }} # Configurable workers, defaults to 3 for optimal orchestration performance
N8N_BASE_URL: http://localhost:5680
jobs:

View File

@ -8,6 +8,9 @@ const config: CurrentsConfig = {
(process.env.GITHUB_RUN_ID
? `${process.env.GITHUB_RUN_ID}-${process.env.GITHUB_RUN_ATTEMPT || '1'}`
: `local-${Date.now()}`),
orchestration: {
batchSize: Number(process.env.CURRENTS_BATCH_SIZE) || 'auto',
},
coverage: {
projects: true,
},

View File

@ -43,14 +43,14 @@ export function getProjects(): Project[] {
[CONTAINER_ONLY.source, SERIAL_EXECUTION.source, ISOLATED_ONLY.source].join('|'),
),
fullyParallel: true,
use: { baseURL: process.env.N8N_BASE_URL },
use: { baseURL: process.env.N8N_BASE_URL, currentsBatchSize: 2 },
},
{
name: 'ui:isolated',
testDir: './tests/ui',
grep: new RegExp([SERIAL_EXECUTION.source, ISOLATED_ONLY.source].join('|')),
workers: 1,
use: { baseURL: process.env.N8N_BASE_URL },
use: { baseURL: process.env.N8N_BASE_URL, currentsBatchSize: 1 },
},
);
} else {