Skip to content

test(dexie): add React parity harness - #525

Closed
jonkwheeler wants to merge 31 commits into
octanejs:mainfrom
jonkwheeler:jon/dexie-react-parity-harness
Closed

jonkwheeler wants to merge 31 commits into
octanejs:mainfrom
jonkwheeler:jon/dexie-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pin dexie-react-hooks 4.4.0 and record its browser/type suite disposition and complete port-test classification ledger
  • add a same-fixture useLiveQuery differential over IndexedDB with fail-closed fixture compilation
  • register all four canonical upstream integration scenarios as a real-Chromium lane plus the adapted public type contract

Verification

  • Dexie jsdom project: 7 files, 25 tests passed
  • Dexie SSR project: 1 file, 1 test passed
  • Dexie browser project: 1 file, 4 tests passed in Chromium
  • differential, browser, and adapted-types harness lanes passed
  • global React parity audit passed (stable: 5,345 cases; canary: 5,413 cases)

Provenance

  • An agent produced this diff (agent-authored)

Note

Medium Risk
Changes CI gating and where browser tests run; parity harness behavior affects all bindings with recorded-unverified manifests, but the diff is test/audit/CI infrastructure rather than production hook implementations.

Overview
@octanejs/dexie gains a full React parity story: upstream pin ledger (UPSTREAM.md), react-parity.json with differential, browser, and adapted-types lanes, port-test classifications, and @parity-case markers on the four upstream Karma scenarios.

A same-fixture differential compares useLiveQuery to [email protected] (TSRX → React compile cache, import rewrite, fail-closed setup). Vitest splits dexie-differential and dexie-browser into react-parity execution groups; the ordinary dexie shard no longer runs browser or differential specs.

CI drops Dexie from the heavy browser shard, installs Playwright Chromium in react_parity_checks, and react-parity:check now runs required oracle lanes whenever a manifest declares them—even when provenance is recorded-unverified (validate-only only when there are no required lanes). Port test classification verification is generalized beyond hook-form (binding-classifications-lib).

Bindings metadata (status.json, docs, CLI data) bumps Dexie verified to 2026-08-02.

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

@vercel

vercel Bot commented Aug 3, 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 3, 2026 8:04am
octane-website-mcp Ready Ready Preview Aug 3, 2026 8:04am

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 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 01:44 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 01:45 Inactive
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 01:49
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 06:42 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 06:43 Inactive
@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/dexie-react-parity-harness branch from 58d6202 to 6786cec Compare August 3, 2026 08:02
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 08:03 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 08:04 Inactive
Comment thread .github/workflows/ci.yml Resolved
Comment thread packages/dexie/audit/react-parity.json Resolved
Comment thread packages/dexie/audit/adapted-types.json Resolved
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.
Comment thread vitest.config.js Resolved
Comment thread vitest.config.js Resolved
Comment thread packages/dexie/audit/react-parity.json Resolved
jonkwheeler and others added 3 commits August 8, 2026 11:55
Remove unrelated octane/MCP changesets carried from main integration,
refresh lockfileSha256, and omit react-parity ownership markers on
recorded-unverified dexie Vitest projects.

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

Copy link
Copy Markdown
Contributor Author

Follow-up fixes pushed; parity threads resolved and Bugbot is clean on the current head.

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is conflicting with main again after upstream moved; withdrawing readiness until the merge is clean and Bugbot re-checks the new head.

REVIEW WITHDRAWN

…y-harness

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

# Conflicts:
#	scripts/react-parity/check.mjs
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Merged latest main (resolved react-parity check conflict + refreshed evidence hashes). Bugbot is clean on the current head; draft remains.

READY FOR REVIEW

@leonidaz leonidaz left a comment

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.

React parity configuration review.

Comment thread packages/dexie/UPSTREAM.md Resolved
Comment thread packages/dexie/audit/react-parity.json Resolved
Comment thread vitest.config.js Resolved
Comment thread packages/dexie/audit/react-parity.json Resolved
Comment thread .github/workflows/ci.yml Resolved
jonkwheeler and others added 2 commits August 9, 2026 02:39
Point the differential lane at dexie-differential, mark parity-owned Vitest
projects, and provision Chromium in react_parity_checks instead of a
Dexie-specific lint_checks install.

Co-authored-by: Cursor <[email protected]>
Comment thread packages/dexie/audit/react-parity.json Resolved
Parity-owned recorded-unverified Dexie lanes were validate-only, so marking
them react-parity would have orphaned browser and differential evidence from CI.
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Addressed Leonidaz parity-ownership feedback, merged latest main, and fixed the Bugbot orphan finding by running required lanes for recorded-unverified manifests. Bugbot is clean on the current head; draft remains.

READY FOR REVIEW

Comment thread packages/dexie/audit/react-parity.json Outdated
"testRoot": "libs/dexie-react-hooks/test",
"license": "Apache-2.0",
"integrity": "sha256:0bc97caee264afe677503af0d692b97e9bedbbf58e5bfc80b3446f687b165f30",
"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.

recorded-unverified provenance prevents the required differential, browser, and type lanes from executing. The runtime suite is recorded present, but a wrapper is not the required pristine upstream suite plus a one-for-one adapted copy; types likewise need paired pristine/adapted evidence. Please verify provenance and preserve/adapt the canonical suites.

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.

recorded-unverified provenance prevents the required differential, browser, and type lanes from executing. The runtime suite is recorded present, but a wrapper is not the required pristine upstream suite plus a one-for-one adapted copy; types likewise need paired pristine/adapted evidence. Please verify provenance and preserve/adapt the canonical suites.

Needs a human call — this is beyond a mechanical babysit fix.

What the review asks: flip provenance.verification to verified and satisfy the harness contract for upstreamSuites.runtime/types: present: required pristine-upstream + adapted-octane full-suite lanes (vitest-full/jest-full, evidenceOrigin: upstream-suite), plus paired pristine-types/adapted-types. Upstream is a Karma/QUnit Chromium suite over the Dexie.js monorepo harness, not a self-contained Vitest/Jest suite, so pristine execution needs vendoring + a real Karma (or equivalent) runner, not the current Playwright wrapper alone.

Options:

  1. Expand this PR into the full verified program (vendor libs/dexie-react-hooks at the pin, add pristine Karma/React evidence, restructure the adapted browser suite as adapted-octane + inventory, add pristine/adapted type evidence, then set verified).
  2. Keep this PR as the recorded harness/differential/browser bootstrap and land verified pristine/adapted evidence in a follow-up dedicated to that scope.
  3. Reclassify suite presence / evidence origin only if the maintainer agrees the Karma suite cannot be treated as a present full-suite oracle in-repo.

Lean: (2) follow-up PR — same residual class as testing-library #523; the current wrapper is not a substitute for pristine + one-for-one adapted evidence. Leaving the thread open until that call.

Comment thread packages/dexie/audit/react-parity.json Resolved

@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 e49b92d. Configure here.

@leonidaz

Copy link
Copy Markdown
Collaborator

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

4 participants