Skip to content

fix(fix): never open a pull request for an upgrade nothing analyzed - #109

Merged
lucasbraum merged 3 commits into
mainfrom
claude/vigilant-carson-6diodf
Oct 13, 2026
Merged

lucasbraum merged 3 commits into
mainfrom
claude/vigilant-carson-6diodf

Conversation

@lucasbraum

@lucasbraum lucasbraum commented Oct 13, 2026 •

Copy link
Copy Markdown
Collaborator

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 Phase 1: generic mode, support tiers, uptide plan #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 (Version Packages #103, Analyze companions at their lead's versions; type errors after the bump; the App's bot as commit author #107, feat(action): require the Anthropic API key #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

  • Tests for the change (a bug fix starts with a failing test)
  • pnpm lint && pnpm typecheck && pnpm test pass
  • README and docs updated if behavior changed (docs/ci.md, docs/commands/fix.md, docs/concepts.md, docs/faq.md)
  • Changeset added if a user would notice
  • No new dependency, or it was agreed in an issue
  • No private code, names or paths in fixtures, tests or docs
  • The rules in CONTRIBUTING.md ("Rules that do not bend") still hold

🤖 Generated with Claude Code

https://claude.ai/code/session_01BVrNCZBUt1KvChzeqDo7dd

A major upgrade no verified pack covers is never published: `uptide fix --pr`
refuses it before anything changes, `uptide pr` refuses a stored run of one,
and the Action reports it as skipped (analysis "none", reason "no pack yet")
without migrating it. A minor or patch without a pack is published only when
the repository's own build script and tests pass after the bump; `fix` now
runs the build for runs without a pack. Every PR description names what
verified it (pack, type-check, build, tests) and what did not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BVrNCZBUt1KvChzeqDo7dd
Signed-off-by: Claude <[email protected]>
The Verified by row reads "build not required (pack-verified migration)"
without a warning when a pack covered the upgrade. The warning stays for a
run without a pack, where the build is required and did not run.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01BVrNCZBUt1KvChzeqDo7dd
Signed-off-by: Claude <[email protected]>
…n-6diodf

Signed-off-by: Claude <[email protected]>

# Conflicts:
#	packages/core/src/fix/publish.ts
#	packages/core/src/run-report/build.ts
@lucasbraum
lucasbraum merged commit 7cf3bb8 into main Oct 13, 2026
10 checks passed
@lucasbraum
lucasbraum deleted the claude/vigilant-carson-6diodf branch October 13, 2026 19:15
@uptide-release uptide-release Bot mentioned this pull request Oct 13, 2026
lucasbraum pushed a commit that referenced this pull request Oct 13, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) 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](https://github.com/changesets/action#with-publishing). 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

- [#109](#109)
[`7cf3bb8`](7cf3bb8)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Uptide no longer
opens a pull request for an upgrade it could not analyze. A major
upgrade
that no verified pack covers is never published: `uptide fix --pr`
refuses it before anything
changes, `uptide pr` refuses a stored run of one, and the Action reports
it as `skipped` with
`analysis: "none"` and the reason `no pack yet` instead of migrating it.
A minor or patch
without a pack is published only when the repository's own `build`
script and tests pass
after the bump; `fix` now runs the build for runs without a pack and
records it in
`verification.build`. Every PR description has a **Verified by** row
naming what vouched for
it (the pack, the type-check, the build, the tests) and what did not
run.

### Patch Changes

- [#110](#110)
[`bb4c4d3`](bb4c4d3)
Thanks [@lucasbraum](https://github.com/lucasbraum)! - Nothing Uptide
waits on can hang a run any more. Every registry request has a deadline
that
covers its body, and a stalled one fails with `REGISTRY_TIMEOUT`
(answered from the cache
when an expired entry exists). Local git commands have one too, and so
does the shallow fetch
of a ground-truth repository. `uptide pack test` runs each pack in a
process of its own: one
that runs longer than `--pack-timeout` (minutes, default 20) is stopped
with everything it
  started and fails with the pack's name, and the other packs still run.

Co-authored-by: uptide-release[bot] <338861287+uptide-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants