Repository navigation
fix(ci): give the heaviest e2e test the suite timeout back - #360
Merged
Merged
Conversation
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]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Warning Review limit reachedNext included review available in 5 minutes. View limit detailsLimit 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. Review configuration: ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
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. Comment |
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]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
e2e/issues.spec.ts:89timed out ond7df6fc4and 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_000since #16, and 0c0b301 addedtest.setTimeout(120_000)to this one test, which lowers it. So the heaviest test in the suite had the shortest budget, whileissues.spec.ts:18in the same file keeps 180s anddocs.spec.ts:90takes 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: 2under 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 aDate.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()requiresNODE_ENV !== 'production', so a built server answers the dev sign in route with a 404 and every test fails to authenticate. Moving the suite offdevmeans 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.
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
Reviews (2): Last reviewed commit: "fix(ci): drop the retry net and keep the..." | Re-trigger Greptile