Skip to content

test(testing-library): add React parity harness - #523

Closed
jonkwheeler wants to merge 26 commits into
octanejs:mainfrom
jonkwheeler:jon/testing-library-react-parity-harness
Closed

jonkwheeler wants to merge 26 commits into
octanejs:mainfrom
jonkwheeler:jon/testing-library-react-parity-harness

Conversation

@jonkwheeler

@jonkwheeler jonkwheeler commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • pin React Testing Library 16.3.2 and record its runtime/type suite disposition and complete port-test classification ledger
  • add an independent raw-React-root differential lane using native DOM observations to avoid circular adapter evidence
  • authenticate Octane native-event divergences and enforce required lanes for every binding manifest

Verification

  • Testing Library Vitest project: 9 files, 55 tests passed
  • differential and native-event divergence harness lanes passed
  • focused classification/check helper tests passed
  • generated binding status and parity-gap checks 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 react-parity CI execution for every binding manifest (required lanes always run) and expands test/audit surface; production adapter code is largely unchanged aside from docs, metadata, and test layout.

Overview
Adds a recorded-unverified React parity ledger for @octanejs/testing-library against @testing-library/[email protected], with UPSTREAM.md, test-classifications.json, and a differential lane that compares Octane render/clicks to a raw react-dom/client root (native DOM only, avoiding circular RTL-as-oracle evidence). Native fireEvent divergence cases move from events.test.ts into events-native-parity.test.ts as ordinary framework-contract coverage.

CI / harness: Port test classification verification is generalized (binding-classifications-lib.mjs takes a binding id); check.mjs runs it for any manifest that has classifications and always executes required parity lanes (run-required), so recorded-unverified manifests still run declared evidence while full provenance schema stays on verified. Vitest splits the testing-library differential into a react-parity project and excludes it from the default testing-library shard. Metadata bumps: status.json, CLI octane-data.json, and parity manifests’ lockfile / vitest.config SHA-256 hashes after pnpm-lock and config changes.

Reviewed by Cursor Bugbot for commit 250c5dd. 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 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 3, 2026
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 01:17 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 01:17 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 05:58 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 05:59 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:02 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 07:10 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 07:11 Inactive
@jonkwheeler
jonkwheeler force-pushed the jon/testing-library-react-parity-harness branch from 42a7b0f to 74d0f19 Compare August 3, 2026 07:59
@vercel
vercel Bot temporarily deployed to Preview – octane-website-mcp August 3, 2026 08:01 Inactive
@vercel
vercel Bot temporarily deployed to Preview – octane-website August 3, 2026 08:01 Inactive
@jonkwheeler
jonkwheeler marked this pull request as ready for review August 3, 2026 08:30
@jonkwheeler
jonkwheeler marked this pull request as draft August 3, 2026 08:49
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
jonkwheeler and others added 3 commits August 7, 2026 13:50
Resolve merge conflicts preserving PR intent and the react-parity vitest
differential split; refresh lockfile and vitest integrity hashes.

Co-authored-by: Cursor <[email protected]>
Align vitest differential wiring with the split-project pattern and
refresh react-parity evidence hashes.

Co-authored-by: Cursor <[email protected]>
Comment thread vitest.config.js Resolved
@jonkwheeler

Copy link
Copy Markdown
Contributor Author

READY FOR REVIEW

@jonkwheeler

Copy link
Copy Markdown
Contributor Author

Branch is conflicting with main; withdrawing readiness until merge is clean.

REVIEW WITHDRAWN

jonkwheeler and others added 2 commits August 8, 2026 21:45
Resolve parity check imports by keeping generalized binding classifications
and adding livestore verification from main; refresh evidence hashes.

Co-authored-by: Cursor <[email protected]>
Shared binding classifications reject adapted-upstream-suite; skip livestore
in that loop so main's verifyLivestoreTestClassifications owns it.

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

Copy link
Copy Markdown
Contributor Author

Main merge conflicts resolved; Cursor Bugbot clean on current head.

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/testing-library/UPSTREAM.md Resolved
Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 02:36
…ases

Move the four adapted native-event cases into a dedicated file and list only
that file in testExecution.include so ordinary Testing Library tests stay in
the Node-version shards.

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 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 433de11. Configure here.

jonkwheeler and others added 2 commits August 9, 2026 02:43
Parity-owned Vitest files are excluded from ordinary shards, so check must
execute required evidence even when full-suite provenance is still unverified.

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

Copy link
Copy Markdown
Contributor Author

Parity ownership narrowed, main merged, and Bugbot findings cleared on the current head.

READY FOR REVIEW

"testRoot": "src/__tests__ and types",
"license": "MIT",
"integrity": "sha256:a0ac35e67812c71b10b834a64704a2aace7e12e4ef0f2bbaea2dd3fe9fee6fe9",
"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 means the generic job validates this manifest without executing either required lane. With runtime and types both recorded present, the repository contract also requires pristine upstream suites and one-for-one adapted copies. Please make provenance and the paired evidence executable.

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.

With runtime and types both recorded present, the repository contract also requires pristine upstream suites and one-for-one adapted copies. Please make provenance and the paired evidence executable.

Needs a human call before I expand this PR.

What you asked: flip this binding to verified, executable provenance with pristine upstream runtime/types lanes and one-for-one adapted copies.

Why I stopped: that is a full RTL suite port (vendor pin, pristine runners, adapted copies, inventories, type lanes) — well beyond a babysit fix on this harness PR. Current head only has the repo-authored differential lane after removing the incorrect native-event adapted lane.

Options:

  1. Expand this PR (or a follow-up) into the full verified RTL upstream/adapted port.
  2. Keep this PR as a narrower recorded-unverified harness + differential, and track the verified suite work separately.
  3. Something else you prefer for interim suite-state / verification labeling.

Lean: option 2 for landing the harness/differential wiring cleanly, then a dedicated PR for verified RTL suites — unless you want this branch to absorb that port now.

Comment thread vitest.config.js Resolved
jonkwheeler and others added 2 commits August 9, 2026 13:01
Keep events-native-parity as ordinary framework-contract coverage outside
react-parity testExecution, matching the octane-only divergence contract.

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 561469947c40 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