Skip to content

flake: WorkspacesPage pagination query key test #1458

@flake-investigator

Description

@flake-investigator

CI Failure Details

Failure Summary

Failed Test: src/pages/WorkspacesPage/WorkspacesPage.test.tsx > WorkspacesPage > correctly handles pagination by including pagination parameters in query key

Error:

Error: Test timed out in 5000ms.
❯ src/pages/WorkspacesPage/WorkspacesPage.test.tsx:300:2

Additional Evidence: repeated React act warnings and hanging process:

An update to WorkspaceMoreActions/Tooltip/RouterProvider inside a test was not wrapped in act(...).
close timed out after 10000ms
Tests closed successfully but something prevents the main process from exiting

Root Cause Analysis

Likely flaky test due to async updates not fully awaited in the pagination test. The 5s timeout plus repeated act(...) warnings and the hanging-process message suggest the test leaves pending updates/timers, occasionally causing a timeout.

Assignment Analysis

  • Intended blame command: git blame -L 300,340 site/src/pages/WorkspacesPage/WorkspacesPage.test.tsx
  • File history: git log --oneline -10 --follow site/src/pages/WorkspacesPage/WorkspacesPage.test.tsx shows the last substantive test changes in a581431 (migrate WorkspacesPage tests to vitest).
  • Component history fallback: git log --oneline -20 site/src/pages/WorkspacesPage shows most recent functional change 86b919e (React 19.2 useEffectEvent refactor).

Assigning to the most recent WorkspacesPage component owner available in history: @DanielleMaywood.

Related Issues

Reproduction

Not yet known; appears intermittent in CI.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions