Repository navigation
fix(ci): record incidental supabase jose ^6 bump for upgrade-coverage - #828
Conversation
PR #823 bumped jose ^5 → ^6 in the Supabase extension without touching the 0.13-to-0.14 extension-upgrade instructions, tripping the publish-mode check:upgrade-coverage gate. Record it as an incidental substrate diff. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
|
Warning Review limit reached
More reviews will be available in 18 minutes and 56 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yml Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 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/extension-supabase
@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: |
… --prev (prisma#847) ## Linked issue n/a — small CI fix. Unblocks the v0.14.0 publish, which failed at the `Check upgrade-instruction coverage` step in [run 27631591957](https://github.com/prisma/prisma-next/actions/runs/27631591957). ## At a glance ```diff - const tag = tryGit(repoRoot, 'describe', '--abbrev=0', '--tags', '--match', 'v[0-9]*'); + const tag = tryGit( + repoRoot, + 'describe', + '--abbrev=0', + '--tags', + '--match', + 'v[0-9]*', + '--exclude', + '*-*', + ); ``` In publish mode, default `--prev` now resolves to the last **stable** `v*` tag — pre-release tags like `v0.13.0-dev.40` are skipped. ## Decision `scripts/check-upgrade-coverage.mjs` in publish mode resolves default `--prev` to the most recent `v[0-9]*` tag and diffs `prev..head`. The match was greedy and accepted pre-release tags (`v*-dev.N`), so the diff shrank to whatever landed between the last dev tag and HEAD — often just the release-bump commit. Tighten the match with `--exclude '*-*'` so default `--prev` only picks stable tags. ## How the failure happened 1. `Publish to npm` ran on `69b6e74` (the "Bump to version 0.14.0" merge). 2. `resolveDefaultPrev` ran `git describe --abbrev=0 --tags --match 'v[0-9]*'` from `HEAD`, which returned `v0.13.0-dev.40` — the dev tag on the bump's parent commit (`088813b98`). 3. `git diff v0.13.0-dev.40..69b6e74` is just the bump commit, which rewrites every workspace `package.json` (lockstep version + dep-spec updates) and touches no `instructions.md`. 4. The per-pr-declaration rule fires: `examples/*/package.json` and `packages/3-extensions/*/package.json` appear in the substrate diff; the matching `instructions.md` files do not — so the gate rejects the publish. The 0.13.x cycle had recorded its substrate changes correctly along the way; the gate just wasn't looking at the cycle. With `--exclude '*-*'`, default `--prev` resolves to `v0.13.0` (the actual last stable tag) and the diff covers the whole 0.13.x → 0.14.0 cycle, where every substrate touch is paired with an `instructions.md` update. ## Verification - `node --test scripts/check-upgrade-coverage.test.mjs` — 46/46 pass, including the new regression test that models the bump-on-top-of-dev-tag failure shape. - Replayed the failing CI scenario locally in a fresh clone of `prisma/prisma-next` at commit `69b6e74`: `pnpm check:upgrade-coverage --mode publish` exits `1` with the production script, exits `0` with the patched script. ## Skill update n/a — internal CI script only. ## Checklist - [x] All commits are signed off (`git commit -s`) per the [DCO](../CONTRIBUTING.md#developer-certificate-of-origin-dco). The DCO status check will block merge if any commit is missing a `Signed-off-by:` trailer. - [x] I read [CONTRIBUTING.md](../CONTRIBUTING.md) and the change is scoped to one logical concern. - [x] Tests are updated. - [ ] The PR title is in `TML-NNNN: <sentence-case title>` form — n/a, this is a non-ticket CI fix and follows the prevailing `fix(ci): …` convention used by recent neighbours (e.g. [prisma#828](prisma#828)). <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit ## Release Notes * **Bug Fixes** * Fixed the upgrade coverage checker’s default `--prev` selection in publish mode to use the latest stable `v[0-9]*` tag, excluding pre-release tags. * Updated publish-mode `--prev` help text to reflect that pre-release tags are excluded. * **Tests** * Added a regression test ensuring publish-mode coverage passes only when the default baseline resolves to the latest stable tag (not a pre-release). <!-- end of auto-generated comment: release notes by coderabbit.ai --> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
The
Publish to npmworkflow failed atcheck:upgrade-coverage --mode publish(run).Cause
#823 bumped
jose^5 → ^6inpackages/3-extensions/supabase/package.json. The publish-mode coverage check compares the last release tag againstHEAD; any diff underpackages/3-extensions/requires a matching declaration in the0.13-to-0.14extension-upgrade instructions. None was recorded, so the gate tripped:Fix
The bump is a transitive auth dependency only — no extension-author API, runtime, or contract-shape change. Recorded it as an incidental substrate diff, matching the existing notes in that file (TML-2838, TML-2852, etc.).
Verified locally:
check:upgrade-coveragepasses in both--mode publish(vsv0.13.0-dev.28) and--mode pr.🤖 Generated with Claude Code