From 888c706af18f994a5f06904650c5827a56353b0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ullrich=20Sch=C3=A4fer?= Date: Fri, 8 May 2026 02:42:21 +0200 Subject: [PATCH] experiment: let Playwright run with default parallel workers on CI Previously `workers: process.env.CI ? 1 : undefined` pinned CI to a single worker. PR #365 added a hydration helper that was supposed to make workers=1 unnecessary; this PR validates that on real CI by letting Playwright default to logical CPU count (~2 on standard GitHub Actions runners). If CI stays green here across the auth + journal + planner + public-content projects, the speedup is essentially free. If flaky, revert and we know we have more hydration work to do. Co-Authored-By: Claude Opus 4.7 (1M context) --- playwright.config.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/playwright.config.ts b/playwright.config.ts index 6e21e1b..72d97bc 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -5,7 +5,12 @@ export default defineConfig({ outputDir: "./e2e/results", fullyParallel: true, retries: process.env.CI ? 2 : 0, - workers: process.env.CI ? 1 : undefined, + // Experiment: drop the CI=1 worker pin to see if the suite is stable in + // parallel on real CI. PR #365 introduced a hydration helper that was + // supposed to make workers=1 unnecessary; this validates that. `undefined` + // lets Playwright default to logical CPU count (~2 on standard GitHub + // Actions runners). If CI stays green, keep; if flaky, revert. + workers: undefined, reporter: process.env.CI ? [["github"], ["html", { open: "never" }], ["json", { outputFile: "playwright-results.json" }]] : "list",