Skip to content

test(app): raise DashboardFiltersModal test timeout to 15s - #3841

Merged
kodiakhq[bot] merged 2 commits into
mainfrom
agent/fix-dashboard-filters-modal-test-timeout
Dec 1, 2026
Merged

kodiakhq[bot] merged 2 commits into
mainfrom
agent/fix-dashboard-filters-modal-test-timeout

Conversation

@brandon-pereira

@brandon-pereira brandon-pereira commented Nov 26, 2026 •

Copy link
Copy Markdown
Member

Summary

The first DashboardFiltersModal unit test intermittently hit Jest's 5s timeout on busy CI runners. It renders the Mantine modal and Combobox for the first time and types a name character by character, so the suite pays a one-time setup cost the other tests don't. No assertion or logic was failing.

Raise the file's timeout to 15s with jest.setTimeout(15_000), matching the pattern used by other slow UI test files. No test logic changed.

Test plan

  • yarn ci:unit src/components/DashboardFiltersModal/__tests__/DashboardFiltersModal.test.tsx — 26 tests pass. Running one file with --coverage still reports the expected repo-wide coverage threshold failures; --coverage=false exits clean.
  • yarn lint:fix — passes.

No changeset: test-only change.


Note

Low Risk
Test-only timeout tweak with no production or assertion changes.

Overview
Raises this file's Jest timeout from the 5s default to 15s via jest.setTimeout(15_000), with a short comment noting that the first test's Mantine modal/Combobox bootstrap and per-character typing can blow past 5s on sluggish CI.

No test logic or assertions change — this only addresses intermittent timeout flakes, consistent with other slow UI suites in packages/app (e.g. useOffsetPaginatedQuery, DBEditTimeChartForm tests).

Reviewed by Cursor Bugbot for commit f81c9d3. Bugbot is set up for automated code reviews on this repo. Configure here.

@brandon-pereira
brandon-pereira requested a review from a team as a code owner November 26, 2026 20:23
@vercel

vercel Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hyperdx-oss Ready Ready Preview Dec 1, 2026 2:43pm UTC
hyperdx-storybook Ready Ready Preview Dec 1, 2026 2:43pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: f81c9d3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions github-actions Bot added the review/tier-2 Low risk — AI review + quick human skim label Nov 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔵 Tier 2 — Low Risk

Small, isolated change with no API route or data model modifications.

Why this tier:

  • Standard feature/fix — introduces new logic or modifies core functionality

Review process: AI review + quick human skim (target: 5–15 min). Reviewer validates AI assessment and checks for domain-specific concerns.
SLA: Resolve within 4 business hours.

Stats
  • Production files changed: 0
  • Production lines changed: 0 (+ 4 in test files, excluded from tier calculation)
  • Branch: agent/fix-dashboard-filters-modal-test-timeout
  • Author: brandon-pereira

To override this classification, remove the review/tier-2 label and apply a different review/tier-* label. Manual overrides are preserved on subsequent pushes.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Duplicate code analysis

No new duplicate code introduced by this PR.


jscpd compared this branch against origin/main
across app, api and common-utils. Only new clones are listed; the codebase
currently holds 109 in total (1.10%).
Run yarn dupes locally to reproduce, or yarn dupes:all for the full picture.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review

✅ No issues found.

@github-actions

Copy link
Copy Markdown
Contributor

Deep Review

✅ No critical issues found.

This is a one-line, test-only change: a module-scope jest.setTimeout(15_000) with an explanatory comment in DashboardFiltersModal.test.tsx. No production code, no test logic, and no assertions changed. The raised ceiling cannot suppress assertion failures or thrown errors — it only extends how long a genuinely hung test runs before failing. The approach matches three sibling test files in packages/app that already set module-scope timeouts of 15–20s, and the changeset omission is explicitly sanctioned by the repo's own CLAUDE.md PR-hygiene rule for test-only changes.

No P2 recommendations.


Reviewers (4): correctness, testing, maintainability, project-standards.

Testing gaps: The file-wide timeout raises the fail-fast ceiling for every test in the file, not just the slow first render — a future hang or perf regression in any later test now takes up to 15s to surface instead of 5s. Acceptable and consistent with the established convention; worth keeping in mind if more tests are added to this file.

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 484 passed • 1 skipped • 1090s

Status Count
✅ Passed 484
❌ Failed 0
⚠️ Flaky 12
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

@kodiakhq
kodiakhq Bot merged commit 19e1c48 into main Dec 1, 2026
30 checks passed
@kodiakhq
kodiakhq Bot deleted the agent/fix-dashboard-filters-modal-test-timeout branch December 1, 2026 14:46

This branch was successfully deployed

2 active deployments
Preview – hyperdx-oss — f81c9d34 Deployed Dec 1, 2026 by vercel[bot]
Preview – hyperdx-storybook — f81c9d34 Deployed Dec 1, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge review/tier-2 Low risk — AI review + quick human skim

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants