Skip to content

ui-render-puppeteer: test-health batch e3855-ui-render-puppeteer-01 #3929

Closed

Description

@schlessera

Context

This is one shard of the test-health push in #3855. Shard e3855-ui-render-puppeteer-01 covers all five test files under packages/ui-render-puppeteer/tests/. They were audited through all eight lenses in one cluster, in run th-20261110211116-509912.

Fixed findings, each with the proof the skill requires:

  • crash-recovery.test.ts, nothing-to-observe. The fake browser kept serving pages after crash(), so "does not brick the renderer permanently" stayed green with the disconnect handler in createRenderer deleted (browser.once("disconnected", packages/ui-render-puppeteer/src/renderer.ts:241-243). A crashed fake now refuses newPage the way puppeteer's closed connection does, and the test pins one replacement browser serving all three renders. That mutation went from survived to killed.
  • renderer.test.ts, settling-sleep. "double-release is a no-op" waited a real 5 ms before checking that no extra semaphore slot was minted. It now drains with setImmediate, like the order test next to it. A mutant that drops the double-release guard is still killed, and 10 shuffled runs passed.
  • phase-budgets.test.ts, opaque-failure. A some(...).toBe(true) over the 2000 ms cleanup timers is now a comparison of their states, so a failure prints what the timers did.
  • runtime.test.ts, duplicate-case. "a degenerate body renders instead of throwing a raw Chrome error" launched real Chrome only to assert no-throw and Buffer.isBuffer. png-bounds.runtime.test.ts already asserts exact PNG dimensions for zero, null and fractional body boxes on the same path. The case is removed, with both of its claims mapped to retained owners, and a broken degenerate-box guard kills the owner.

Scope

The four test files above. Test code only.

Out of scope

Product code, timeouts and deadlines, and how tiers or shards are selected.

Acceptance criteria

  • The batch merges into epic/3855-test-health after its own hosted proof passes.
  • bun scripts/test-health.ts batch verify passes. The one removed test is declared, with an obligation map.

Verification

bun scripts/test-health.ts batch verify --base origin/epic/3855-test-health --head HEAD, plus the batch pull request's hosted proof.

Contract impact

None.

Activity

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

    @schlessera
    OwnerAuthor

    Delivered by #3930, which merged into epic/3855-test-health as c689d71bf (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: renderpriority: p1type: test

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions