From 2a6e4caf7cca795085e7d8cda0d907d66336c0a0 Mon Sep 17 00:00:00 2001 From: Jacek Date: Thu, 19 Mar 2026 20:55:07 -0500 Subject: [PATCH] fix(e2e): reduce playwright workers for staging to avoid FAPI rate limiting The generic suite runs 212 tests with 4 workers, each spinning up long-running apps against the same staging instance. This overwhelms the staging FAPI rate limits causing 'Too many requests' errors. Add E2E_WORKERS env var support to playwright config and set it to 2 for the staging workflow. --- .github/workflows/e2e-staging.yml | 1 + integration/playwright.config.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e-staging.yml b/.github/workflows/e2e-staging.yml index edfdff68150..286723e8197 100644 --- a/.github/workflows/e2e-staging.yml +++ b/.github/workflows/e2e-staging.yml @@ -213,6 +213,7 @@ jobs: env: E2E_DEBUG: '1' E2E_STAGING: '1' + E2E_WORKERS: '2' E2E_SDK_SOURCE: ${{ steps.inputs.outputs.sdk-source }} E2E_APP_CLERK_JS_DIR: ${{ runner.temp }} E2E_APP_CLERK_UI_DIR: ${{ runner.temp }} diff --git a/integration/playwright.config.ts b/integration/playwright.config.ts index 007d17768cc..60c8cd937a7 100644 --- a/integration/playwright.config.ts +++ b/integration/playwright.config.ts @@ -14,7 +14,7 @@ export const common: PlaywrightTestConfig = { forbidOnly: !!process.env.CI, retries: process.env.CI ? 5 : 0, maxFailures: process.env.CI ? 5 : undefined, - workers: process.env.CI ? '50%' : '70%', + workers: process.env.E2E_WORKERS || (process.env.CI ? '50%' : '70%'), use: { actionTimeout: 10_000, navigationTimeout: 30_000,