Repository navigation
test(tanstack-query): add React parity harness - #512
jonkwheeler wants to merge 17 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
bf2b30f to
40a6a43
Compare
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.
…act-parity-harness
Regenerate lockfile hashes and Vitest evidence for tanstack-query.
…rness' into jon/tanstack-query-react-parity-harness
|
READY FOR REVIEW |
|
REVIEW WITHDRAWN |
Resolve react-parity check/manifest conflicts after livestore landed on main. Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
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]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
|
READY FOR REVIEW |
| "testRoot": "packages/react-query/src/__tests__", | ||
| "license": "MIT", | ||
| "integrity": "sha256:1effc6149825d93d72c8a735d9790ee7cb4d96fa149749c7eb2bba39c180755f", | ||
| "verification": "recorded-unverified" |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
…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]>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 2 potential issues.
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.
…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]>
|
Thank you for your contribution! This pull request was incorporated into |

Summary
@tanstack/[email protected]provenance and classify every local testValidation
pnpm format:checkpnpm typecheckpnpm testtanstack-queryandtanstack-query-ssrRisk / follow-ups
Provenance
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-caseIDs). Provenance staysrecorded-unverifiedbecause npm omits the tagged repo test suites, soreact-parity:checkonly validates metadata and does notrun-requiredlanes 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 toadapted-suspense.test.ts; suspense hook behavior is documented ininternal.ts.Repo-wide:
binding-classifications-libgeneralizes port test classification to any binding withtest-classifications.json(hook-form no longer special-cased incheck.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.