Skip to content

Commit 318cd66

Browse files
fix(e2e): raise live provision/claim-deploy per-test timeout 120s→180s (de-flake) (#209)
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 <noreply@anthropic.com>
1 parent ee1be4c commit 318cd66

2 files changed

Lines changed: 18 additions & 0 deletions

File tree

e2e/live-anon-provision.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,15 @@ test.describe('LIVE — every anonymous provision flow → backend-assert → re
255255
}: {
256256
request: APIRequestContext
257257
}) => {
258+
// Real prod provisioning (esp. /vector = CREATE DATABASE + CREATE
259+
// EXTENSION, /nosql, /db) + the assert-usable connect from the CI runner
260+
// occasionally spikes well past Playwright's 120s default under prod
261+
// contention — normally ~14s, but a busy provisioner has been seen to
262+
// exceed 2min, timing out the whole serial group (one slow flow aborts the
263+
// rest). Give the live provision+connect+reap real headroom so transient
264+
// latency flakes (recovered on retry today) stop redding the suite. This
265+
// verifies the flow WORKS, not that it's <120s.
266+
test.setTimeout(180_000)
258267
const name = cohortName(`anon-${flow.label}`)
259268

260269
// ── Create: real provision against the live api ────────────────────────

e2e/live-claim-deploy.spec.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,15 @@ async function provisionInEnv(
232232
test.describe('LIVE — W3 claim/conversion + deploy-lifecycle + env-switcher (cross-surface)', () => {
233233
test.describe.configure({ mode: 'serial' })
234234

235+
// These legs do real prod provisioning + claim + deploy (each heavy) and the
236+
// assert-usable connect from the CI runner — occasionally well past the 120s
237+
// default under prod contention, timing out the serial group on transient
238+
// latency (recovered on retry). Raise the per-test budget so a slow-but-OK
239+
// run doesn't red the suite. See live-anon-provision.spec.ts for the same.
240+
test.beforeEach(() => {
241+
test.setTimeout(180_000)
242+
})
243+
235244
// Hard skip in normal CI: the LIVE harness must never make the per-PR gate
236245
// depend on a reachable backend.
237246
test.skip(

0 commit comments

Comments
 (0)