Skip to content

test(tanstack-query): add React parity harness - #512

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

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

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 2, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pin @tanstack/[email protected] provenance and classify every local test
  • run exact cached-query, async-query, and mutation fixtures against React
  • add required Octane suspense, SSR, and public type-contract lanes
  • make recorded-unverified required lanes execute globally and fail fixture compilation closed

Validation

  • pnpm format:check
  • pnpm typecheck
  • pnpm test
  • targeted tests: 10 files / 46 tests across tanstack-query and tanstack-query-ssr
  • all four TanStack Query parity lanes
  • React parity audit (stable: 5,345; canary: 5,413)
  • binding status, parity-gap, and CLI-data generators are current

Risk / follow-ups

  • Provenance remains recorded-unverified because the npm artifact omits the tagged repository test suites. Dedicated streaming server entries remain future work.

Provenance

  • An agent produced this diff (agent-authored)

Note

Low Risk
Mostly test harness, manifests, and docs; runtime change is a comment on existing suspense logic. Differential lanes stay optional on ordinary CI shards until upstream verification completes.

Overview
This PR wires @octanejs/tanstack-query into the shared React parity system: pinned @tanstack/[email protected] provenance (UPSTREAM.md, react-parity.json), per-test classifications, and an optional differential lane (cached, async, and mutation fixtures with @parity-case IDs). Provenance stays recorded-unverified because npm omits the tagged repo test suites, so react-parity:check only validates metadata and does not run-required lanes yet.

Test infrastructure changes: Vitest splits conformance, differential (dedicated globalSetup), and a new node SSR project; differential fixture precompile now fails closed on compile errors and only builds the diff fixtures. Octane-only suspense coverage moves to adapted-suspense.test.ts; suspense hook behavior is documented in internal.ts.

Repo-wide: binding-classifications-lib generalizes port test classification to any binding with test-classifications.json (hook-form no longer special-cased in check.mjs). Binding status/docs/CLI data now say initial query data has a DOM-free server-render test while dedicated streaming server entries remain open (verified 2026-08-02). A small public API typetest lane is registered as optional until pristine upstream type suites land.

Reviewed by Cursor Bugbot for commit 7fc5cdd. 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:57pm
octane-website-mcp Ready Ready Preview Aug 7, 2026 3:57pm

Request Review

@github-actions github-actions Bot added agent-authored Diff or issue body substantially produced by an AI agent test PR: tests only labels Aug 2, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 2, 2026 22:05 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 2, 2026 22:06 Inactive
@leonidaz
leonidaz marked this pull request as draft August 2, 2026 22:25
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 05:58 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 05:59 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/tanstack-query-react-parity-harness branch from bf2b30f to 40a6a43 Compare August 3, 2026 07:45
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:46 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:47 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:56 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 7, 2026 15:57 Inactive
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

REVIEW WITHDRAWN

Resolve react-parity check/manifest conflicts after livestore landed on main.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

Comment thread packages/tanstack-query/UPSTREAM.md Resolved
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 9, 2026 02:16
Move the adapted suspense oracle into its own file with testExecution.include,
and keep differential tests only in the dedicated non-overlapping project.

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

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

"testRoot": "packages/react-query/src/__tests__",
"license": "MIT",
"integrity": "sha256:1effc6149825d93d72c8a735d9790ee7cb4d96fa149749c7eb2bba39c180755f",
"verification": "recorded-unverified"

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Required lanes never execute: the generic check invokes only manifest validation for recorded-unverified provenance; run-required is reserved for verified manifests. This manifest also says the pinned tag has runtime and type suites, but declares no pristine upstream runtime/type lanes or one-for-one adapted suite. Fetching those suites from the canonical tag is required even when npm omits them. Until that evidence is registered and verification is established, the required lanes and the status claim are metadata only.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Required lanes never execute: … Fetching those suites from the canonical tag is required even when npm omits them. Until that evidence is registered and verification is established, the required lanes and the status claim are metadata only.

Agreed — under recorded-unverified, react-parity:check only validates metadata, and claiming upstreamSuites.*.present without pristine/adapted tag lanes overstates the evidence. I removed the unpaired adapted-suspense/SSR “required” lanes so they are no longer counted as parity evidence, and tightened UPSTREAM.md to say verification stays blocked until the tag suites are fetched and registered.

Need a call on scope for the remaining work before this PR can honestly move to verified + run-required:

(a) Expand this PR to vendor the ~36 files / ~564 cases from @tanstack/[email protected], add pristine runtime/type lanes, and land one-for-one adapted suites (large).
(b) Keep this PR as recorded-unverified differential-only metadata after the ownership cleanup, and do the tag-suite fetch/verification in a follow-up.

Lean: (b) for this PR’s size, unless you want the full suite work here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Update after the Bugbot round: there are now no required TanStack Query parity lanes and no react-parity ownership, so ordinary CI still executes the differential cases. UPSTREAM.md / the manifest no longer claim required run-required evidence under recorded-unverified.

Still need your call on fetching the canonical-tag suites for verified + pristine/adapted registration (options a/b in the prior reply). Leaving this open for that decision.

Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 3 commits August 9, 2026 12:27
…rship

Remove adapted-suspense and SSR from parity ownership/lanes so ordinary shards
still run them, and document that recorded-unverified provenance only validates
metadata until tag suites are fetched and verified.

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

@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 2 potential issues.

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 fd86cbc. Configure here.

Comment thread scripts/react-parity/check.mjs Resolved
…rified

recorded-unverified manifests only validate metadata, so react-parity ownership
would drop the differential cases from CI. Keep them ordinary/optional until
tag suites are fetched and verification can run-required.

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

Copy link
Copy Markdown
Collaborator

Thank you for your contribution! This pull request was incorporated into main as commit ddc5d20077bd 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

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.

2 participants