Skip to content

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

Open
brandon-pereira wants to merge 1 commit into
mainfrom
agent/fix-dashboard-filters-modal-test-timeout
Open

brandon-pereira wants to merge 1 commit 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 configuration change with no production or behavioral impact.

Overview
Raises the Jest timeout for DashboardFiltersModal.test.tsx to 15 seconds via jest.setTimeout(15_000), with a short comment noting why.

The change addresses intermittent CI failures on the first test in the file, which cold-starts Mantine modal/Combobox rendering and types input character-by-character—work that can exceed Jest’s default 5s limit on a loaded runner. No test assertions or product logic are modified, aligning with other slow UI suites in packages/app that use elevated timeouts.

Reviewed by Cursor Bugbot for commit b022011. 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 Nov 26, 2026 8:27pm UTC
hyperdx-storybook Ready Ready Preview Nov 26, 2026 8:27pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b022011

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

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 107 in total (1.11%).
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

Copy link
Copy Markdown
Contributor

E2E Test Results

✅ All tests passed • 477 passed • 1 skipped • 1137s

Status Count
✅ Passed 477
❌ Failed 0
⚠️ Flaky 14
⏭️ Skipped 1

Tests ran across 4 shards in parallel.

View full report →

This branch was successfully deployed

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

Labels

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant