Repository navigation
TML-2763: Correct telemetry migration target hash - #668
Conversation
Fixes: TML-2763 Signed-off-by: Alexey Orlenko's AI Agent <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (8)
💤 Files with no reviewable changes (1)
📝 WalkthroughWalkthroughThis PR advances a Prisma telemetry contract by migrating the ChangesContract Namespace Evolution
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
size-limit report 📦
|
@prisma-next/extension-author-tools
@prisma-next/mongo-runtime
@prisma-next/family-mongo
@prisma-next/sql-runtime
@prisma-next/family-sql
@prisma-next/extension-arktype-json
@prisma-next/middleware-cache
@prisma-next/mongo
@prisma-next/extension-paradedb
@prisma-next/extension-pgvector
@prisma-next/extension-postgis
@prisma-next/postgres
@prisma-next/sql-orm-client
@prisma-next/sqlite
@prisma-next/target-mongo
@prisma-next/adapter-mongo
@prisma-next/driver-mongo
@prisma-next/contract
@prisma-next/utils
@prisma-next/config
@prisma-next/errors
@prisma-next/framework-components
@prisma-next/operations
@prisma-next/ts-render
@prisma-next/contract-authoring
@prisma-next/ids
@prisma-next/psl-parser
@prisma-next/psl-printer
@prisma-next/cli
@prisma-next/cli-telemetry
@prisma-next/emitter
@prisma-next/migration-tools
prisma-next
@prisma-next/vite-plugin-contract-emit
@prisma-next/mongo-codec
@prisma-next/mongo-contract
@prisma-next/mongo-value
@prisma-next/mongo-contract-psl
@prisma-next/mongo-contract-ts
@prisma-next/mongo-emitter
@prisma-next/mongo-schema-ir
@prisma-next/mongo-query-ast
@prisma-next/mongo-orm
@prisma-next/mongo-query-builder
@prisma-next/mongo-lowering
@prisma-next/mongo-wire
@prisma-next/sql-contract
@prisma-next/sql-errors
@prisma-next/sql-operations
@prisma-next/sql-schema-ir
@prisma-next/sql-contract-psl
@prisma-next/sql-contract-ts
@prisma-next/sql-contract-emitter
@prisma-next/sql-lane-query-builder
@prisma-next/sql-relational-core
@prisma-next/sql-builder
@prisma-next/target-postgres
@prisma-next/target-sqlite
@prisma-next/adapter-postgres
@prisma-next/adapter-sqlite
@prisma-next/driver-postgres
@prisma-next/driver-sqlite
commit: |
Linked issue
Refs TML-2763; follow-up to #666.
At a glance
The migration still has
ops.jsonas[]; only the target contract marker changes.Summary
PR #666 added the right kind of telemetry migration edge, but it targeted a stale emitted contract hash. This PR replaces that package with the same zero-operation marker advance pointing to the actual current telemetry contract hash, and verifies it with the real telemetry backend
.envmigration command.Decision
This PR replaces
20260601T1236_contract_hash_advancewith20260601T1347_contract_hash_advance, preserving the production starting marker41700e…and correcting the destination marker to50aadcf…. No SQL operations are introduced.How it fits together
sha256:41700ef5fda97339b39ea345a56aae72a1ff4be11ddc3ffcab7130bfc71c109d.sha256:50aadcf996213451cd2876e3caf50c2752b5b8c9ce1aa55dcae24918518b4ffb.b3b741…, which does not satisfy the deploy-time target hash.41700e…to50aadcf…with empty operations, soprisma-next migratecan advance or confirm the marker without touching schema objects.Behavior changes & evidence
50aadcf…instead of the staleb3b741…hash.pnpm --dir apps/telemetry-backend run migratewithapps/telemetry-backend/.env,prisma-next migration check --jsonNotes for the reviewer
.envdatabase before opening this PR. It reportsAlready up to datewith markersha256:50aadcf996213451cd2876e3caf50c2752b5b8c9ce1aa55dcae24918518b4ffb.ops.jsonremains empty, so there is no table/index/data mutation in this correction.Testing performed
set -a; . apps/telemetry-backend/.env; set +a; pnpm --dir apps/telemetry-backend run migrateAlready up to date; markersha256:50aadcf996213451cd2876e3caf50c2752b5b8c9ce1aa55dcae24918518b4ffb.DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres pnpm --filter @prisma-next/telemetry-backend exec prisma-next migration check --jsonSkill update
n/a — migration artifact only; no user-facing CLI/API/skill surface changed.
Alternatives considered
50aadcf…, not the staleb3b741…hash.b3b741…to50aadcf…: rejected because production’s failing state starts at41700e…; the deploy needs a direct reachable edge from that marker.Checklist
git commit -s) per the DCO. The DCO status check will block merge if any commit is missing aSigned-off-by:trailer.n/aif the change is doc-only / refactor with no behavioural delta).TML-NNNN: <sentence-case title>form (Linear ticket prefix + concise title naming the concrete deliverable). See.claude/skills/create-pr/SKILL.mdfor the full convention.n/a — internal only).Summary by CodeRabbit