Skip to content

ui-react: test-health batch e3855-ui-react-06 #3941

Closed

Description

@schlessera

Context

Shard e3855-ui-react-06 of the #3855 test-health push: 76 packages/ui-react/tests files in 49 clusters, run th-20261110183038-0543ec, branch test-health/e3855-ui-react-06. This issue tracks the batch so its pull request into epic/3855-test-health has an issue to close.

Fixed findings, one line each:

  • turn-journal-runtime.test.ts — self-comparison-class (cannot fail): REVERT_EXPIRED_SURFACE_INACTIVE matched /Revert|Undo/ case-sensitively while the only control is "Review whole-turn revert", so it passed whatever the product did. Now case-insensitive (mutation survived before, killed after).
  • turn-journal-runtime.test.ts — order-dependent (4 of 5 shuffled baseline runs failed): the keep-both case never undid its keep-both, and the voice/stale-session case's held revert rewrote notes/voyage.md after the case ended. Both now undo their effects; 10/10 clean runs, 5 shuffled.
  • render/handoff.test.tsx — order-dependent: "Esc cancels" sent Escape to an unfocused field, so happy-dom's change polyfill depended on the field an earlier case left tracked (failed alone and on 11 of 40 random orders). It now focuses the field first; 10/10 clean.
  • render/desktop-panes-sixth.test.tsx — unrestored-global: the Actions dismissal case replaced globalThis.fetch and never restored it. Now restored from its descriptor in finally.
  • render/turn-failure.test.tsx, render/answer-delivery.test.tsx, render/message-source.test.tsx, render/ask-user-list.test.tsx, render/ask-user-rank.test.tsx — shared-state (ui-react: ClampedPre timeline copy-control render test fails when the render directory runs together #3720): each left the default root's chat store (activeSessionId, backendIds) changed for the next file. Each now resets it in afterAll. The ui-react: ClampedPre timeline copy-control render test fails when the render directory runs together #3720 order (turn-failure, answer-delivery, copy-control) failed 93/1 before and passes 94/0 after.
  • render/copy-control.test.tsx — order-dependent (ui-react: ClampedPre timeline copy-control render test fails when the render directory runs together #3720, victim side): the timeline case now renders under its own root and provider instead of the shared default root; with the leaked state injected it failed before and passes after.
  • session-demux.test.ts — shared-state: the default chat store was reset only before each case; it is now also reset in afterAll.
  • share-intake.test.ts — unrestored-global: the module-level localStorage stand-in is now removed in afterAll.
  • tracker-store.test.ts — unrestored-global: five cases deleted window/document unconditionally; a helper now restores the original descriptor.
  • registration-on-mount.test.tsx — self-comparison: packs.every(p => distinct.includes(p)) was true by construction. It now asserts the repeats reached the registry (a module-latch mutant was killed).
  • tracker-runtime.test.ts — test-fault (tests: attribute low-space failures in remaining running-turn fixtures #2551, one of its five suites): requireTurnFreeSpace(brain) added after the fixture brain is created, so a low-space disk fails with TurnFixtureFreeSpaceError instead of a 15 s tracker timeout. Proven on a private filled 3 GiB tmpfs.

Scope

Test code under packages/ui-react/tests only, as recorded in the run's worksheets.

Out of scope

Product code, timeouts, deadlines, shard or selection rules, the other four suites of #2551, render files outside this shard for #3720, and the deferred findings named in the pull request.

Acceptance criteria

  • bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health --head <PR head> reports ok: true.
  • The pull request's hosted proof passes on its head.

Verification

The pull request carries the gate output, the mutation receipts and the check:pr receipt.

Contract impact

None.

Activity

  1. added this to the 0.45.0 milestone on Nov 10, 2026
  2. added
    type: test
    area: ui-react
    priority: p1
    on Nov 10, 2026
  3. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    Delivered by #3943, which merged into epic/3855-test-health as fbf596bf6 (the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck and check:pr passed on the combined branch. The epic's two exhaustive runs on dc2439551, 42996974186 and 42997012467, then passed. GitHub does not apply Closes for a pull request into a non-default branch, so I'm closing this by hand. The change reaches main with the epic's single landing pull request.

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-reactpriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions