Skip to content

TML-3386: The planner golden manifest records the polymorphism fixture contract - #30617

Merged
wmadden merged 1 commit into
mainfrom
minerva/golden-manifest-polymorphism
Oct 6, 2026
Merged

wmadden merged 1 commit into
mainfrom
minerva/golden-manifest-polymorphism

Conversation

@wmadden-electric

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

Copy link
Copy Markdown
Contributor

On main, the planner golden test fails:

FAIL test/planner-golden/planner-ddl-golden.test.ts > records exactly the committed contracts in the manifest
-   "packages/3-extensions/sql-orm-client/test/fixtures/polymorphism/generated/contract.json",

This pull request adds that contract's entry to test/integration/test/planner-golden/manifest.json, recorded with main's planner. With it, the golden test passes on main (696 tests).

The golden test came with TML-3386 (#30547). It requires one manifest entry for every committed SQL contract. TML-3403 (#30560) committed this contract after that. Its merge queue run skipped the integration tests, so the missing entry was not caught.

Refs: TML-3386

Agent: minerva-41

Summary by CodeRabbit

  • Tests
    • Expanded regression coverage for generated polymorphism contract output, helping verify that planner results remain consistent.

TML-3403 (#30560) committed packages/3-extensions/sql-orm-client/test/fixtures/polymorphism/generated/contract.json after TML-3386 (#30547) added the golden planner test, which requires a manifest entry for every committed SQL contract. TML-3403's merge queue run skipped the integration tests, so the missing entry reached main. The entry is recorded with main's planner.

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner October 6, 2026 09:17
@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: 38b3be0a-5813-4fd1-a629-642435cedb1d
📥 Commits

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

📒 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; 5 remain after this review.


📝 Walkthrough

Walkthrough

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

Changes

Planner golden fixture

Layer / File(s) Summary
Add fixture digest
test/integration/test/planner-golden/manifest.json
The manifest maps the polymorphism generated contract fixture to its recorded digest.

Priority: ⬇️ Low

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

Change: Other

Suggested reviewers: aqrln

Merge Risk: ⚪ Minimal · up to 5595f

The new entry brings the tracked fixture into the golden checks. Although a wrong digest would fail that test, no mismatch is established, so no concrete merge-blocking impact is supported.

Architecture Summary

Architecture risk: 🔵 Low · up to 5595f

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: The manifest now maps the polymorphism generated contract fixture to its recorded digest.
🚥 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 polymorphism fixture contract to the planner golden 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.

wmadden-electric added a commit that referenced this pull request Oct 6, 2026
TML-3403 committed this contract after the golden test was added. Slice 2's planner gives the same recording as main's (#30617).

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@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%)

@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@30617

@prisma/orm-extension-middleware-cache

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

@prisma/orm-extension-paradedb

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

@prisma/orm-extension-pgvector

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

@prisma/orm-extension-postgis

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

@prisma/orm-extension-supabase

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

@prisma/orm-family-mongo

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

@prisma/orm-family-sql

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

@prisma/orm-framework

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

@prisma/orm-mongo

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

@prisma/orm-postgres

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

@prisma/orm-sqlite

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

@prisma/orm-target-mongo

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

@prisma/orm-target-postgres

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

@prisma/orm-target-sqlite

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

@prisma/orm-toolchain

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

commit: 5595f34

@wmadden
wmadden disabled auto-merge October 6, 2026 09:43
@wmadden
wmadden merged commit e12302b into main Oct 6, 2026
27 checks passed
@wmadden
wmadden deleted the minerva/golden-manifest-polymorphism branch October 6, 2026 09:43
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