Skip to content

fix(ci): give the heaviest e2e test the suite timeout back - #360

Merged
imshashank merged 2 commits into
mainfrom
fix/e2e-flake-retries
Aug 26, 2026
Merged

imshashank merged 2 commits into
mainfrom
fix/e2e-flake-retries

Conversation

@imshashank

@imshashank imshashank commented Aug 26, 2026 •

Copy link
Copy Markdown
Contributor

Why

e2e/issues.spec.ts:89 timed out on d7df6fc4 and took main red. The tree of that commit is byte identical to the branch head that had just passed the same gate, and re-running the job on the unchanged commit went green, so nothing in the change caused it.

The cause

The ceiling was the test's own. The suite default has been 180_000 since #16, and 0c0b301 added test.setTimeout(120_000) to this one test, which lowers it. So the heaviest test in the suite had the shortest budget, while issues.spec.ts:18 in the same file keeps 180s and docs.spec.ts:90 takes 240s.

That test walks eight distinct routes, several of which no earlier test reaches, and CI runs against a dev server so each of those pays a first compile. It takes 56s on a good run and hit exactly 2.0m on a bad one, its own limit rather than the suite's.

It gets the default back. That is the whole change.

What this deliberately does not do

Retries. The first version of this PR added retries: 2 under CI as a safety net. Greptile pointed out the hole: global setup seeds the database once per run and Playwright does not run it again between attempts, so a retry inherits whatever a failed attempt left behind. Most of the suite tolerates that, because creators carry a Date.now() suffix and count assertions are scoped to what the test just made, but a retry that passes because the previous attempt already created the record is a false green. A flaky red is annoying, a flaky green ships bugs. The timeout was the cause anyway, so the net bought nothing here and was dropped.

Running against a built server. That would remove the compile variance entirely and was the first thing I tried. It does not work: devLoginEnabled() requires NODE_ENV !== 'production', so a built server answers the dev sign in route with a 404 and every test fails to authenticate. Moving the suite off dev means giving e2e another way in first, which is its own piece of work.

Greptile Summary

This PR restores the slow issue-surface error-state test to Playwright’s 180-second suite timeout while leaving CI retries disabled.

  • Raises the test-specific timeout from 120 seconds to 180 seconds.
  • Preserves the resolution of the prior shared-state concern by keeping retries at zero.

Confidence Score: 5/5

The PR appears safe to merge.

No blocking failure remains; the previously reported shared-state issue is resolved because CI retries are no longer enabled.

Important Files Changed

Filename Overview
apps/web/e2e/issues.spec.ts Restores the multi-route issue error-state test’s timeout to the suite default without reintroducing retry behavior.

Reviews (2): Last reviewed commit: "fix(ci): drop the retry net and keep the..." | Re-trigger Greptile

The suite runs against a dev server, so every route pays a first compile,
and it runs serially with no retries. One test walks eight routes that
earlier tests never reach, which is why it takes 56s on a good run and
timed out at 120s on d7df6fc against a tree byte identical to the one
that had just passed.

Its own setTimeout was the immediate cause. The suite default has been
180s since #16, and an override added in 0c0b301 cut this single test to
120s, giving the heaviest test the shortest budget while its sibling in
the same file keeps 180s. It gets the default back.

Retries are the safety net rather than the fix, and only under CI, so a
local run still fails fast on a real break.

Co-Authored-By: Claude Opus 5 <[email protected]>
@imshashank
imshashank requested a review from pulkitxm as a code owner August 26, 2026 06:16
@vercel

vercel Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
orbit Ready Ready Preview Aug 26, 2026 6:29am

Request Review

@github-actions github-actions Bot added tests Test coverage and test infrastructure area: web The Next.js app and its UI labels Aug 26, 2026
@coderabbitai

coderabbitai Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 5 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: cf72bfcf-95af-4780-9674-f377106022a8

📥 Commits

Reviewing files that changed from the base of the PR and between d7df6fc and 8b3716f.

📒 Files selected for processing (1)
  • apps/web/e2e/issues.spec.ts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread apps/web/playwright.config.ts Resolved
Global setup seeds the database once a run and Playwright does not run it
again between attempts, so a retry inherits whatever a failed attempt
left behind. Most of the suite tolerates that, since creators carry a
Date.now suffix and the count assertions are scoped to what the test just
made, but a retry that passes because the attempt before it already
created the record is a false green, and that costs more than a flaky red.

The timeout was the cause anyway, so the net is not needed to fix this.

Co-Authored-By: Claude Opus 5 <[email protected]>
@imshashank imshashank changed the title fix(ci): stop one slow e2e test failing the whole gate fix(ci): give the heaviest e2e test the suite timeout back Aug 26, 2026
@imshashank
imshashank merged commit 65b8814 into main Aug 26, 2026
14 checks passed
@imshashank
imshashank deleted the fix/e2e-flake-retries branch August 26, 2026 06:51

This branch was successfully deployed

1 active deployment
Preview — 8b3716f9 Deployed Aug 26, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: web The Next.js app and its UI tests Test coverage and test infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant