Skip to content

fix(tests): deflake discover resultsSearchQueryBuilder tests#114630

Open
ryan953 wants to merge 3 commits intomasterfrom
ryan953/fix/deflake-results-search-query-builder
Open

fix(tests): deflake discover resultsSearchQueryBuilder tests#114630
ryan953 wants to merge 3 commits intomasterfrom
ryan953/fix/deflake-results-search-query-builder

Conversation

@ryan953
Copy link
Copy Markdown
Member

@ryan953 ryan953 commented May 1, 2026

Summary

  • Pre-populate TagStore before render in resultsSearchQueryBuilder.spec.tsx to eliminate the race condition between async API response and user interaction
  • Remove isKnownFlake markers from both tests now that the root cause is fixed
  • The supportedTags prop was declared but never read by the component — tags came from TagStore populated asynchronously via the /organizations/org-slug/tags/ API

Test plan

  • CI passes on both previously-flaky tests: "does not show function tags in has: dropdown" and "shows normal tags, e.g. transaction, in the dropdown"

Pre-populate TagStore before render to eliminate the race condition
between async API response (populating TagStore) and user interaction.
The supportedTags prop was never read by the component — tags came
from TagStore populated by the /organizations/org-slug/tags/ API.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@ryan953 ryan953 requested a review from a team as a code owner May 1, 2026 21:37
@github-actions github-actions Bot added the Scope: Frontend Automatically applied to PRs that change frontend components label May 1, 2026
TagStore only has a named export, not a default export.
Comment thread static/app/views/discover/results/resultsSearchQueryBuilder.spec.tsx Outdated
Comment thread static/app/views/discover/results/resultsSearchQueryBuilder.spec.tsx Outdated
Co-authored-by: Ryan Albrecht <ryan@ryanalbrecht.ca>
@ryan953 ryan953 added the Frontend: Rerun Flaky Tests Known flaky tests should be run many times, just to be safe. label May 3, 2026
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.

1 participant