Skip to content

test: disposition all 121 planned ReactDOMFloat parity cases with executable evidence - #725

Merged
trueadm merged 2 commits into
mainfrom
feat/react19-float-evidence
Aug 12, 2026
Merged

trueadm merged 2 commits into
mainfrom
feat/react19-float-evidence

Conversation

@trueadm

@trueadm trueadm commented Aug 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Retires the largest block of #711's test-evidence backlog: all 121 planned ReactDOMFloat-test.js ledger cases are now dispositioned, each against the upstream test body at the pinned commit (6117d7cca490).

  • 59 → covered with executable adapted evidence: 41 newly ported conformance tests (float-evidence-{1,2,3}.test.ts + fixtures, every it citing its upstream line) plus links into the existing Float/hint/hoist suites where behavior was already pinned. Modes recorded per case (client / server-string / server-stream / hydrate-match / production-compile).
  • 54 → documented (48 non-goal, 6 divergence) with per-case rationale: suspensey commits, whole-document/createRoot(document) containers, Fizz bootstrap/external-runtime instruction protocol, Fizz's rendered-<img> preload scanning, SuspenseList, shadow-root resource scoping, and streamed-boundary head content (the standing documented divergence).
  • 8 stay planned, honestly: 4 against two newly-surfaced engine gaps (below), 3 warning-message families Octane doesn't emit yet, and 1 server-side hoistable prioritization case (charset/viewport-class metadata ordered ahead of other head content).

Fixes folded in (both red-first)

  • SVG hoist gate: the partition treated isHoistableHeadElementNode as SVG-exempt, so a precedence link inside <svg> hoisted AND re-classified as a stylesheet resource. The whole hoist model is now HTML-scoped (foreignObject re-enters). One documented template-model bound: <meta> inside <svg> on pure client mounts is relocated by the HTML parser's foreign-content breakout rules — it still never becomes document metadata, and SSR serializes it inline correctly.
  • preinitModule invalid-as now warns in development as the docs promised, instead of failing silently.

Engine gaps surfaced (to file in #711, not fixed here)

  1. Streaming drops late-discovered Float resources: resources registered after the shell pass (nested pending boundaries, use()-gated hrefs) appear nowhere in the streamed HTML — only the first pass's head is written. Three deferred cases pin the observable; repro details in the spawned follow-up task. Counterpart strength, now test-pinned: statically-declared sheets inside pending boundaries flush WITH the shell, precedence-normalized (stronger than React's segment-time insertion).
  2. Transitive fallback-hoistable suppression: Octane hoists <meta> from a completed boundary nested inside a pending boundary's fallback into the streamed head; React suppresses fallback hoistables transitively. Direct inline-fallback hoistables are correctly suppressed (ported).
  3. (Observation, adjudication needed): pure-client mounts of nested @try trees produce precedence group order by leaves-first execution ([three, one, two]) where SSR/React give [one, two, three]; dedupe/contiguity/within-group order all hold.

Process

Three parallel agents each owned a disjoint line-range slice with its own test file, reporting machine-readable decisions; ledger flips were applied centrally. Red-capability was spot-verified per slice by temporary runtime/fixture breaks (all reverted; diffs clean except new files). Consolidation fixed agent-report drift deterministically: mode labels normalized to the schema enum via a mapping table, multi-test evidence strings split into per-test records.

Validation

  • pnpm format, pnpm typecheck
  • pnpm test — 21,192 passed, 8 failed; every failure triaged as not-from-this-diff (below)
  • node scripts/react-parity/check.mjs — ledger + coverage metadata validate clean, and all new evidence tests passed inside the parity-wide lane; the lane itself reported two non-passing tests, both accounted for below
  • targeted re-runs: float-evidence-1 (20), float-evidence-2 (36), float-evidence-3 (26), hoist-exclusions (+SVG case), resource-hints (+preinitModule warn), plus the head/svg/float neighbor suites

Local-failure triage (none caused by this diff):

  • day-picker/calendar.test.ts (2) and alien-signals/upstream-original.test.ts (1): reproduce identically with this PR's source files restored to pristine main — pre-existing local-environment failures; main CI is green.
  • day-picker.browser, drei/upstream-e2e.browser, vaul/snap-drag.browser, doom-production (1 each): the known local browser-lane provisioning noise.
  • native-change.test.ts browser lane (1) and markdown/public-types.test.ts (parity lane): 30s-timeout/registration flakes under full-suite CPU contention; both pass in isolation (12/12 and 1/1).

Risk / follow-ups

  • The three warning-family cases, four gap-blocked cases, and one hoistable-prioritization case remain planned by design.
  • After merge: refresh React 19 parity: outstanding gaps and follow-ups after #709 #711's counts (ReactDOMFloat planned drops 121 → 8) and add the two engine gaps + the group-order observation as tracked items.
  • The tsrx-prettier quote-folding hazard bit both agents (worked around via module constants) — already tracked in the formatter's known-bugs list.

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Mostly conformance evidence and docs, but the SVG hoist-partition change and preinitModule warning touch document-head metadata/resource behavior on client and SSR.

Overview
Retires the planned ReactDOMFloat-test.js backlog: 59 cases now have executable adapted evidence (41 newly ported conformance tests across three suites, plus links into existing Float/hint suites), 54 are documented non-goals/divergences with rationale, and 8 remain planned against engine gaps, warning families, and hoistable prioritization.

Folds in two small fixes the evidence work surfaced: document-metadata hoisting is now HTML-scoped (nothing hoists from an SVG lexical context; foreignObject re-enters HTML rules), and preinitModule with an invalid as warns in development instead of failing silently.

Updates parity coverage counts and documents the SVG hoist exclusion bound in differences-from-react.md.

Reviewed by Cursor Bugbot for commit 1e7d4c0. Bugbot is set up for automated code reviews on this repo. Configure here.

…cutable evidence

Retires the ReactDOMFloat test-evidence backlog from #711: 59 cases flip to
covered (41 newly ported conformance tests across float-evidence-{1,2,3} plus
links into existing Float/hint suites), 54 to documented non-goal/divergence
with per-case rationale, and 7 stay planned against two newly-surfaced engine
gaps (streaming drops late-discovered Float resources; transitive
fallback-hoistable suppression) and three warning-message families.

Two red-first fixes surfaced by the port: the document-metadata hoist
partition is now HTML-scoped, so nothing hoists (or becomes a stylesheet
resource) from an SVG lexical context while foreignObject re-enters the HTML
rules; and preinitModule with an invalid `as` warns in development as
documented instead of failing silently.

Co-Authored-By: Claude Fable 5 <[email protected]>
@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 12, 2026
The eighth case is the server-side hoistable prioritization ordering defer.

Co-Authored-By: Claude Fable 5 <[email protected]>
@trueadm
trueadm marked this pull request as ready for review August 12, 2026 14:26
@trueadm
trueadm merged commit 954c75f into main Aug 12, 2026
46 checks passed
@trueadm
trueadm deleted the feat/react19-float-evidence branch August 12, 2026 14:36
trueadm added a commit that referenced this pull request Aug 12, 2026
PR #727 made streaming SSR ship Float stylesheet resources discovered after
the shell with their boundary's reveal wave, closing the gap #725 had
deferred three ReactDOMFloat-test.js ledger cases against. Flip those cases
(:1923 …7b6da8a5, :2041 …8d52f5f3, :2350 …745930fa) to covered with evidence
into the 'streamed late boundaries' describe, add one adapted test for the
:2350 inline-flush shape (inner boundary resolves first; its complete content
and sheet ride the parent's reveal wave exactly once), and regenerate the
coverage report. ReactDOMFloat planned drops 8 -> 5.

Co-authored-by: Claude Fable 5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant