Skip to content

Release with verwalter instead of changesets/action - #1076

Open
lukasIO wants to merge 4 commits into
mainfrom
claude/verwalter-c221d1
Open

lukasIO wants to merge 4 commits into
mainfrom
claude/verwalter-c221d1

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Today a release needs a pushed tag or the changesets/action flow, plus a PR afterwards to move VERSION_NAME back to -SNAPSHOT. The old flow tags first and tests later. At v2.30.0 the tests failed after the tag. The docs were already uploaded, and livekit/components-android was notified of a version that Maven Central did not have. A manual publish the next day built c65735b, not the tagged commit 748d7a0. This PR moves the release to verwalter v0.32.0-rc.1, which other LiveKit SDKs already use.

Change

  • verwalter.toml describes one package, client-sdk-android, so the 11 pending changesets still apply. The version is in gradle.properties and README.md. The tag stays v{version}.
  • release-pr.yml keeps one release PR open while changesets are pending. Each push to main regenerates it.
  • changeset-check.yml fails a PR without a changeset. The internal label skips the check.
  • gradle.properties now holds the last released version. android.yml publishes the next patch version as -SNAPSHOT through -PVERSION_NAME, so snapshots continue without a SNAPSHOT PR.
  • Removed: package.json, pnpm-lock.yaml, .changeset/config.json, changesets.yml, the manual release.yml, update_snapshot_pr.yml, the bump scripts in ci/, and release-instructions.md. RELEASING.md replaces the old instructions. Pending .changeset/*.md files stay.

release.yml runs these jobs in order. Each job uses the merge commit, or the ref input on a run by hand.

  1. gate runs verwalter gate. It allows a run by hand, or a merged PR from release/main by verwalter-release[bot] with the verwalter marker. Any other closed PR skips every job.
  2. build builds and runs the tests. If it fails, no tag exists.
  3. release tags and creates a draft GitHub release.
  4. publish uploads to Maven Central and makes the release public. It skips a version that Maven Central already has. It is in the concurrency group maven-central-publish, so two runs never upload at the same time.
  5. verify runs verwalter status --check --wait 90m. If the tag, the public release or the version on Maven Central is missing after 90 minutes, it fails.
  6. notify runs only after verify passes, and only for a final release on main. It notifies livekit/components-android and uploads the docs. Its failure does not change the result of the release jobs.

The workflow has no branches filter. The gate job decides which PRs release.

Failure case

The publish can fail after the tag exists. The tag and the draft GitHub release stay, and a re-run of the publish job finishes the release. The existence check reads repo1.maven.org, which can show a new version 30 minutes late. A re-run during that time uploads the same version again, and Sonatype rejects it. RELEASING.md says to wait.

Verified

  • verwalter plan (0.32.0-rc.1): 1 package, 11 pending changesets, client-sdk-android 2.30.0 -> 2.31.0 minor.
  • verwalter status --check --wait 1m: exits 0 for 2.30.0 tag:both release:published registry:yes.
  • verwalter gate with sample events: yes for a merged release/main PR by verwalter-release[bot], no for the same PR by another author, yes for a run by hand.
  • verwalter pr --dry-run: opens release/main with the title release: client-sdk-android 2.31.0.
  • actionlint passes on every workflow.
  • ci/increment_semver.sh -p 2.30.0 gives 2.30.1, the snapshot base.

For reviewers

  • workflow_dispatch on release.yml lets anyone with write access publish from any branch, because gate allows every run by hand. An environment with required reviewers on the publish job limits this, but it then asks for approval on every release. Do we want that?
  • The pin is a release candidate. After v0.32.0 is out, I can move the pin to it.

Not done yet

  • No changed workflow ran on GitHub yet. The first real check is the release PR after this merges.
  • The -PVERSION_NAME override in gradle is not tested locally.
  • The internal label does not exist yet. It must be created, and this PR needs it.
  • If the changeset-bot GitHub App is installed, remove it. Delete CHANGESET_GH_TOKEN after the first release.

🤖 Generated with Claude Code

Replace the changesets/action release flow with verwalter. The release
PR is regenerated from main on each push. Merging it tags, creates the
GitHub release and publishes to Maven Central. gradle.properties now
holds the last released version, and android.yml publishes the next
patch version as a SNAPSHOT through -PVERSION_NAME.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasIO lukasIO self-assigned this Nov 23, 2026
@changeset-bot

changeset-bot Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: fe70e6d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions

Copy link
Copy Markdown
Contributor

Changeset missing

This PR changes versioned packages without a changeset for:

  • client-sdk-android

Create a changeset for the missing packages (prefilled with patch; edit the bump levels as needed), or run verwalter changeset --level <patch|minor|major> on the branch.

If this change needs no release, add the internal label.

A failed build or test now stops the run before a tag or GitHub release
exists. Before, the tag came first, and a failed test left a tag that
needed an abandon and a new version.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

Diffuse output:

OLD: diffuse-source-file
NEW: livekit-android-sdk-release.aar

 AAR      │ old      │ new      │ diff 
──────────┼──────────┼──────────┼──────
      jar │  3.1 MiB │  3.1 MiB │  0 B 
 manifest │  1.5 KiB │  1.5 KiB │  0 B 
 lint-jar │ 12.7 KiB │ 12.7 KiB │  0 B 
    other │  2.4 KiB │  2.4 KiB │  0 B 
──────────┼──────────┼──────────┼──────
    total │  3.2 MiB │  3.2 MiB │  0 B 

 JAR     │ old   │ new   │ diff      
─────────┼───────┼───────┼───────────
 classes │  1807 │  1807 │ 0 (+0 -0) 
 methods │ 22718 │ 22718 │ 0 (+0 -0) 
  fields │  6034 │  6034 │ 0 (+0 -0)
AAR
 size │ diff │ path    
──────┼──────┼─────────
  0 B │  0 B │ (total)

lukasIO and others added 2 commits November 23, 2026 11:13
- verify waits until Maven Central has the version, then runs
  verwalter status --check, so a skipped or silent failure ends red.
- Docs upload and the components-android dispatch move to a notify job
  after verify. They read the version and the prerelease flag from the
  releases output, and run only for a final release on main.
- The publish job has a concurrency group, so two runs never upload to
  Sonatype at the same time.
- The pull_request trigger has no branches filter. The condition on the
  build job decides which PRs release.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pin the action to v0.32.0-rc.1. The release workflow uses the new
`gate` job in place of the long `if:` condition, and `verify` uses
`status --check --wait 90m` in place of the curl loop on Maven Central.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasIO
lukasIO marked this pull request as ready for review November 23, 2026 11:45

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Devin Review found 1 potential issue.

3 flags not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)

Devin Review

# release jobs above stay green.
notify:
needs: [release, verify]
if: contains(fromJson(needs.release.outputs.releases || '[]').*.package, 'client-sdk-android')

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Manual recovery skips release notifications

When a maintainer reruns a public main release by tag, notify skips the docs upload and Components Android dispatch. verwalter release returns an empty list for public releases, even when verification passes and those steps never ran.

Learn more

The recovery instructions tell maintainers to dispatch the fixed workflow with the existing release tag. On that run, the release job gets an empty list from the pinned action because the tag and public GitHub release already exist. The publish job still runs for a manual dispatch and skips uploading an existing Maven version. A successful verification cannot supply the missing release metadata, so the downstream job is skipped.

Example: The 2.31.0 release reaches Maven Central, but an error in the workflow prevents the docs upload. A maintainer fixes the workflow on main and dispatches it with ref=v2.31.0. Verification passes, but the docs upload does not run.

Recommended fix: Keep the release identity available for manual recovery when the selected tag already has a public release. For example, explicitly ask verwalter to report client-sdk-android for a manual dispatch from a verified existing release tag. Retain the verification and stable-main guards before either downstream step.

Devin Review


Was this helpful? React with 👍 or 👎 to provide feedback.

Comment thread README.md
// Snapshots of the latest development version are available at:
// implementation "io.livekit:livekit-android:2.30.1-SNAPSHOT"
// Snapshots of the latest development version are published as the next patch version:
// implementation "io.livekit:livekit-android:<next patch version>-SNAPSHOT"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this text that will stay or will get updated during the release process?

@davidliu davidliu left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than the issue devin flagged, LGTM

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