Repository navigation
fix(ci): exclude pre-release tags from check:upgrade-coverage default --prev - #847
Conversation
|
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 (2)
🚧 Files skipped from review as they are similar to previous changes (2)
📝 WalkthroughWalkthroughIn ChangesStable tag resolution for publish mode --prev
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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/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 `pnpm check:upgrade-coverage --mode publish` defaults `--prev` to `git describe --abbrev=0 --tags --match 'v[0-9]*'`. That match greedily includes pre-release tags (`v*-dev.N`), which sit on intermediate commits and shrink the cumulative diff to whatever landed between the dev tag and HEAD — typically just the release-bump commit, which rewrites every workspace `package.json` but touches no `instructions.md`. The per-pr-declaration check then fires on every `examples/*/package.json` and `packages/3-extensions/*/package.json` the bump rewrites, even when the 0.x.y cycle recorded its substrate changes correctly along the way. This is what blocked the v0.14.0 publish — the bump commit on main resolved default `--prev` to `v0.13.0-dev.40` (the parent commit's dev tag), so the diff was the bump alone and the gate rejected it. Add `--exclude '*-*'` to the describe call so default `--prev` resolves to the last stable `v*` tag — `v0.13.0` in this case — and the cumulative diff covers the whole release cycle, where the `instructions.md` updates actually live. A regression test models the failure shape: stable tag, mid-cycle substrate + instructions commit with a dev tag on top, release-bump commit at HEAD. Pre-fix it reports the same per-pr-declaration violations; post-fix it passes. Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
d108086 to
2b4a881
Compare
Main shipped the 0.14.0 publish bump (#843) and several follow-ups (TML-2916 #838, TML-2503 #839, TML-2787 #683, TML-2893 #849, ci-fix #847) while slice 1 was in review. Merge to pick them up. Resolution: - `skills/extension-author/.../0.13-to-0.14/instructions.md` — union of the slice's TML-2919 entry and main's TML-2916 entry as two distinct HTML-comment blocks, matching the file's per-ticket convention. Per the skill spec's rebase scenario (lines 122-130): existing entries in the just-shipped 0.13-to-0.14 directory may stay in place; we do not relocate the TML-2919 entry to 0.14-to-0.15. - Lockfile + example fixtures + apps + all other non-slice files — take main's side cleanly (the branch hadn't touched them; auto-merge resolved to main's content). `pnpm install` confirms the lockfile is consistent. - No `src/` conflicts — only the one instructions.md conflict above. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]> Signed-off-by: willbot <[email protected]> Signed-off-by: Will Madden <[email protected]>
Linked issue
n/a — small CI fix. Unblocks the v0.14.0 publish, which failed at the
Check upgrade-instruction coveragestep in run 27631591957.At a glance
In publish mode, default
--prevnow resolves to the last stablev*tag — pre-release tags likev0.13.0-dev.40are skipped.Decision
scripts/check-upgrade-coverage.mjsin publish mode resolves default--prevto the most recentv[0-9]*tag and diffsprev..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--prevonly picks stable tags.How the failure happened
Publish to npmran on69b6e74(the "Bump to version 0.14.0" merge).resolveDefaultPrevrangit describe --abbrev=0 --tags --match 'v[0-9]*'fromHEAD, which returnedv0.13.0-dev.40— the dev tag on the bump's parent commit (088813b98).git diff v0.13.0-dev.40..69b6e74is just the bump commit, which rewrites every workspacepackage.json(lockstep version + dep-spec updates) and touches noinstructions.md.examples/*/package.jsonandpackages/3-extensions/*/package.jsonappear in the substrate diff; the matchinginstructions.mdfiles 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--prevresolves tov0.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 aninstructions.mdupdate.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.prisma/prisma-nextat commit69b6e74:pnpm check:upgrade-coverage --mode publishexits1with the production script, exits0with the patched script.Skill update
n/a — internal CI script only.
Checklist
git commit -s) per the DCO. The DCO status check will block merge if any commit is missing aSigned-off-by:trailer.TML-NNNN: <sentence-case title>form — n/a, this is a non-ticket CI fix and follows the prevailingfix(ci): …convention used by recent neighbours (e.g. #828).Summary by CodeRabbit
Release Notes
Bug Fixes
--prevselection in publish mode to use the latest stablev[0-9]*tag, excluding pre-release tags.--prevhelp text to reflect that pre-release tags are excluded.Tests