Skip to content

ui-react: investigate Actions-limit timeout and duplicate scene controls #3111

Closed as not planned

Description

@schlessera

Context

An unchanged Actions-limit file produced nine failed cases while verifying the test-helper correction in #3110 at candidate b3cb1fe6729672d56a54f35c6be7f815d9f7dc8c (base 83252add0357908a00fa4181b8e7b731938c69e7). Its source SHA-256 remained f79998452c42d94895b2a0663b27e8a0a55e2e8bd1b6f818f1ef49ebd7471093.

The first named failure was the unchanged 15-second deadline in a disposed Actions-limit scene's held real close cannot take its replacement offline (packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx:128-142). Later cases reported strict locator violations with two Pause buttons or two Done tabs, and three Resume cases also timed out. The file's scene acquisition and disposal are scene (packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx:57-110) and disposeScene (packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx:36-51). Current callbacks capture their scene owners; this witness does not establish a callback-binding regression or a cause for the original timeout.

Vitest completed a report and footer for all three selected files: 127 passed / nine failed / 136 total, zero skipped cases and no reported unhandled errors. The hygiene review file passed 102/102 and the lifecycle regressions passed 13/13. The outer command subsequently reached its 600-second limit and was terminated after 602.026 seconds; no separately retained child OS termination status exists for that command. Complete case results and the outer timeout remain distinct evidence.

The command was node scripts/visual.mjs --project=ui-react-layout --filter=hygiene-review.layout --filter=hygiene-actions-limit.layout --filter=hygiene-lifecycle.layout --proof-report, through the original UID 1000 unit-worker/offline wrappers, with unchanged scheduling, assertions, deadlines, network guards and pinned browser image. No replay of this affected invocation was performed. A separately planned full-layout invocation on the same frozen source was already running before these failures were reported. It subsequently completed naturally with exit 0: 72 files and 1,421 tests passed, including all 21 Actions-limit cases, with no skips or reported unhandled errors. Both results remain retained; the first timeout and subsequent duplicate controls remain unattributed.

Raw affected log SHA-256: 2e67f7831f852c5e0a362a7f33d76428955cede535bb9feaae22c7480b3998ec. Case-report SHA-256: 5c886c46b1ad16b38d45b45f34085e4e62cb165c50a5f9047f7667bf019551c9.

Scope

  • Attribute the first timeout to its actual acquisition, scene operation or cleanup boundary using same-source evidence.
  • Determine whether abandoned asynchronous scene work accounts for the later duplicate controls, retaining exact owner identities and hook ordering.
  • Record any bounded non-reproduction and its limits if the ordering cannot be reproduced.

Out of scope

Product changes, retries on unchanged source, weaker assertions, longer test/poll/fixture deadlines, skipped cases, disabled guards and historical failure attribution without same-failure evidence. This issue authorizes no additional runtime invocation by itself.

Acceptance criteria

  • The first timeout and each duplicate control have source-bound lifecycle evidence or an explicit unresolved attribution limit.
  • Any repair has a named native failing-first receipt and a restored mutation proving its ownership guard.
  • The complete original 21-case file passes with every original assertion and deadline retained.
  • Case totals, command termination and unrelated failures remain separately classified.

Verification

Use the repository's pinned offline browser workflow. Preserve the current witness before any separately authorized investigation. This remains needs: repro; no implementation readiness or release commitment is claimed.

Contract impact

None. Browser test fixture investigation.

2026-10-29 triage at main cb5db6e901e9d3d312bd3a125e03be6140faf98f: Classified as wanted, unscheduled browser-fixture investigation (p2); no release commitment or additional runtime invocation is introduced. Preserve needs: repro and the distinct first-failure/duplicate-control attribution gaps.

Main CI recurrence check (2026-11-03): in the window 2026-10-26 18:00 UTC to 2026-11-03 08:00 UTC, main CI ran 116 times; 97 runs were green and the failed-job logs of the other 19 contain no failure of any hygiene-actions-limit.layout case. In the 2026-11-03 failed main run 41560483270, the layout shard passed all four disposed-scene Actions-limit cases and the Actions-limit P0/L1/L3 cells; its only failure was an unrelated recording-limits cell. Main CI selects affected suites, so this loosely bounds hosted recurrence; it is not a flake rate, a reproduction or a repair. The file is unchanged since 2026-10-29. Same-source lifecycle evidence for the first timeout is still missing.

Triage 2026-11-03: added main-CI recurrence check; needs: repro and p2 unchanged.

Later teardown change and current navigation — 2026-11-09

PR #3671 (squash a63e564f0, merged 2026-11-08 for #3665) changed this file's disposeScene to stop the scene fixture through stopHygieneFixture. That helper releases every held plan, check, resolve, details read and next selection before it stops the fixture. Before the change, a stop waited on held requests until SIGTERM released them, so a test that failed while a request was held could lose its own assertion to a hook timeout. This changes the cleanup boundary that the scope asks about. It does not attribute the original 15-second timeout or the duplicate Pause/Done controls: no failing-window evidence exists for either, and #3671 records no reproduction of this witness. The scope and acceptance criteria are unchanged. A future recurrence must be judged against the new teardown.

Current navigation at main fb999b8ba (packages/ui-react/tests/browser/hygiene-actions-limit.layout.tsx): disposeScene at :37-49, scene at :58-105, and the held-real-close test at :129-146. The citations in Context keep their candidate-source identities.

Triage 2026-11-09 at main fb999b8baeabbb3a9cb5756a19862eee45467ebf: Recorded the #3671 teardown change and refreshed the line numbers. needs: repro and priority: p2 are unchanged. No new runtime result is claimed.

Recurrence check — 2026-11-10

Main CI, 2026-11-03 08:00 UTC to 2026-11-10 07:00 UTC: 160 CI runs, 98 green, 40 cancelled, 22 failed. The failed-job logs of the 22 failed runs, including four failed layout (2) shards, contain no failure of any hygiene-actions-limit.layout case. The cancelled runs were not inspected. This loosely bounds hosted recurrence. It is not a flake rate.

The file is unchanged since a63e564f0 (#3671), so the 2026-11-09 navigation still holds at main 3aadc8df5: disposeScene :37-49, scene :58-105, the held-real-close test :129-146. This triage made no browser invocation, because the issue authorizes none.

What would complete the reproduction: a failing run of hygiene-actions-limit.layout through the pinned offline browser workflow, under the current #3671 teardown. It must retain, for the first timeout, the scene owner identity, its acquisition/operation/cleanup boundary and hook order, and for each duplicate Pause/Done control the owning scene.

Load-dependent timeout reproduced — 2026-11-10

Test-health audit th-20261110201439-289b16 (push #3855) at b71c6e4fe, stock pinned node scripts/visual.mjs --project=ui-react-layout with a private TMPDIR: at load average about 55-71 on 32 CPUs, both solo runs of hygiene-actions-limit.layout.tsx failed, with Test timed out in 15000ms on the native page reload resets L3 to L1 and retains L2 cases (the test(...) at line 347) and a toMatchScreenshot failure at line 215. Idle, at load average 6.6, the same file passed 21/21, with those cases taking 6.5-7.1 s. Open draft PR #3948 records this and says Refs #3111.

Effect on this issue: the first named failure (a 15 s deadline timeout) now has a load-dependent reproduction. The cause inside the native scene is not attributed, and the duplicate Pause/Done controls were not observed. The completion evidence above still applies to both halves.

Triage 2026-11-10 at main 91e54be37: folded the audit receipt above. needs: repro stays; labels and parent #2753 unchanged.

Activity

  1. added
    type: test
    area: ui-react
    needs: repro
    on Oct 29, 2026
  2. added
    priority: p2
    on Oct 29, 2026
  3. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10 triage at main 3aadc8df5: Added a main-CI recurrence check for 2026-11-03 to 2026-11-10. The 22 failed runs, including four failed layout shards, have no hygiene-actions-limit.layout failure. Navigation is confirmed unchanged since #3671. The body now states the evidence that would complete the reproduction. No browser run was made, and no fix found beyond #3671's teardown change. needs: repro, priority: p2 and parent #2753 are unchanged.

  4. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10, test-health audit th-20261110115220-5ecaed at main a26e2546f, under the #3671 teardown. Not reproduced.

    bun scripts/test-health.ts measure ran hygiene-actions-limit.layout.tsx with hygiene-review.layout.tsx, hygiene-media-flow.layout.tsx and hygiene-media.layout.tsx, --runs 2 --together. That is the stock node scripts/visual.mjs --project=ui-react-layout path in the pinned image, on a 32-CPU host at load average about 3.5. The Actions-limit file passed both runs alone, with a median of 104 s, and both runs together with the other three. There was no timeout and no duplicate Pause or Done control. The measure tool records only per-file exit status, so no per-case timings were kept.

    This is a passing control, not an attribution. needs: repro stays.

  5. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    2026-11-10, test-health audit th-20261110201439-289b16 (push #3855) at b71c6e4fe. Load-dependent failure reproduced. The cause inside the native scene is not attributed.

    All runs used the stock pinned node scripts/visual.mjs --project=ui-react-layout path with a private TMPDIR, so the #2615 staging collision is excluded.

    1. bun scripts/test-health.ts measure hygiene-actions-limit.layout.tsx hygiene-media.layout.tsx --runs 2 --together, while other workers' browser proof kept this 32-CPU host at a load average of about 55 to 71.
      • Both solo runs of hygiene-actions-limit.layout.tsx failed. The retained output tail shows a toMatchScreenshot failure at line 215 (Actions-limit P0 L1 L3). It also shows Error: Test timed out in 15000ms on dark 320, dark 1280 and light 320: native page reload resets L3 to L1 and retains L2 (the test(...) at line 347). There were at least 8 failed cases. The measure tool keeps only the tail, so I have no complete per-case list.
      • Both runs of the file together with hygiene-media.layout.tsx passed, as did both hygiene-media solo runs.
    2. The same file run alone at the same head an hour later, at load average 6.6: 21/21 passed in 105 s. The four native page reload … cases took 6.5 to 7.1 s each, and the other scene cases about 5 to 6.4 s.

    So under heavy CPU contention the native-reload cases go from about 6.5 s to more than the 15 s per-test budget. That matches this issue's first named failure, a 15 s deadline timeout. It does not explain the later duplicate Pause/Done controls; I saw none of them in the retained tail. Raising the budget is out of this issue's scope, and I did not change the test.

  6. schlessera commented on Nov 13, 2026

    @schlessera
    OwnerAuthor

    Closing as not planned (maintainer-requested triage, 2026-11-13). Two sightings, both local and both under extreme load, with no hosted failure.

    • The timeouts reproduce only when the host is saturated: both solo runs on 2026-11-10 at load 55 to 71 on 32 CPUs. Idle, the file passes 21 of 21, and the native-reload cases take 6.5 to 7.1 s against a 15 s budget. A case that uses half its budget when idle will pass it when the host has three times more work than CPUs. That is the budget working, not a defect.
    • The duplicate Pause and Done controls were seen once, after an earlier timeout in the same file, and never again. fix(ui-react): audit frame-scheduled focus and release held fixture requests before teardown #3671 has since changed disposeScene to stop the fixture properly.

    Recurrence sweep (2026-11-13). I read the failed-step log of every failed product job on main CI from 2026-10-28 to 2026-11-13: 84 jobs across 300 runs. In the same window 1,005 unit, 764 browser, 501 layout and 256 runtime_host jobs passed. hygiene-actions-limit.layout.tsx appears in three of those logs, always as a pass.

    On recurrence: a hosted timeout here is worth a new issue. For duplicate controls, record which scene owns each one; that is the evidence this issue never had.

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

    area: ui-reactneeds: repropriority: p2type: test

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions