Repository navigation
tests: split the route overflow e2e matrix to avoid suite-level timeout flakes - #470
Conversation
The route-overflow e2e test walked ~24 routes sequentially in one Playwright test, so one slow navigation could push the whole matrix over the per-test timeout even though each route passed alone; splitting it into one test per route (named by path) keeps every route covered while isolating failures and timeouts to the specific route.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe frontend route smoke test now creates one Playwright test per route. Production and development modes use separate component coverage rules. Each test preserves title, heading, font, and horizontal-overflow checks with route-specific failure reporting. ChangesFrontend route smoke coverage
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
Closes #108. Ports @harshvardhan60792's work from #463 onto
dev(original authorship preserved on the commit).Why this is a port rather than a retarget
#463 was opened against
main. Retargeting it todevis not safe here:mainanddevdiverged through squash promotes, somerge-base(pr-463, dev)resolves all the way back toddd8eb08(v1.2.0). A retargeted #463 would have rendered as 802 files / +65,927 lines rather than the one file it actually changes. Cherry-picking ontodevkeeps the diff honest at 1 file, +71/-64.What it does
The no-horizontal-overflow check was one test performing ~70 sequential navigations. Any single slow route could push the whole matrix past the 180s per-test timeout even though every route passed in isolation, and a failure named only the matrix, never the route.
This registers one test per route instead. Coverage is unchanged — same routes, same three assertions (title, H1, no horizontal overflow), same
/components/preview/**subframe blocking that #249 added.Two things worth noting for review:
retries: 2) a flaky route now retries alone rather than dragging ~70 navigations through the retry with it.workers: 1means the split trades a small amount of wall clock (a fresh browser context, and therefore a cold HTTP cache, per route) for removing the aggregate-timeout failure class entirely. On a loopback production server that per-route overhead is small; the release gate on this PR is the real measurement.Verification
prettier --checkandeslintpass locally on the changed file. The full release gate has never actually run against this change — #463 targetedmain, sopr-gatenever triggered on it and only Vercel and CodeRabbit reported. This PR puts it through the real gate for the first time.Summary by CodeRabbit