Skip to content

test(frontend): the responsive dialog tests time out at 15 s under heavy CPU load #435

Closed as not planned

Description

@pdevito3

Tests in frontend/src/components/ui/responsive-dialog.test.tsx fail at the 15 s test timeout when the machine is under heavy CPU load. Two independent checks saw this on 2026-11-04. CI did not show it on those heads.

Steps

  1. In frontend/, start 40 busy processes (for example, 40 yes > /dev/null).
  2. Run CI=1 pnpm test 12 times, one run after another.

Result

Code Failed runs
The head of PR #427 at ee393a37 7 of 12
The head of PR #427 at 070eadda 1 of 2
The same code with the drawer test of the base 2 of 3

Expected

The test file passes under this load, or a failure shows which step was slow.

Notes

The cause is not known. Load is an inference from the numbers above. Read the Playwright trace of a failed run first, to learn whether the test was slow or waited on a step that never ended. Related: #339 and #382.

Activity

  1. pdevito3 commented on Nov 5, 2026

    @pdevito3
    OwnerAuthor

    PR #447 corrects one cause of these timeouts. It uses Refs #435, so this issue stays open after that PR merges.

    What the PR corrects

    The long form test made 39 keyboard calls, and the answer to each call waits for the next frame. The test now makes 5 calls. With no load started, its median time goes from 1448 to 894 ms at 1280x720, and from 1082 to 516 ms at 390x844, in 6 alternated runs each. A long form test failed in 8 of the 9 failed runs in the logs of these load runs.

    What stays open

    • The steps of this issue did not run on that change: 40 busy processes and 12 runs of CI=1 pnpm test. The result at that load is a prediction. A run of these steps decides if the issue can close.
    • Run s40-7 failed with a 30 s hook timeout, on at 1280x720 the content of a long dialog does not scroll under the close button. That test took 452 s, and the run had no long form failure. The PR does not address this, and the cause is not known.
    • Other tests of this file failed next to a long form failure: a field in focus that scrolls under the header at 390x844 in s40-6 and split-40-1, and the footer of a long dialog stays in view at 390x844 in s40-6.
    • calendar.test.tsx failed in split-40-1. The cause is not known.
    • The issue also accepts a failure that shows which step was slow. The PR does not add this.
  2. pdevito3 commented on Nov 13, 2026

    @pdevito3
    OwnerAuthor

    Closed as not planned. PR #514 gives the long form and footer tests the time they need under load, removes the slow afterEach, and prints the time of each step on a failure. The rest is abandoned: the steps of this issue on 10 cores, the poll of a field in focus that scrolls under the header, and the failure of calendar.test.tsx.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions