From bd09a7faf3c4645c1853f0f303ea196587f1e58f Mon Sep 17 00:00:00 2001 From: Tom Koscielniak Date: Wed, 30 Apr 2025 14:43:54 +0200 Subject: [PATCH] playwright: Provision large AWS CB instance By using a "large" AWS instance we should be able to use parallelization in Playwright without maxing out resources and having flakes in tests. --- .github/workflows/playwright.yml | 2 +- playwright.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 17c88763..6398d940 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -9,7 +9,7 @@ jobs: playwright-tests: runs-on: - codebuild-image-builder-frontend-${{ github.run_id }}-${{ github.run_attempt }} - - instance-size:medium + - instance-size:large - buildspec-override:true steps: diff --git a/playwright.config.ts b/playwright.config.ts index 314eaab9..fde83958 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -14,7 +14,7 @@ if (process.env.CURRENTS_PROJECT_ID && process.env.CURRENTS_RECORD_KEY) { export default defineConfig({ testDir: 'playwright', fullyParallel: true, - workers: 2, + workers: 4, forbidOnly: !!process.env.CI, retries: process.env.CI ? 1 : 0, reporter: reporters,