From a6c883ecc03595fb627d6ee8044daf9804dc70c3 Mon Sep 17 00:00:00 2001 From: Steve Gilvarry Date: Fri, 30 Oct 2026 08:38:48 +1100 Subject: [PATCH] ci(e2e): stop after ten failures or twenty minutes A dead stack used to cost the job its whole 90-minute budget. With retries 2 and two workers, a modal over every page sent 75 tests through three 60 s timeouts each; the run was 42 minutes in when it was cancelled, and the log had said everything it was going to say in the first minute. Ten failures is more than any real regression has produced at once, and a healthy seeded run takes 4-6 minutes, so twenty is a ceiling on a run that is merely slow. Both apply in CI only; a local run keeps going so a developer sees every failure. Co-Authored-By: Claude Fable 5.1 Claude-Session: https://claude.ai/code/session_01QfVAntXNaj2MLj5tsw7YQ2 --- playwright.config.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/playwright.config.ts b/playwright.config.ts index 2f498f38..be91dd02 100644 --- a/playwright.config.ts +++ b/playwright.config.ts @@ -42,6 +42,15 @@ export default defineConfig({ // 5xx twice with backoff before it gives up and paints the error state, and // a timeout is a hard failure even for a test marked `test.fail()`. timeout: 60_000, + // A dead stack must fail in minutes, not hours. With retries 2 and two + // workers, a modal over every page (a privacy notice the seed had not + // turned off, 2026-10-29) sent 75 tests through three 60 s timeouts each + // and the job ran 42 minutes before it was cancelled. Ten failures is + // more than any real regression has produced at once; a healthy run of + // the seeded suite takes 4-6 minutes, so 20 is the ceiling on a run that + // is merely slow. + maxFailures: process.env.CI ? 10 : 0, + globalTimeout: process.env.CI ? 20 * 60_000 : 0, globalSetup: seeded ? './e2e/global-setup.ts' : undefined, use: {