Skip to content

Commit c3cb6c9

Browse files
ci(dashboard): Fail the e2e run on a flaky test (#4031)
Sets `failOnFlakyTests` in the dashboard Playwright config for CI, so a retry can no longer hide a race. `retries` stays at 1 so that the failed attempt keeps its trace. Merge only after #4029, and after a fix for the inbox flake in `inbox-navigation.spec.ts:686` ("a click or Enter on a row opens its Conversation, and a pill expands it"). That flake's cause is not confirmed. One lead: when the ask loads, the Conversation page drops `?ask` with `setSearchParams(..., { replace: true })`. If that runs just after the popstate from Back, react-router resolves it against the list route and replaces the list entry with `/`, which drops `view=conversations`, so the Conversations list never shows. <!-- junior-request-attribution:start --> via @dcramer. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A602532a22c67e1866f578e05616f0fcc --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A602532a22c67e1866f578e05616f0fcc) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A602532a22c67e1866f578e05616f0fcc/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: David Cramer <[email protected]>
1 parent e8c4efb commit c3cb6c9

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎packages/junior-dashboard/playwright.config.ts‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ export default defineConfig<{ ui: DashboardShell }>({
2626
},
2727
fullyParallel: true,
2828
forbidOnly: Boolean(process.env["CI"]),
29+
// A retry that passes hides a flaky test, so a flaky test fails the run.
30+
// The retry stays so that the failed attempt records a trace.
31+
failOnFlakyTests: Boolean(process.env["CI"]),
2932
retries: process.env["CI"] ? 1 : 0,
3033
// A broken build fails every journey. Stop early instead of waiting for
3134
// each timeout and retry until the CI job limit.

0 commit comments

Comments
 (0)