Skip to content

ui-kit: the focus-frames light 1280 visual case can exceed its 15 s budget on hosted browser proof #3291

Closed

Description

@schlessera

Context

Hosted browser proof timed out on one case of the ui-kit focus-frame visual suite. The case is continuous focused corners and contained control rings: light 1280 (for (const width of [320, 1280]), packages/ui-kit/tests/visual/focus-frames.visual.tsx:39-40). It took 16077 ms against the suite's 15000 ms test timeout (Error: Test timed out in 15000ms).

The case resizes the outer form viewport to 1600 px tall and renders a long control inventory. Its durations range from 6 to 16 seconds across cases on one runner, close to the 15 s budget. That fits the shared-runner variance #1257 classifies. This was the first observed occurrence. A second followed (see the readiness review below).

Scope

Make this case deterministic within its budget. Find where the time goes (viewport resize, consumer styles, render or screenshot) from the job's timing and a reproduction under the pinned browser image with CPU constrained as in #1257. Then either remove the slow wait or give the case an explicit, justified timeout. Do not weaken what it asserts.

Out of scope

Readiness review (2026-11-02)

Chosen approach (no timeout change): split each theme/width case into three: the query, filter and slash menu, then each half of the review inventory. Size the inventory host to the grid it holds. Keep every capture, file name and assertion.

Acceptance criteria

  • The slow phase is named from measured evidence (per-phase timings or a trace), not inferred.
  • No case carries the full 22-capture inventory, and every original capture, review file name and assertion is retained.
  • Every case in the file passes 20 consecutive runs under the pinned browser image with the ci: classify remaining browser failures under two-CPU stress #1257 two-CPU constraint, with durations recorded in the PR.
  • Under the same concurrent load, the base is shown failing (or measured at its margin) and the fix passing, with receipts in the PR.
  • No timeout is added or raised; the suite default is unchanged.

Verification

bun run test:browser scoped to packages/ui-kit/tests/visual/focus-frames.visual.tsx under the pinned offline browser image, plus the hosted browser category on the PR.

Contract impact

None. Test only.

Activity

  1. added
    type: testCoverage, harness or proof work with no behaviour change.
    area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    priority: p2Wanted, not scheduled. Pulled in when a milestone has room.
    on Nov 2, 2026
  2. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Second occurrence: PR #3345 (#3329), ready-candidate run 41507059001, browser (3), focus-frames.visual.tsx, on base epic/1849-test-cost. This now blocks #3329, which is p2, so this issue stays at p2 or higher under the blocker-priority rule.

  3. self-assigned this
    on Nov 2, 2026
  4. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Claiming (token fff-3291-a7). Intended branch: fix/focus-frames-visual-flake from origin/main. Doing the readiness review from both failing runs first.

  5. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Third occurrence: PR #3342 (#3153), ready-candidate run 41529671844, browser (3): continuous focused corners and contained control rings: light 1280 took 16209 ms. #3153 (p2) is now blocked by this as well.

  6. added
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    on Nov 2, 2026
  7. added this to the 0.45.0 milestone on Nov 2, 2026
  8. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Readiness review, 2026-11-02: the body now records the second occurrence (run 41507059001, dark 1280, 15650 ms), per-phase measurements naming 22 serial Playwright screenshots as about 90% of each case, and the chosen approach: split the case, size the host to its grid, and change no timeout. I made the acceptance criteria specific to that approach and added agent-ready. Implementation is on branch fix/focus-frames-visual-flake.

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

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.area: ui-kitThe presentational design kit: components, tokens, Storybook, visual baselines.priority: p2Wanted, not scheduled. Pulled in when a milestone has room.type: testCoverage, harness or proof work with no behaviour change.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions