Repository navigation
Conversation
Replace changesets.py, update_versions.py and the Package Release, Manual Version Bump, Changeset and Changeset Reminder workflows with verwalter.toml and the verwalter workflows. Keep the release gate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
👋 This PR has no changeset. If it should be released, add a markdown file under ---
"livekit-rtc": patch
---
Short description of the change, used in the release notes.
If this change doesn't need a release (docs, CI, tests), you can ignore this comment. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Use `verwalter gate` in place of the hand-written guard. A run by hand releases only a commit on main. - Dry-run the PyPI build and `twine check` on the release PR. - Drop the explicit dependency: 0.32 reads it from pyproject.toml and moves the requirement. - Remove the tag-triggered PyPI publish from build-*.yml. - Count only approvals of the head commit in the release gate. - Build the docs from the released commit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lukasIO
marked this pull request as ready for review
November 23, 2026 12:30
lukasIO
requested review from
changt,
cloudwebrtc and
xianshijing-lk
as code owners
November 23, 2026 12:30
- Resolve the release commit once in `gate` and check it out in every job, so a branch name in `ref` cannot move between jobs. - Reject an unknown `package` input. Upload and publish only releases whose tag exists and whose source matches the tag. Drop the fallback that uploaded every package. - Deploy docs only for the newest final tag of a package, built from that tag. - Document the extra livekit-api changeset for a major livekit-protocol rc. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Run twine with attestations as the publish command, so `publish` owns the order, blocks the dependents of a failed package, and refuses source that changed since the tag. Drop the upload filter and the pypa steps. - Check PyPI as a custom registry through the sdist, which twine uploads last, so a half upload stays a draft and a re-run completes it. - Deploy docs for each release that is public after the publish, also when another package failed. - TODOs for livekit/verwalter#137 and #138. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Back to the `pypi` registry: each package's `exists_url` now replaces
the built-in check, with `{version}` in PEP 440 form, so the sdist
check also works for an rc (livekit/verwalter#138).
- Pin v0.32.0-rc.2 and remove the #138 TODOs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Two scripts release the three packages today:
changesets.pyandupdate_versions.py. Five workflows around them hold about 1,100 lines of bash and Python. Each release opens a hand-built PR, tags it, and uploads to PyPI. Contributors must learn eight custom changeset types, such asnext-rcandpromote, and a second manual flow that conflicts with the first. This PR replaces both flows with verwalter. verwalter is the changeset release tool that other LiveKit repositories use.Change
verwalter.tomllistslivekit(inlivekit-rtc/),livekit-apiandlivekit-protocol. Each package keeps its tag format (rtc-v…,api-v…,protocol-v…) and reads its version fromversion.py.release-pr.ymlkeeps one release PR,release/main, current on each push tomain.pre-release.ymlopens an rc PR by hand. Both open the PR with theverwalter-releaseApp.package-release.ymlruns when the release PR merges. It keeps its old file name, so the PyPI trusted publishers need no change. Agatejob (verwalter gate) lets only a merged PR fromverwalter-release[bot]release. A run by hand must start frommain, release a commit onmain, and name a known package.gateresolves the commit once, and every later job checks out that commit. The workflow then builds every package, with the rtc wheels on 5 platforms. Next, it tags and creates draft GitHub releases.verwalter publishthen uploads each package withtwine upload --attestations --skip-existingand trusted publishing, dependencies first. A failed package blocks only its dependents, and a package whose source changed since its tag fails with the repair command. Each package'spublish.exists_urlinverwalter.tomlpoints at its sdist: a version counts as published when its sdist is on PyPI, and twine uploads the sdist last. So a half upload stays a draft, and a re-run uploads the missing files. Docs deploy for each release that is public after the publish, only for the newest final tag of a package, built from that tag.changeset-check.ymlreplaces the changeset validation and the reminder comment, and still skipsrenovate/*PRs. On the release PR, it builds each package that the merge releases and runstwine check, so a package that PyPI rejects fails before the merge.release-gate.ymlstays, because it is a required check and it enforces 2 approvals. It now counts only approvals of the head commit: a push tomainregenerates the release PR, and an approval of an older commit must not release the new content.build-rtc.yml,build-api.ymlandbuild-protocol.ymlno longer publish to PyPI on a tag push. That path failed in its last four runs, and with the App every release tag would start it.package-release.ymlis now the only path to PyPI.RELEASING.mddescribes the release and the repair commands..changeset/README.mddescribes the new levels.For contributors, these things change:
livekit, notlivekit-rtc.patch,minorandmajor. Pre-releases come frompre-release.yml.livekit-protocolrelease also releaseslivekit-apias a patch, and moves itslivekit-protocolrequirement. A major rc oflivekit-protocolneeds an extralivekit-apipatch changeset (pre-release: a major rc leaves out dependents whose requirement excludes it verwalter#137).CHANGELOG.md, starting with its next release.The workflows are pinned to verwalter v0.32.0-rc.2 by commit, like the other actions in this repository. 0.32 reads the dependency from
pyproject.toml(livekit/verwalter#128), writes an rc as2.1.0rc1inversion.py(livekit/verwalter#129), and uses the PEP 440 form in a PyPIexists_url(livekit/verwalter#138).Failure case
A wheel build can fail on one platform. All builds run before the tag, so a failed build stops the release before any tag or upload exists. An upload can also stop halfway. The sdist is then not on PyPI, so the release stays a draft. A re-run of the publish job runs twine again, and
--skip-existinguploads only the missing files.Verified
verwalter planandverwalter statusshow no warnings. All three packages match their last tag, and PyPI has each version.majorchangeset forlivekit-protocolgave a local release branch withlivekit-protocol3.0.0 andlivekit-api2.0.2. The requirement inlivekit-api/pyproject.tomlmoved from>=2.0.1,<3.0.0to>=3.0.0,<4.0.0.uv buildandtwine checkforlivekit-apiandlivekit-protocol, and the sdist oflivekit.mainand allowsrtc-v1.3.0.livekit-agents,verwalter statusfinds the rc1.6.0-rc.2throughlivekit_agents-1.6.0rc2.tar.gz(registry:yes).verwalter statusfinds each sdist on PyPI (registry:yes), andverwalter publish --dry-runreports all three as on the registry,livekit-protocolbeforelivekit-api. The sdist URL answers 404 for a version that does not exist. twine 7.0.0 sorts wheels before the sdist (_group_wheel_files_first) and supports trusted publishing.livekit-protocol: majorrc leaveslivekit-apiat<3.0.0. With an extralivekit-api: patchchangeset, the rc moves it to>=3.0.0rc1,<4.0.actionlintpasses on every workflow.For reviewers
Before the first release, someone with admin access must do these steps:
verwalter-releaseApp is installed on this repository. The organization secrets are already available to it. Without the App,release-pr.ymlcannot open the release PR, andgatereleases nothing.internallabel and add it to this PR. A PR with this label needs no changeset.Not done yet
gateand the dry run.livekit-apichangeset for a majorlivekit-protocolrc: pre-release: a major rc leaves out dependents whose requirement excludes it verwalter#137, markedTODO(livekit/verwalter#137).pypi-attestations sign) has not run yet. The first release will show it.pre-release --dry-runstill leaves a local branch: pre-release --dry-run leaves a local release/main-rc branch verwalter#130.🤖 Generated with Claude Code