Skip to content

meta: Merge release/cli/0.48.0 and bump to 0.49.0-dev.0 - #2028

Merged
BYK merged 3 commits into
mainfrom
byk/release/merge-cli-0.48.0
Nov 5, 2026
Merged

BYK merged 3 commits into
mainfrom
byk/release/merge-cli-0.48.0

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

This finishes the CLI 0.48.0 release. Every publish target shipped, but Craft couldn't merge the release branch back into main (job log), so the post-release bump never ran either.

Why the merge failed: release: 0.48.0 (283b555) changed version: 0.48.0-dev.0 to version: 0.48.0 in references/init.md. #1856 changed the description: line right below it on main. The fix in Craft is getsentry/craft#964.

This PR

  1. Merges release/cli/0.48.0 into main. That brings in the 0.48.0 CHANGELOG.md section and the release versions. For init.md, it keeps the new description from main together with version: 0.48.0. I resolved the conflict with the resolver from fix(publish): Resolve merge conflicts caused only by the version bump craft#964.
  2. Bumps to the next development version the same way Craft's postReleaseBump does: the npm bump plus versioning.files from .craft.yml.
    • packages/cli/package.json and packages/mcp-server/package.json → 0.49.0-dev.0
    • Skill frontmatter (SKILL.md, references/*.md) → 0.49.0-dev.0
    • .claude-plugin/plugin.json → 0.49.0 (stripPrerelease)

Squash merging is fine: the cli@0.48.0 tag already points at the release commit. Once this lands, release/cli/0.48.0 can be deleted.

#skip-changelog

via @BYK.

--

View Session in Sentry

BYK and others added 3 commits November 5, 2026 19:52
…0.48.0

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>

# Conflicts:
#	packages/cli/plugins/sentry-cli/skills/sentry-cli/references/init.md
#skip-changelog

Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
@vercel

vercel Bot commented Nov 5, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Nov 5, 2026 8:37pm UTC

Request Review

@github-actions github-actions Bot added the risk: low PR risk score: low label Nov 5, 2026
@BYK
BYK merged commit 3ac5824 into main Nov 5, 2026
22 checks passed
@BYK
BYK deleted the byk/release/merge-cli-0.48.0 branch November 5, 2026 20:52
BYK added a commit to getsentry/craft that referenced this pull request Nov 5, 2026
)

Follow-up to #964. When Craft can't merge the release branch back, it
now fails the publish instead of logging a warning. That way the failure
shows up in getsentry/publish and can be retried or recovered from
there.

The toolkit `cli/0.48.0` publish ([job
log](https://github.com/getsentry/publish/actions/runs/42102069927/job/127507152523))
is the motivating case. Every target shipped, but the merge hit a
conflict. Craft warned and reported success, so the run was green while
the release branch stayed unmerged and `postReleaseBump` was skipped.
Someone had to read the logs to notice. getsentry/toolkit#2028 cleans up
that release.

**What changed**

- When `handleReleaseBranch` fails with a merge conflict, a push
failure, or any other error, `craft publish` now throws
`ReleaseBranchMergeError`. The error says every target published and
lists the conflicting files and the diff. It also says how to recover:
- merge the target branch into the release branch and push it, so the
retry merges the new head, or
- merge the release branch into the target branch yourself with a merge
commit (not a squash), so the retry is a no-op merge plus cleanup.
- The publish state file is kept, so the retry skips the published
targets and only merges. In getsentry/publish, the issue checkboxes
already do the same, so re-adding `accepted` retries only the merge.
- The post-release bump and the post-release command are skipped. They
run on the successful retry.
- `BranchCleanupError` stays a warning, because the merge was already
pushed and a retry can't help.
- Sentry reporting now goes through the global error handler, instead of
a `captureException` call in the merge path.

This reverses the earlier decision that the merge is non-blocking
housekeeping. I updated `.lore.md` and the release-workflow docs to
match.

**Verification**

- New `publishMain` tests: a merge conflict and a push failure both
reject with `ReleaseBranchMergeError` and keep the state file, and a
failed merge skips the bump. The existing cleanup-failure test still
passes as a warning.
- `pnpm lint` and `tsc` pass, and the `src/commands` and resolver tests
pass (91 tests). In the full `pnpm test`, the only failures are the same
e2e failures (24 in `prepare-dry-run.e2e` and one other file) that I
also see on `master` in my sandbox.

**Not changed:** the getsentry/publish failure comment still says "Bad
branch? You can delete with ease and start over". For a merge failure
that's the wrong advice: deleting the branch makes the retry fail with
"Could not find the release branch".

<!-- junior-request-attribution:start -->
via @BYK.
<!-- junior-request-attribution:end -->

<!-- junior-session-footer:start -->
<!-- junior-conversation-id:local%3Aweb%3A2b52a6f3270e30b7c2e844d3 -->

--

[View Session in
Sentry](https://sentry.sentry.io/explore/conversations/local%3Aweb%3A2b52a6f3270e30b7c2e844d3/?project=4510944073809921)

<!-- junior-session-footer:end -->

Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
Co-authored-by: BYK <126780+BYK@users.noreply.github.com>

This branch was previously deployed

1 inactive deployment
Preview — 5b1a4bd3 Deployed Nov 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant