Skip to content

test: clear remaining stale flaky markers - #121173

Closed
JoshuaKGoldberg wants to merge 1 commit into
joshgoldberg/logs-936-fix-anomaly-banner-test-isolationfrom
joshgoldberg/logs-936-clear-stale-flaky-markers-stacked
Closed

test: clear remaining stale flaky markers#121173
JoshuaKGoldberg wants to merge 1 commit into
joshgoldberg/logs-936-fix-anomaly-banner-test-isolationfrom
joshgoldberg/logs-936-clear-stale-flaky-markers-stacked

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Aug 4, 2026

Copy link
Copy Markdown
Member

Stacked on #121172 — review that one first.

I audited every remaining it.isKnownFlake() marker in the repo. #121172 fixes the only genuine flake I could find. This removes the other 30 markers across 17 files, which leaves zero usages in static/. The helper, its type declaration, and the CI wiring stay in place for future use.

The case for removing them is that the markers are unmaintained, not that these tests never fail. All 30 date to automation batches merged on 2026-05-26, 06-03, and 06-08. The automation only ever adds markers, and its last three PRs (#117642, #118116, #118627) were closed unmerged, so it has not revisited anything on master since. Eleven of the files have had no commit since their marker landed. Locally, every marked test passes in isolation, and 37 of 38 passed 50x stress across two full passes (3928 executions).

Two of these tests did fail on master in the last five weeks. Both were reported to #feed-frontend-tests and both are now resolved in Sentry:

  • explore/metrics/metricsTab.spec.tsxshould add a metric when Add Metric button is clicked (JEST-2XZ0, 1 event, 2026-07-14)
  • dashboards/widgetCard/spansWidgetQueries.spec.tsxcalculates the confidence for a multi series (JEST-21WY, 3 events, last seen 2026-07-02)

Of the 12 distinct issues that channel reported between 07-01 and 08-04, those are the only two I could attribute to a marked test; one alert (JEST-2Y29) has no spec frame in its stack, so I could not attribute it either way. Neither hit is among the jest issues currently unresolved. I'm still proposing to unmark both, but flagging them so that's a deliberate call rather than an omission.

The marker is a no-op in normal CI, expanding to 50 runs only when the Frontend: Rerun Flaky Tests label sets RERUN_KNOWN_FLAKY_TESTS. Removing it changes no default CI behavior, and it does not make a flaky test any likelier to fail — it stops advertising these tests as flaky. If either of the two above regresses, the Sentry alert is the signal that matters, and it fires with or without the marker.

Replaces #120851, which bundled the banner fix in with the marker removals.

Follow-up to a follow-up on LOGS-936

Removes the 30 remaining it.isKnownFlake() markers across 17 files, leaving
zero usages in static/. The helper, its type declaration, and the CI wiring
stay in place for future use.

These markers are stale. All date to automation batches merged on 2026-05-26,
06-03, and 06-08; the automation only ever adds markers, and its last three
PRs (#117642, #118116, #118627) were closed unmerged, so nothing has marked or
unmarked anything on master in seven weeks. Eleven of the files have had no
commit since their marker landed. Every marked test passes in isolation, and
37 of 38 passed 50x stress across two full passes (3928 executions). None of
these files appears among the 49 jest issues currently unresolved in Sentry,
while many unmarked files do.

The marker is a no-op in normal CI, expanding to 50 runs only when the
Frontend: Rerun Flaky Tests label sets RERUN_KNOWN_FLAKY_TESTS. Removing it
changes no default CI behavior; it stops advertising these tests as flaky.

Refs LOGS-936
@linear-code

linear-code Bot commented Aug 4, 2026

Copy link
Copy Markdown

LOGS-936

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant