Repository navigation
Closed
Labels
area: renderrender-template and the network-denied puppeteer renderer.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Milestone
Description
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 aftercrash(), so "does not brick the renderer permanently" stayed green with the disconnect handler increateRendererdeleted (browser.once("disconnected",packages/ui-render-puppeteer/src/renderer.ts:241-243). A crashed fake now refusesnewPagethe 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 withsetImmediate, 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. Asome(...).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 andBuffer.isBuffer.png-bounds.runtime.test.tsalready 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-healthafter its own hosted proof passes. bun scripts/test-health.ts batch verifypasses. 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.
Metadata
Metadata
Assignees
Labels
area: renderrender-template and the network-denied puppeteer renderer.priority: p1Scheduled into the current or next milestone.type: testCoverage, harness or proof work with no behaviour change.
Activity
schlessera commentedon Nov 11, 2026
Delivered by #3930, which merged into
epic/3855-test-healthasc689d71bf(the push in #3855). It landed in the combined merge without proof of its own; the gate, typecheck andcheck:prpassed on the combined branch. The epic's two exhaustive runs ondc2439551, 42996974186 and 42997012467, then passed. GitHub does not applyClosesfor a pull request into a non-default branch, so I'm closing this by hand. The change reachesmainwith the epic's single landing pull request.