Skip to content

TML-3403: The planner manifest records the ORM client's polymorphism fixture - #30616

Merged
wmadden merged 1 commit into
mainfrom
planner-manifest-polymorphism-fixture
Oct 6, 2026
Merged

wmadden merged 1 commit into
mainfrom
planner-manifest-polymorphism-fixture

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

test/integration/test/planner-golden/planner-ddl-golden.test.ts fails on main:

planner DDL goldens > records exactly the committed contracts in the manifest
AssertionError: expected [ …(344) ] to deeply equal [ …(345) ]

planner DDL goldens > plans packages/3-extensions/sql-orm-client/test/fixtures/polymorphism/generated/contract.json from an empty database as recorded

This PR adds that contract's line to test/integration/test/planner-golden/manifest.json. Nothing else changes.

Why main fails

The test plans every committed SQL contract.json from an empty schema and compares a hash of the planner output with the line recorded for that file in manifest.json. It also checks that the manifest lists exactly the committed contracts.

#30547 added the test and the manifest. #30560 added a committed contract, the ORM client's polymorphism fixture. Each passed CI on its own, and they merged 33 minutes apart, so neither one's CI saw the other.

How the line was made

With the test's own write mode, PLANNER_GOLDEN_WRITE=1 pnpm --filter integration-tests test test/planner-golden. Only this line changed, so the fixture's planner output is recorded and no other contract's output moved.

Testing performed

On main at 78c7f77 plus this commit: planner-ddl-golden.test.ts passes, 696 tests. Without the line it fails 4 tests, the two above in each of the integration and packaging projects.

  • All commits are signed off (git commit -s) per the DCO.
  • I read CONTRIBUTING.md and the change is scoped to one logical concern.
  • Tests are updated.
  • The PR title is in TML-NNNN: <sentence-case title> form.

Agent: shonagon-99

Summary by CodeRabbit

  • Tests
    • Updated planner validation coverage with an additional generated contract fixture and integrity check.
    • These changes affect automated validation only; no user-facing behavior changes are included.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
(cherry picked from commit 9ec85c4)
@wmadden-electric
wmadden-electric requested a review from a team as a code owner October 6, 2026 09:09
@wmadden
wmadden enabled auto-merge October 6, 2026 09:09
@coderabbitai

coderabbitai Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository: prisma/orm/.coderabbit.yml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 4a684c25-35d3-468a-85bd-8588d4907412
📥 Commits

Reviewing files that changed from the base of the PR and between 78c7f77 and d68cb90.

📒 Files selected for processing (1)
  • test/integration/test/planner-golden/manifest.json

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review.


📝 Walkthrough

Walkthrough

The planner-golden manifest now records the generated polymorphism contract fixture and its SHA-256 hash.

Changes

Planner-golden fixture manifest

Layer / File(s) Summary
Record generated fixture
test/integration/test/planner-golden/manifest.json
The manifest adds the generated polymorphism contract fixture path and its SHA-256 hash.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~5 minutes

Change: Other

Suggested reviewers: aqrln

Merge Risk: ⚪ Minimal · up to d68cb

This test-manifest-only change does not alter production behavior. The supplied report says the golden test passes, and no concrete merge-blocking issue is established.

Architecture Summary

Architecture risk: 🔵 Low · up to d68cb

The change affects 1 system.

Changed systems: test

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — test (service) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in test/integration/test/planner-golden/manifest.json: Adds the generated polymorphism contract fixture path and its recorded hash to the manifest.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly describes the main change: adding the ORM client's polymorphism fixture to the planner manifest.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Oct 6, 2026

Copy link
Copy Markdown

Open in StackBlitz

@prisma/orm-extension-arktype-json

npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30616

@prisma/orm-extension-middleware-cache

npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30616

@prisma/orm-extension-paradedb

npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30616

@prisma/orm-extension-pgvector

npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30616

@prisma/orm-extension-postgis

npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30616

@prisma/orm-extension-supabase

npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30616

@prisma/orm-family-mongo

npm i https://pkg.pr.new/@prisma/orm-family-mongo@30616

@prisma/orm-family-sql

npm i https://pkg.pr.new/@prisma/orm-family-sql@30616

@prisma/orm-framework

npm i https://pkg.pr.new/@prisma/orm-framework@30616

@prisma/orm-mongo

npm i https://pkg.pr.new/@prisma/orm-mongo@30616

@prisma/orm-postgres

npm i https://pkg.pr.new/@prisma/orm-postgres@30616

@prisma/orm-sqlite

npm i https://pkg.pr.new/@prisma/orm-sqlite@30616

@prisma/orm-target-mongo

npm i https://pkg.pr.new/@prisma/orm-target-mongo@30616

@prisma/orm-target-postgres

npm i https://pkg.pr.new/@prisma/orm-target-postgres@30616

@prisma/orm-target-sqlite

npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30616

@prisma/orm-toolchain

npm i https://pkg.pr.new/@prisma/orm-toolchain@30616

commit: d68cb90

@github-actions

github-actions Bot commented Oct 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 219.49 KB (0%)
postgres / emit 195.56 KB (0%)
mongo / no-emit 196.38 KB (0%)
mongo / emit 175.27 KB (0%)
cf-worker / no-emit 276.08 KB (0%)
cf-worker / emit 249.38 KB (0%)

@wmadden
wmadden added this pull request to the merge queue Oct 6, 2026
Merged via the queue into main with commit 859e844 Oct 6, 2026
27 checks passed
@wmadden
wmadden deleted the planner-manifest-polymorphism-fixture branch October 6, 2026 09:37
wmadden-electric added a commit that referenced this pull request Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants