Skip to content

chore: release schema v2.0.0-beta.4 - #2989

Merged
benbrandt merged 1 commit into
mainfrom
release-plz-schema-v2.0.0-beta.4
Nov 23, 2026
Merged

benbrandt merged 1 commit into
mainfrom
release-plz-schema-v2.0.0-beta.4

Conversation

@benbrandt

Copy link
Copy Markdown
Member

Summary

Releases schema-v2.0.0-beta.4. The last release (#2979) published the crate (1.22.0) and the v1 schema (1.35.0), but skipped the v2 schema. Two commits changed schema/v2 since schema-v2.0.0-beta.3 and are not in any v2 release:

This PR sets the v2 package to 2.0.0-beta.4, updates its Cargo.lock entry, and adds the changelog section for those two commits. The schema files themselves are already on main.

Why release-plz skipped v2

  • For a git_only package, release-plz 0.4.3 finds the latest release with a pattern that only matches X.Y.Z. A pre-release tag such as schema-v2.0.0-beta.3 never matches.
  • Both schema packages use the tag name schema-v{{ version }}, so the v2 package matched the latest v1 tag instead. The release-pr log for chore: release #2979 says: Latest release of package agent-client-protocol-json-schema-v2: tag schema-v1.34.1 (version 1.34.1).
  • It read the v2 version at that commit (2.0.0-beta.2), saw 2.0.0-beta.3 on main, logged local version (2.0.0-beta.3) > registry version (2.0.0-beta.2). Only changelog will be updated., and did not bump.

Earlier v2 releases worked because each one shared a commit with a v1 schema release. 2.0.0-beta.3 was the first v2-only release.

What merging does

The branch name starts with release-plz- on purpose. The release job only releases a merge whose PR branch has that prefix. On merge it should:

  • skip the crate and the v1 schema, whose tags already exist
  • tag schema-v2.0.0-beta.4 and create the GitHub pre-release
  • trigger "Upload Schema", which attaches schema/v2/*.json

Merge this before anything else lands on main. If release-plz has a new release to propose while this PR is open, it closes PRs on its branch prefix that carry someone else's commits.

Not fixed here

The cause is still there. After this release, the v2 package will not bump on its own until the next v1 schema release, and a v2 change merged before then is skipped the same way. Once v2 reaches a plain 2.0.0, the v1 package will match the v2 tag instead. That needs a separate change: an upstream fix in release-plz, a CI check on release PRs, or a release workflow of its own for v2.

@benbrandt
benbrandt requested a review from a team as a code owner November 23, 2026 22:07
@benbrandt
benbrandt enabled auto-merge (squash) November 23, 2026 22:07
@benbrandt
benbrandt merged commit 840484f into main Nov 23, 2026
15 checks passed
@benbrandt
benbrandt deleted the release-plz-schema-v2.0.0-beta.4 branch November 23, 2026 22:10
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.

1 participant