Skip to content

Release with verwalter instead of the bump script - #1230

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

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

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Releasing today takes several manual steps. A maintainer runs scripts/create_version.swift, opens and merges the version PR, then creates the GitHub release by hand. That release fires publish-podspec, publish-xcframework and publish-docs. None of these runs is checked against the others. The XCFramework build runs only after the tag exists. It failed on the release of 2.18.0 and of 2.15.2, and both times a manual run fixed it.

This PR merges after the next release. That release still uses the old script and empties .changes/, so this PR does not port the pending changes to changesets.

Change

verwalter 0.32.0-rc.1 keeps one release PR open from the changesets in .changeset/. Merging that PR runs release.yaml:

  1. A gate job decides whether the run releases. It accepts a run by hand, or a merged PR from release/main that verwalter-release[bot] opened, with the verwalter marker in its body.
  2. A test build of the XCFramework from the merge commit. A failed build stops the release before the tag.
  3. The tag <version>, without a v as before, and a public GitHub release from the changelog entry.
  4. publish-xcframework.yaml, publish-podspec.yaml and publish-docs.yaml, called as reusable workflows. The docs run only for a final version.
  5. verwalter status --check, which fails when the tag or the release is missing.

The three publish workflows now start from workflow_call instead of release: published. You can still run them by hand to repair a release. A release made with github.token fires no release event, so release.yaml calls them directly.

The release PR moves the version in .version, LiveKitClient.podspec, Sources/LiveKit/LiveKit.swift and README.md. changeset-check.yaml replaces the check-changes job in ci.yaml. RELEASING.md describes the release and the repair commands. scripts/create_version.swift is gone.

These things change for contributors and maintainers:

  • A PR adds .changeset/<name>.md, or gets the internal label. verwalter changeset --level patch writes the file.
  • The maintainer merges the release PR. The bump script and the hand-made GitHub release are gone.
  • The changelog entry is ## <version> with ### Minor Changes and ### Patch Changes, not Added, Changed and Fixed. verwalter has no setting for the old sections.
  • Each release builds the XCFramework twice: once before the tag, and once to publish it.
  • There are no release candidates. This repository has never released one. If one is needed, pre-release.yaml from the verwalter examples adds the path.

Failure case

A repair run publishes again to targets that can already have the version. Before this change, the XCFramework action refused a hosting release that existed, and pod repo push --no-overwrite refused a merged spec. A repair with release.yaml -f ref=<tag> then turned the parts that had worked red.

Now each publish workflow asks its target first:

  • publish-xcframework.yaml skips the build and the publish when the hosting repo has the release with LiveKit.xcframework.zip and an open or merged PR from release/<v>. A release without the zip fails and names the gh release delete command for a draft. A release whose only PR was closed without merge fails and asks to reopen that PR.
  • publish-podspec.yaml skips when livekit/podspecs has Specs/LiveKitClient/<v>, or an open PR from publish/LiveKitClient-<v>.

Each publish job in release.yaml has the concurrency group release-<version>-<target> with cancel-in-progress: false. A second run for the same version waits for the first.

If the XCFramework build fails before the tag, as it did for 2.18.0, there is no tag to repair from. Merge the fix to scripts/ with the internal label, then run release.yaml with ref=<merge commit>. RELEASING.md lists this path.

Verified

  • verwalter plan and verwalter status with 0.32.0-rc.1: client-sdk-swift 2.19.0 tag:both release:published, up to date, no changesets pending.
  • verwalter pr --dry-run --base HEAD with 0.31.0 and the earlier changesets: the release branch set 2.20.0 in all four version files and put the new entry on top of CHANGELOG.md.
  • verwalter gate with 0.32.0-rc.1, on six events:
    • Yes for a merged release PR from the App with the marker, and for a run by hand.
    • No for the same PR from a person, without the marker, closed without merge, and from another branch.
  • The XCFramework skip check, run against the live hosting repo:
    • For 2.19.0 with its merged PR, it skips.
    • For 2.20.0 with no release, it goes on to the publish.
    • For 2.19.0 with only a closed PR, it fails.
  • The podspec skip check, run against the live livekit/podspecs: for 2.19.0 it skips, and for 2.20.0 it goes on to the publish.
  • actionlint on every workflow: no findings except the existing custom xcode-27 runner label.

Not done yet

  • Rebase on main after the next release, so .changes/ and the version files match that release.
  • Move the verwalter pin from 0.32.0-rc.1 to 0.32.0 when that release is out.
  • No workflow in this PR ran on GitHub. The first proof is the first release PR and the run of release.yaml after its merge.
  • The concurrency groups and the skip for an open podspec PR are not proven. No open PR for LiveKitClient exists in livekit/podspecs now.
  • A run of release.yaml by hand can tag and publish from any branch, and it can upload the docs of main when nothing was released. gate answers yes for every run by hand.
  • A repair of an older final version uploads its docs over the docs of a newer one.
  • The GitHub release is public before the podspec and XCFramework PRs exist, and those PRs are merged by hand. This is accepted: the SwiftPM tag is public at the same moment, and the run cannot wait for the merges.
  • main requires no status check. A red cocoapods-lint on the release PR does not block its merge, and nothing builds the XCFramework before the merge.
  • verwalter counts an rc number from tags alone, so a merged rc that waits for its tag is counted again. This needs an issue on livekit/verwalter.
  • Confirm that the verwalter-release App is installed on this repository. Its secrets already reach the repository.
  • [check].api for the changeset check, possibly with the existing api-check.yaml.

🤖 Generated with Claude Code

Replace scripts/create_version.swift and the .changes/ files with
verwalter: verwalter.toml, changesets in .changeset/, a release PR kept
current from main, and release.yaml, which builds the XCFramework, tags,
creates the GitHub release, then calls the podspec, XCFramework and docs
publish workflows. The 21 pending .changes/ files are converted to 22
changesets.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasIO lukasIO self-assigned this Nov 23, 2026
@lukasIO lukasIO added the internal No changeset needed label Nov 23, 2026
lukasIO and others added 2 commits November 23, 2026 11:19
- publish-xcframework and publish-podspec ask their target first and
  skip a version that is there. A half-published XCFramework release
  fails with the command that clears it.
- release.yaml gives each publish job one concurrency group per
  version, so a second run for the same version waits.
- RELEASING.md names the repair for a build that failed before the tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Pin every verwalter step to v0.32.0-rc.1.
- release.yaml: a `gate` job decides whether the run releases, in place
  of the long `if:` on the build job.
- changeset-check.yaml: check out with fetch-depth 0, as the adopt guide
  now asks.
- RELEASING.md: the fix for a build that failed before the tag goes in
  with the `internal` label and no changeset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@lukasIO
lukasIO marked this pull request as ready for review November 23, 2026 11:55
Comment thread .changes/conform-bundled-codec-fmtp Outdated

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we should only merge this after the next release so that we don't have to do the porting of the changesets here.
It only has drawbacks.

devin-ai-integration[bot]

This comment was marked as resolved.

- Remove pre-release.yaml. The repository has never released an rc, and
  an rc had two open problems: verwalter numbers it from tags only, and
  the hosting draft is not marked as a pre-release.
- Restore .changes/ from main and remove the converted changesets. The
  next release runs with the old script, and this PR merges after it.
- publish-xcframework.yaml: a hosting PR closed without merge no longer
  counts as complete. Each incomplete case names its own repair.

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

@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 new potential issue.

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

Devin Review

fetch-depth: 0 # the commit that added a changeset gives its changelog line the PR and author
- uses: livekit/verwalter@9da894a1e4f7d298095a961be60c818afd47905b # v0.32.0-rc.1
with:
command: pr

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.

🔴 Pending SDK changes never trigger release

On a push to main, verwalter pr finds no changesets because all 23 pending entries remain in .changes/. It opens no release PR, and adding a new changeset later still leaves those entries out of the changelog.

Learn more

The release procedure uses .changeset/ Markdown files to supply both the bump level and changelog text. The pinned verwalter action only loads changesets from that directory. The repository has no files there; all 23 entries are in legacy .changes/ files, and the legacy reader is removed. When Release PRs runs on a push to main, verwalter reports nothing to release. A later valid changeset triggers a release, but verwalter still excludes the legacy entries from its version calculation and changelog.

Example: The minor entries for data-stream progress and cancellation do not trigger the intended bump from 2.19.0 to 2.20.0. If the next valid changeset is only a patch, those entries do not contribute to that release's version or notes.

Recommended fix: Convert every pending legacy entry into a .changeset/*.md file with the client-sdk-swift package, its original bump level, and its original summary. Split the two data-stream entries into separate files and include the Opus DTX fix. Delete the legacy files after conversion and verify that verwalter plan proposes 2.20.0 and the generated changelog includes all 23 entries.

Devin Review


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

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

we merge this after the next release so that there's no stale files in .changes.

PRs that are already open will have to adopt that change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal No changeset needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant