Skip to content
This repository was archived by the owner on Nov 25, 2026. It is now read-only.

fix(ci): record incidental supabase jose ^6 bump for upgrade-coverage - #828

Merged
wmadden merged 1 commit into
mainfrom
fix/upgrade-coverage-supabase-jose
Jun 15, 2026
Merged

wmadden merged 1 commit into
mainfrom
fix/upgrade-coverage-supabase-jose

Conversation

@wmadden-electric

Copy link
Copy Markdown
Contributor

The Publish to npm workflow failed at check:upgrade-coverage --mode publish (run).

Cause

#823 bumped jose ^5 → ^6 in packages/3-extensions/supabase/package.json. The publish-mode coverage check compares the last release tag against HEAD; any diff under packages/3-extensions/ requires a matching declaration in the 0.13-to-0.14 extension-upgrade instructions. None was recorded, so the gate tripped:

[per-pr-declaration] PR touches packages/3-extensions/ but did not record an upgrade
            declaration in .../upgrades/0.13-to-0.14/instructions.md
              packages/3-extensions/supabase/package.json

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-coverage passes in both --mode publish (vs v0.13.0-dev.28) and --mode pr.

🤖 Generated with Claude Code

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]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner June 15, 2026 12:43
@coderabbitai

coderabbitai Bot commented Jun 15, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

@wmadden-electric, we couldn't start this review because you've reached your PR review rate limit.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yml

Review profile: CHILL

Plan: Pro

Run ID: fdad4078-b2ba-4752-8d94-ce45ce718101

📥 Commits

Reviewing files that changed from the base of the PR and between 1be9505 and 2d9237f.

📒 Files selected for processing (1)
  • skills/extension-author/prisma-next-extension-upgrade/upgrades/0.13-to-0.14/instructions.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/upgrade-coverage-supabase-jose

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.

❤️ Share

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

@github-actions

Copy link
Copy Markdown

size-limit report 📦

Path Size
postgres / no-emit 152.67 KB (0%)
postgres / emit 120.9 KB (0%)
mongo / no-emit 76.92 KB (0%)
mongo / emit 71.01 KB (0%)
cf-worker / no-emit 181.08 KB (0%)
cf-worker / emit 146.05 KB (0%)

@pkg-pr-new

pkg-pr-new Bot commented Jun 15, 2026

Copy link
Copy Markdown

Open in StackBlitz

@prisma-next/extension-author-tools

npm i https://pkg.pr.new/@prisma-next/extension-author-tools@828

@prisma-next/mongo-runtime

npm i https://pkg.pr.new/@prisma-next/mongo-runtime@828

@prisma-next/family-mongo

npm i https://pkg.pr.new/@prisma-next/family-mongo@828

@prisma-next/sql-runtime

npm i https://pkg.pr.new/@prisma-next/sql-runtime@828

@prisma-next/family-sql

npm i https://pkg.pr.new/@prisma-next/family-sql@828

@prisma-next/extension-arktype-json

npm i https://pkg.pr.new/@prisma-next/extension-arktype-json@828

@prisma-next/middleware-cache

npm i https://pkg.pr.new/@prisma-next/middleware-cache@828

@prisma-next/mongo

npm i https://pkg.pr.new/@prisma-next/mongo@828

@prisma-next/extension-paradedb

npm i https://pkg.pr.new/@prisma-next/extension-paradedb@828

@prisma-next/extension-pgvector

npm i https://pkg.pr.new/@prisma-next/extension-pgvector@828

@prisma-next/extension-postgis

npm i https://pkg.pr.new/@prisma-next/extension-postgis@828

@prisma-next/postgres

npm i https://pkg.pr.new/@prisma-next/postgres@828

@prisma-next/sql-orm-client

npm i https://pkg.pr.new/@prisma-next/sql-orm-client@828

@prisma-next/sqlite

npm i https://pkg.pr.new/@prisma-next/sqlite@828

@prisma-next/extension-supabase

npm i https://pkg.pr.new/@prisma-next/extension-supabase@828

@prisma-next/target-mongo

npm i https://pkg.pr.new/@prisma-next/target-mongo@828

@prisma-next/adapter-mongo

npm i https://pkg.pr.new/@prisma-next/adapter-mongo@828

@prisma-next/driver-mongo

npm i https://pkg.pr.new/@prisma-next/driver-mongo@828

@prisma-next/contract

npm i https://pkg.pr.new/@prisma-next/contract@828

@prisma-next/utils

npm i https://pkg.pr.new/@prisma-next/utils@828

@prisma-next/config

npm i https://pkg.pr.new/@prisma-next/config@828

@prisma-next/errors

npm i https://pkg.pr.new/@prisma-next/errors@828

@prisma-next/framework-components

npm i https://pkg.pr.new/@prisma-next/framework-components@828

@prisma-next/operations

npm i https://pkg.pr.new/@prisma-next/operations@828

@prisma-next/ts-render

npm i https://pkg.pr.new/@prisma-next/ts-render@828

@prisma-next/contract-authoring

npm i https://pkg.pr.new/@prisma-next/contract-authoring@828

@prisma-next/ids

npm i https://pkg.pr.new/@prisma-next/ids@828

@prisma-next/psl-parser

npm i https://pkg.pr.new/@prisma-next/psl-parser@828

@prisma-next/psl-printer

npm i https://pkg.pr.new/@prisma-next/psl-printer@828

@prisma-next/cli

npm i https://pkg.pr.new/@prisma-next/cli@828

@prisma-next/cli-telemetry

npm i https://pkg.pr.new/@prisma-next/cli-telemetry@828

@prisma-next/emitter

npm i https://pkg.pr.new/@prisma-next/emitter@828

@prisma-next/migration-tools

npm i https://pkg.pr.new/@prisma-next/migration-tools@828

prisma-next

npm i https://pkg.pr.new/prisma-next@828

@prisma-next/vite-plugin-contract-emit

npm i https://pkg.pr.new/@prisma-next/vite-plugin-contract-emit@828

@prisma-next/mongo-codec

npm i https://pkg.pr.new/@prisma-next/mongo-codec@828

@prisma-next/mongo-contract

npm i https://pkg.pr.new/@prisma-next/mongo-contract@828

@prisma-next/mongo-value

npm i https://pkg.pr.new/@prisma-next/mongo-value@828

@prisma-next/mongo-contract-psl

npm i https://pkg.pr.new/@prisma-next/mongo-contract-psl@828

@prisma-next/mongo-contract-ts

npm i https://pkg.pr.new/@prisma-next/mongo-contract-ts@828

@prisma-next/mongo-emitter

npm i https://pkg.pr.new/@prisma-next/mongo-emitter@828

@prisma-next/mongo-schema-ir

npm i https://pkg.pr.new/@prisma-next/mongo-schema-ir@828

@prisma-next/mongo-query-ast

npm i https://pkg.pr.new/@prisma-next/mongo-query-ast@828

@prisma-next/mongo-orm

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

@prisma-next/mongo-query-builder

npm i https://pkg.pr.new/@prisma-next/mongo-query-builder@828

@prisma-next/mongo-lowering

npm i https://pkg.pr.new/@prisma-next/mongo-lowering@828

@prisma-next/mongo-wire

npm i https://pkg.pr.new/@prisma-next/mongo-wire@828

@prisma-next/sql-contract

npm i https://pkg.pr.new/@prisma-next/sql-contract@828

@prisma-next/sql-errors

npm i https://pkg.pr.new/@prisma-next/sql-errors@828

@prisma-next/sql-operations

npm i https://pkg.pr.new/@prisma-next/sql-operations@828

@prisma-next/sql-schema-ir

npm i https://pkg.pr.new/@prisma-next/sql-schema-ir@828

@prisma-next/sql-contract-psl

npm i https://pkg.pr.new/@prisma-next/sql-contract-psl@828

@prisma-next/sql-contract-ts

npm i https://pkg.pr.new/@prisma-next/sql-contract-ts@828

@prisma-next/sql-contract-emitter

npm i https://pkg.pr.new/@prisma-next/sql-contract-emitter@828

@prisma-next/sql-lane-query-builder

npm i https://pkg.pr.new/@prisma-next/sql-lane-query-builder@828

@prisma-next/sql-relational-core

npm i https://pkg.pr.new/@prisma-next/sql-relational-core@828

@prisma-next/sql-builder

npm i https://pkg.pr.new/@prisma-next/sql-builder@828

@prisma-next/target-postgres

npm i https://pkg.pr.new/@prisma-next/target-postgres@828

@prisma-next/target-sqlite

npm i https://pkg.pr.new/@prisma-next/target-sqlite@828

@prisma-next/adapter-postgres

npm i https://pkg.pr.new/@prisma-next/adapter-postgres@828

@prisma-next/adapter-sqlite

npm i https://pkg.pr.new/@prisma-next/adapter-sqlite@828

@prisma-next/driver-postgres

npm i https://pkg.pr.new/@prisma-next/driver-postgres@828

@prisma-next/driver-sqlite

npm i https://pkg.pr.new/@prisma-next/driver-sqlite@828

commit: 2d9237f

@wmadden
wmadden enabled auto-merge June 15, 2026 12:46
@wmadden
wmadden added this pull request to the merge queue Jun 15, 2026
Merged via the queue into main with commit df80257 Jun 15, 2026
20 checks passed
@wmadden
wmadden deleted the fix/upgrade-coverage-supabase-jose branch June 15, 2026 13:01
paulwer pushed a commit to paulwer/prisma-next that referenced this pull request Jun 21, 2026
… --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]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants