Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

devops: bump workers count 2->4 on CI (#38712)

Yury Semikhatskya1f306d803b1
diff --git a/tests/bidi/playwright.config.ts b/tests/bidi/playwright.config.ts
index 8531687543..d6e8eee5bc 100644
--- a/tests/bidi/playwright.config.ts
+++ b/tests/bidi/playwright.config.ts
@@ -65,7 +65,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
maxFailures: 0,
timeout: 15 * 1000,
globalTimeout: 90 * 60 * 1000,
- workers: process.env.CI ? 2 : undefined,
+ workers: process.env.CI ? 4 : undefined,
fullyParallel: !process.env.CI,
forbidOnly: !!process.env.CI,
retries: 0, // No retries even on CI for now.
diff --git a/tests/library/playwright.config.ts b/tests/library/playwright.config.ts
index 5339d79701..bc84fad61a 100644
--- a/tests/library/playwright.config.ts
+++ b/tests/library/playwright.config.ts
@@ -95,7 +95,7 @@ const config: Config<PlaywrightWorkerOptions & PlaywrightTestOptions & TestModeW
maxFailures: 200,
timeout: video ? 60000 : 30000,
globalTimeout: 5400000,
- workers: process.env.CI ? 2 : undefined,
+ workers: process.env.CI ? 4 : undefined,
fullyParallel: !process.env.CI,
forbidOnly: !!process.env.CI,
retries: process.env.CI ? 3 : 0,
diff --git a/tests/mcp/playwright.config.ts b/tests/mcp/playwright.config.ts
index 9087f29a48..b8ca1be8f8 100644
--- a/tests/mcp/playwright.config.ts
+++ b/tests/mcp/playwright.config.ts
@@ -49,7 +49,7 @@ export default defineConfig<TestOptions>({
testDir: rootTestDir,
fullyParallel: true,
forbidOnly: !!process.env.CI,
- workers: process.env.CI ? 2 : undefined,
+ workers: process.env.CI ? 4 : undefined,
reporter: reporters(),
tag: process.env.PW_TAG,
projects: [
diff --git a/tests/playwright-test/playwright.config.ts b/tests/playwright-test/playwright.config.ts
index 0f01dc3cde..069a1a77cd 100644
--- a/tests/playwright-test/playwright.config.ts
+++ b/tests/playwright-test/playwright.config.ts
@@ -34,7 +34,7 @@ const reporters = () => {
export default defineConfig({
timeout: 30000,
forbidOnly: !!process.env.CI,
- workers: process.env.CI ? 2 : undefined,
+ workers: process.env.CI ? 4 : undefined,
snapshotPathTemplate: '__screenshots__/{testFilePath}/{arg}{ext}',
projects: [
{