Skip to content

fix(test): stabilize flaky allMonitors select all query results test#111901

Merged
JoshuaKGoldberg merged 2 commits intomasterfrom
fix/flaky-customer-details-spec
Apr 13, 2026
Merged

fix(test): stabilize flaky allMonitors select all query results test#111901
JoshuaKGoldberg merged 2 commits intomasterfrom
fix/flaky-customer-details-spec

Conversation

@JoshuaKGoldberg
Copy link
Copy Markdown
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Mar 31, 2026

The test creates 20 filtered detectors and sets X-Hits: 50, then asserts on "20 monitors on this page selected" and "Select all 50 monitors that match this search query". With that many fixtures and complex rendering, the test can time out under CI load.

The fix reduces the fixture count from 20 to 3 and X-Hits from 50 to 10. That keeps the test's intent (verify select-all-across-pages behavior) but with less intensive work.

Fixes ENG-7204

Made with Cursor

@JoshuaKGoldberg JoshuaKGoldberg added Scope: Frontend Automatically applied to PRs that change frontend components Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. labels Mar 31, 2026
@linear-code
Copy link
Copy Markdown

linear-code bot commented Mar 31, 2026

@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(test): Fix flaky customerDetails billing permissions test fix(test): Fix flaky allMonitors select all query results test Mar 31, 2026
@JoshuaKGoldberg JoshuaKGoldberg changed the title fix(test): Fix flaky allMonitors select all query results test fix(test): stabilize flaky allMonitors select all query results test Mar 31, 2026
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review April 1, 2026 15:33
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team as a code owner April 1, 2026 15:33
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as draft April 7, 2026 14:09
@JoshuaKGoldberg JoshuaKGoldberg changed the base branch from fix/flaky-test-rerun-infra to master April 7, 2026 14:09
The tooltip on disabled menu items in CompactSelect/MenuListItem has a
500ms delay before appearing. Under CI load, this delay plus React
render time can exceed findByText's default 1000ms timeout, causing
intermittent failures. Extend the timeout to 2000ms.

Co-Authored-By: Claude Sonnet 4 <noreply@anthropic.com>
Made-with: Cursor
@JoshuaKGoldberg JoshuaKGoldberg force-pushed the fix/flaky-customer-details-spec branch from cb225e9 to 5556911 Compare April 7, 2026 14:15
@JoshuaKGoldberg JoshuaKGoldberg removed the Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. label Apr 7, 2026
@JoshuaKGoldberg JoshuaKGoldberg removed the request for review from a team April 7, 2026 14:19
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review April 7, 2026 14:26
@JoshuaKGoldberg JoshuaKGoldberg requested a review from a team April 7, 2026 14:48
@JoshuaKGoldberg JoshuaKGoldberg added the Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. label Apr 8, 2026
Copy link
Copy Markdown
Member

@malwilley malwilley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@JoshuaKGoldberg JoshuaKGoldberg merged commit 1de6536 into master Apr 13, 2026
65 checks passed
@JoshuaKGoldberg JoshuaKGoldberg deleted the fix/flaky-customer-details-spec branch April 13, 2026 17:26
wedamija pushed a commit that referenced this pull request Apr 13, 2026
…111901)

The test creates 20 filtered detectors and sets `X-Hits: 50`, then
asserts on "20 monitors on this page selected" and "Select all 50
monitors that match this search query". With that many fixtures and
complex rendering, the test can time out under CI load.

The fix reduces the fixture count from 20 to 3 and `X-Hits` from 50 to
10. That keeps the test's intent (verify select-all-across-pages
behavior) but with less intensive work.

Fixes ENG-7204

Made with [Cursor](https://cursor.com)

Co-authored-by: Claude Sonnet 4 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. 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