Skip to content

test(ourlogs): unmark stale flaky markers in logsTableRow tests - #120847

Merged
JoshuaKGoldberg merged 4 commits into
masterfrom
joshgoldberg/logs-936-unmark-stale-flaky-logs-table-row-tests
Jul 31, 2026
Merged

test(ourlogs): unmark stale flaky markers in logsTableRow tests#120847
JoshuaKGoldberg merged 4 commits into
masterfrom
joshgoldberg/logs-936-unmark-stale-flaky-logs-table-row-tests

Conversation

@JoshuaKGoldberg

@JoshuaKGoldberg JoshuaKGoldberg commented Jul 29, 2026

Copy link
Copy Markdown
Member

Removes the seven it.isKnownFlake() markers in logsTableRow.spec.tsx. They are stale: the flakes they describe were fixed two months ago, but nothing removes markers once the automation adds them.

Timeline:

Follow-up to LOGS-936

usePrefetchTraceItemDetailsOnHover scheduled a trace-item prefetch on hover start and cleared it only on hover end, so a row that unmounted while its timer was pending still fired the request. In the app that is a wasted fetch after the table is gone; in Jest the timer outlives test cleanup and lands in a later test, which fails on an unmocked /trace-items/{id}/ request.

The hook now tracks the timer it scheduled and clears it on unmount, only releasing the shared ref when the pending timer is its own so an unmounting row cannot cancel a sibling's prefetch. This also drops the trace-item mocks added to logsInfiniteTable.spec.tsx to absorb the leaked requests.

Refs LOGS-936
All seven it.isKnownFlake() markers in this file came from one automated batch on 2026-06-03, generated from CI data collected before the underlying failures were fixed on 2026-05-28 by #116374, #116405, and #114893. The automation never revisits markers, so they have sat here for two months.

Every CI issue Sentry recorded for this file is resolved, and the only event in the last 90 days came from an experimental React-compiler branch rather than master. Local runs are clean: 1436 executions under the 50x stress harness, including four concurrent runs to force CPU contention, plus simulated response latency up to 500ms.

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 Jul 29, 2026

Copy link
Copy Markdown

LOGS-936

@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Jul 29, 2026
Base automatically changed from joshgoldberg/logs-936-fix-flakiness-in-logsinfinitetablespectsx to master July 30, 2026 12:39
@JoshuaKGoldberg
JoshuaKGoldberg marked this pull request as ready for review July 30, 2026 13:04
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team as a code owner July 30, 2026 13:04
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from a team July 30, 2026 13:04
@JoshuaKGoldberg
JoshuaKGoldberg requested a review from scttcper July 31, 2026 15:38
@JoshuaKGoldberg
JoshuaKGoldberg merged commit d77b3b7 into master Jul 31, 2026
73 of 74 checks passed
@JoshuaKGoldberg
JoshuaKGoldberg deleted the joshgoldberg/logs-936-unmark-stale-flaky-logs-table-row-tests branch July 31, 2026 16:04
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.

2 participants