From b8c2ccb2f40430ec17592e23e141aa54e7d99b84 Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 7 Jun 2026 17:22:54 +0530 Subject: [PATCH] =?UTF-8?q?fix(e2e):=20raise=20live=20provision/claim-depl?= =?UTF-8?q?oy=20per-test=20timeout=20120s=E2=86=92180s=20(de-flake)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The live-provision (vector/cache/nosql/db) + claim-deploy legs do real prod provisioning + an assert-usable connect from the CI runner. Normally ~14s, but under prod contention they intermittently spike past the 120s default and time out — and since both files are serial groups, one slow flow aborts the rest (seen as vector/cache 2min timeouts that pass on retry). Raise the per-test budget to 180s so transient prod latency stops redding the suite; the test still verifies the flow WORKS, and retries cover the rest. Pairs with the cadence right-size (#208/#277) that removes the self-inflicted load. Co-Authored-By: Claude Opus 4.8 (1M context) --- e2e/live-anon-provision.spec.ts | 9 +++++++++ e2e/live-claim-deploy.spec.ts | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/e2e/live-anon-provision.spec.ts b/e2e/live-anon-provision.spec.ts index badf947..9423db2 100644 --- a/e2e/live-anon-provision.spec.ts +++ b/e2e/live-anon-provision.spec.ts @@ -255,6 +255,15 @@ test.describe('LIVE — every anonymous provision flow → backend-assert → re }: { request: APIRequestContext }) => { + // Real prod provisioning (esp. /vector = CREATE DATABASE + CREATE + // EXTENSION, /nosql, /db) + the assert-usable connect from the CI runner + // occasionally spikes well past Playwright's 120s default under prod + // contention — normally ~14s, but a busy provisioner has been seen to + // exceed 2min, timing out the whole serial group (one slow flow aborts the + // rest). Give the live provision+connect+reap real headroom so transient + // latency flakes (recovered on retry today) stop redding the suite. This + // verifies the flow WORKS, not that it's <120s. + test.setTimeout(180_000) const name = cohortName(`anon-${flow.label}`) // ── Create: real provision against the live api ──────────────────────── diff --git a/e2e/live-claim-deploy.spec.ts b/e2e/live-claim-deploy.spec.ts index 0c2ef43..a532cd5 100644 --- a/e2e/live-claim-deploy.spec.ts +++ b/e2e/live-claim-deploy.spec.ts @@ -232,6 +232,15 @@ async function provisionInEnv( test.describe('LIVE — W3 claim/conversion + deploy-lifecycle + env-switcher (cross-surface)', () => { test.describe.configure({ mode: 'serial' }) + // These legs do real prod provisioning + claim + deploy (each heavy) and the + // assert-usable connect from the CI runner — occasionally well past the 120s + // default under prod contention, timing out the serial group on transient + // latency (recovered on retry). Raise the per-test budget so a slow-but-OK + // run doesn't red the suite. See live-anon-provision.spec.ts for the same. + test.beforeEach(() => { + test.setTimeout(180_000) + }) + // Hard skip in normal CI: the LIVE harness must never make the per-PR gate // depend on a reachable backend. test.skip(