Skip to content

test(tanstack-virtual): add React parity harness - #516

Closed
jonkwheeler wants to merge 44 commits into
octanejs:mainfrom
jonkwheeler:jon/tanstack-virtual-react-parity-harness
Closed

jonkwheeler wants to merge 44 commits into
octanejs:mainfrom
jonkwheeler:jon/tanstack-virtual-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary\n\n- add immutable upstream provenance and a bounded React parity manifest for TanStack Virtual\n- authenticate four same-fixture React/Octane windowing and measurement scenarios\n- add exact nested-flush divergence, DOM-free initial-window SSR, and public type lanes\n- replace fail-open fixture compilation with fail-closed compilation and negative controls\n- explicitly retain real-layout browser/e2e coverage as an unverified gap\n\n## Validation\n\n- [x] TanStack Virtual project: 7 files, 36 tests passed\n- [x] Runtime differential, adapted divergence, SSR, and type lanes passed\n- [x] Classification and recorded-unverified negative controls passed\n- [x] Repository-wide React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)\n- [x] Generated binding status, parity-gap, and CLI inventories are current\n\n## Risk / follow-ups\n\n- Upstream remains recorded-unverified because the npm artifact omits upstream runtime/e2e suites and this bounded harness does not claim real-layout browser parity.\n- This PR intentionally does not change the runtime binding.\n\n## Provenance\n\n- [x] An agent produced this diff (agent-authored)\n


Note

Low Risk
Changes are tests, audit manifests, docs, and CI typecheck wiring; the virtual adapter behavior is unchanged aside from an inline divergence comment.

Overview
Adds a bounded React parity control plane for @octanejs/tanstack-virtual: upstream provenance (UPSTREAM.md, audit/react-parity.json), test classifications, and a required differential lane with four @parity-case scenarios that compare Octane to real @tanstack/[email protected] on shared fixtures.

Harness hardening: differential global setup now compiles only *-diff.tsrx oracles via a fail-closed fixture-compiler (with unit tests); conformance/SSR fixtures stay out of the React cache. New Octane-only coverage includes DOM-free SSR (server.test.ts), public API typetests (wired into root typecheck), and a dedicated nested flushSync degradation test linked to divergence nested-flushsync-degradation (moved out of core.test.ts).

Repo-wide parity schema: ordinaryEvidence on react-parity manifests lets unpaired Octane-only cases bind divergences[].caseIds without inventing a React lane; documented in docs/react-parity-testing.md. Classification discovery now includes typetests/*.test-d.ts when no separate type-parity ledger exists (Apollo gains one classification entry).

Metadata bumps TanStack Virtual verified date to 2026-08-02; eval train manifest grader digests refresh across tasks (content unchanged).

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

@vercel

vercel Bot commented Aug 2, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
octane-website Ready Ready Preview Aug 7, 2026 3:58pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:58pm

Request Review

@github-actions github-actions Bot added the test PR: tests only label Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 23:22 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 23:22 Inactive
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 01:49
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 02:29
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 02:38
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:03 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:04 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/tanstack-virtual-react-parity-harness branch from 55b1482 to aab3454 Compare August 3, 2026 07:50
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:52 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:53 Inactive
Follow the hook-form pattern: tag parity lanes with
testExecution group react-parity, move differential tests into a
dedicated project with globalSetup precompile, and drop per-file
beforeAll compile hooks.
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 7, 2026 15:57 Inactive
Comment thread vitest.config.js Resolved
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:58 Inactive
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Keep fail-closed React setup scoped to *-diff.tsrx so Octane-only fixtures like server.tsrx cannot abort the parity lane.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Restoring merge currency after origin/main merge; will re-signal when Bugbot is clean on the new head.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 5c35012. Configure here.

Keep the required differential lane pinned to *-diff.tsrx oracle fixtures only.

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Merge currency restored (origin/main merge + Bugbot finding fixed). Checklist: CLEAN, no unresolved threads, Bugbot SUCCESS on current head.

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency repair in progress: PR is DIRTY against current main.

REVIEW WITHDRAWN

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Currency restored: merged origin/main (digest/harness conflicts resolved via main + pnpm sync). Bugbot SUCCESS on current head; no unresolved threads; mergeable CLEAN.

READY FOR REVIEW

jonkwheeler and others added 2 commits August 10, 2026 14:34
Resolve evals manifest conflict via pnpm sync after Version Packages (octanejs#682).

Co-authored-by: Cursor <[email protected]>
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged origin/main twice (Version Packages #682 + react-parity docs plan). Evals manifest conflict resolved via pnpm sync. Bugbot SUCCESS on current head; no unresolved threads; mergeable CLEAN.

READY FOR REVIEW

@leonidaz

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit cb8b317bdfe5 through consolidated PR #699.

@leonidaz leonidaz closed this Aug 12, 2026
kotarotaniguchi0523 pushed a commit to kotarotaniguchi0523/octane that referenced this pull request Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants