Repository navigation
TML-3403: The planner manifest records the ORM client's polymorphism fixture - #30616
Conversation
Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]> (cherry picked from commit 9ec85c4)
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
📒 Files selected for processing (1)
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 6 remain after this review. 📝 WalkthroughWalkthroughThe planner-golden manifest now records the generated polymorphism contract fixture and its SHA-256 hash. ChangesPlanner-golden fixture manifest
Priority: ➖ Normal Estimated code review effort: 1 (Trivial) | ~5 minutes Change: Other Suggested reviewers: Merge Risk: ⚪ Minimal · up to 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 SummaryArchitecture risk: 🔵 Low · up to The change affects 1 system. Changed systems: Architecture concerns Review detailsSystems and components
Before / after behavior
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
@prisma/orm-extension-arktype-json
@prisma/orm-extension-middleware-cache
@prisma/orm-extension-paradedb
@prisma/orm-extension-pgvector
@prisma/orm-extension-postgis
@prisma/orm-extension-supabase
@prisma/orm-family-mongo
@prisma/orm-family-sql
@prisma/orm-framework
@prisma/orm-mongo
@prisma/orm-postgres
@prisma/orm-sqlite
@prisma/orm-target-mongo
@prisma/orm-target-postgres
@prisma/orm-target-sqlite
@prisma/orm-toolchain
commit: |
size-limit report 📦
|
Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
test/integration/test/planner-golden/planner-ddl-golden.test.tsfails on main: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.jsonfrom an empty schema and compares a hash of the planner output with the line recorded for that file inmanifest.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.tspasses, 696 tests. Without the line it fails 4 tests, the two above in each of the integration and packaging projects.git commit -s) per the DCO.TML-NNNN: <sentence-case title>form.Agent: shonagon-99
Summary by CodeRabbit