Repository navigation
Version Packages - #103
Merged
Merged
Version Packages#103
Conversation
uptide-release
Bot
force-pushed
the
changeset-release/main
branch
5 times, most recently
from
October 13, 2026 18:16
3e2eee6 to
d1d1a2b
Compare
uptide-release
Bot
force-pushed
the
changeset-release/main
branch
from
October 13, 2026 18:31
d1d1a2b to
10df930
Compare
7 tasks done
lucasbraum
added a commit
that referenced
this pull request
Oct 13, 2026
…109) UPT-19 ## What and why uptide-test/saas-starter-kit PR #3 bumped `next` 15.5.14 → 16.4.0 with no pack and no migration. The type-check passed, so it opened as if verified. Next 16 changes the build config, removes `next lint` and enforces async request APIs, and next-i18next 15 does not support it. Product rule: Uptide never opens a PR for an upgrade it could not analyze. The policy is in one place, `fix/no-pack.ts`, and every path reads it: 1. **A major upgrade with no verified pack never becomes a PR.** - `publicationBlockers`, the gate behind `fix --pr`, `uptide pr` and the Action, refuses it. - `fix --pr` refuses before migrating anything. That includes the CLI's clone-then-publish path (new `forPublication` option), so no agent budget is spent. - The Action skips it before running `fix` and reports `status: "skipped"`, `analysis: "none"`, `error: "no pack yet"`, whatever the slots or budget. A post-run guard covers the case where discovery and the engine disagree. - "Major" means a new major, or a new minor below 1.0.0 (0.4 → 0.5), since semver treats those as breaking. 2. **A minor or patch with no pack needs the repo's own build and tests.** - `fix` now runs the repo's `build` script after the bump for no-pack runs: the workspace's script, else the root's. It is recorded in `verification.build`. - A failing build fails verification. - With no build script, no tests that ran, or tests that already failed before the bump, no PR opens and the reason says which. The Action reports this as `skipped` / `analysis: "none"`. 3. **The PR body always says what verified it.** A new **Verified by** row covers the pack, type-check, build and tests. - A no-pack run shows each check as passed, failed or not run, e.g. `⚠️ no migration pack: nothing analyzed what next 16.4.0 changes · ✅ type-check ·⚠️ build not run: no build script ·⚠️ tests not run: none ran`. - A pack-covered run shows `build not required (pack-verified migration)` with no warning. The warning is only for no-pack runs, where the build is required. - The build command and its result go in the verification details. - A no-pack run is never Low risk any more. Before, a bump-only run with green tests got "types and tests verified". - "Ready for review" now requires that the run is publishable. ## How it was verified - PR #3 reproduced (major, no pack, clean type-check), each asserting that no PR opens: - `action/run.test.ts`: no `fix` call, nothing published, the row is skipped / `none` / `no pack yet`, and the summary renders it. Also covers the post-run guard. - `fix/generic.test.ts`: `--pr` refuses before any change. Without `--pr`, verification passes but `publicationBlockers` and `publishVerified` refuse. - `fix/isolate.test.ts`: the CLI `--pr` path refuses before the agent is called. This test fails without the `forPublication` pass-through. - Minor with no pack: opens when build and tests pass, is refused with no build script or no tests, and fails when the build fails (`generic.test.ts`, `action/run.test.ts`). - `no-pack.test.ts` and `build.test.ts` cover the new modules. - Report snapshots and expectations are updated for the new row, the pack-covered build wording, and the risk change. - Merged with `main` (#103, #107, #108). The conflicts in `publish.ts` and `run-report/build.ts` were independent additions, and both sides are kept. - `pnpm lint && pnpm typecheck && pnpm test` pass after the merge: core 1410, CLI 434. The one lint warning (an unused import in `report.test.ts`) is already on `main`. ## Checklist - [x] Tests for the change (a bug fix starts with a failing test) - [x] `pnpm lint && pnpm typecheck && pnpm test` pass - [x] README and docs updated if behavior changed (`docs/ci.md`, `docs/commands/fix.md`, `docs/concepts.md`, `docs/faq.md`) - [x] Changeset added if a user would notice - [x] No new dependency, or it was agreed in an issue - [x] No private code, names or paths in fixtures, tests or docs - [x] The rules in CONTRIBUTING.md ("Rules that do not bend") still hold 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01BVrNCZBUt1KvChzeqDo7dd --------- Signed-off-by: Claude <[email protected]> Co-authored-by: Claude <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
Releases
[email protected]
Minor Changes
#108
38dcd4bThanks @lucasbraum! - The Uptide Action now requires the Anthropic API key. Withoutanthropic-api-key(or with itempty), in any mode, it stops before doing anything: the job summary says to add the
repository secret
ANTHROPIC_API_KEY(Settings → Secrets and variables → Actions), the runreport has no upgrades and an error starting with
LLM_KEY_MISSING, and the job fails.uptide.run/v1gainsllmKey(presentormissing; never the key).uptide initno longerwrites
llm.enabled, and refuses an existinguptide.ymlthat sets it tofalse, which theAction rejects. The CLI on your own machine still runs without a key.
#101
8452329Thanks @lucasbraum! -list,check,fix,planand the Action never target a release younger than therepository's release-age policy: npm
min-release-age(.npmrc), pnpmminimumReleaseAgewith
minimumReleaseAgeExclude(pnpm-workspace.yaml), or YarnnpmMinimalAgeGatewithnpmPreapprovedPackages(.yarnrc.yml). When none is set, the default of the pinned packagemanager version applies (pnpm 11 and 12, Yarn 4.15 and later: one day), labelled as such.
When the newest release is too young, the newest one old enough is the target and the output
says why (
4.6.7 is 2 days old; your policy is 7 days (min-release-age in .npmrc); targeting 4.6.5). When nothing newer than the installed version qualifies, the package is skipped withthat reason, shown as
status: skippedinuptide.run/v1and in the HTML list report.Companions and peers follow the same policy.
minReleaseAgeDaysinuptide.ymlapplies whenthe repository sets no policy itself. See
docs/config.md#release-age.Patch Changes
#107
008f84aThanks @lucasbraum! - The Action's commits are authored by the Uptide App's own bot account,<app slug>[bot] <<bot user id>+<app slug>[bot]@users.noreply.github.com>, resolved with theinstallation token, so GitHub links them to the App. When it cannot be resolved they keep
uptide[bot] <[email protected]>and the job log warns.#107
008f84aThanks @lucasbraum! -uptide.run/v1gainsverification.baselineHealth: the repository before the upgrade incounts only (type errors, failing test runs, and missing-module errors under its own paths and
in packages), so the dashboard can tell a run that could only compare from one that proved.
No module or alias name leaves the fix report. Optional; absent in older reports.
#107
008f84aThanks @lucasbraum! -checkanalyzes a package's companions at the versions its upgrade moves them to, even whennothing imports them or they only carry types:
check reactin a Next app used to reportreact-domand@types/reacton their own at their installed versions, whilereactmovedto 19. They are now members of
react's group, linked into the compile at 19, and theAction's job summary shows each one moving with
react.#102
78f1f7aThanks @lucasbraum! -uptide initwrites a workflow that runs the released Uptide Action,uptide-dev/uptide@2045c7dc0fcb7cd86522595de06308f154b1d8bf # v0.9.0, and no longer notes that the action is not released yet.#100
53f9f7dThanks @lucasbraum! -fixreads pnpm lockfiles that install a package once per version of the upgraded one (x@1([email protected])next tox@1([email protected])) instead of failing with "Map keys must be unique". Variants that differ only by that version are compared as one entry; variants that differ in anything else are still checked one by one.#107
008f84aThanks @lucasbraum! - When Uptide refuses to publish a migration that did not verify, it words the reason as therun's verdict does:
1 type error introduced by the upgrade, 2 pre-existinginstead of1 new type error, and a test run that was already failing before the upgrade is named assuch instead of as a failure of the migration.
#104
8fd120eThanks @lucasbraum! - Reports no longer show a breaking count of 0 for a package without a migration pack: theterminal, the HTML report and the Action's job summary say
not analyzed: no pack yetinstead, and
uptide.run/v1gainsanalysis(packornone, absent when nothing wasanalyzed). A companion that
checkreports at its installed version (react-domor@types/reactwithreact) shows the versions it moves to andmoves with react, carried asmovesWith, instead ofup to date; no upgrade kind is printed when nothing moves. The jobsummary lists breaking sites per package by path and line, and has no breaking-sites section
when there are none. The generated workflow runs on
ubuntu-24.04instead ofubuntu-latest.#107
008f84aThanks @lucasbraum! - Reports say what the upgrade broke and what the migration left.uptide.run/v1gainsverification.typecheck.afterUpgrade, the type errors right after the version bump and beforeany fix, next to
beforeandafter(optional; absent in older reports). The job summaryprints
types 0 → 4 with the upgrade → 0 after Uptide, and the pull request body and theterminal say
the upgrade broke 4 · Uptide left 0.