Repository navigation
Migrate the release process from knope to verwalter - #1682
Merged
Merged
Conversation
verwalter.toml replaces knope.toml. release-pr.yml keeps the release PR open, release.yml tags, creates the GitHub releases and publishes each crate, and starts ffi-builds.yml at the livekit-ffi tag. The changeset check runs `verwalter check`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
node-builds.yml takes a dist_tag input. When it is empty, a pre-release version in package.json publishes under `next`, else under `latest`. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
verwalter creates the livekit-ffi tag before the FFI build. A tag-push trigger would publish the UniFFI packages before that build is green, so uniffi-packages.yml and uniffi-dart-publish.yml lose it. ffi-builds.yml dispatches both at the tag, as before. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A manual run with `package` no longer starts the Node bindings build unless livekit-ffi is in the release. The FFI build starts only for a draft livekit-ffi release, so a release that is already published gets no second build. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ffi-builds.yml now fails before it publishes the livekit-ffi release if a built file is not on the release with its size. The upload replaces existing assets, so a second run for the same tag works. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…verwalter-6ac5e9 # Conflicts: # .github/workflows/changeset-check.yml
release.yml calls ffi-builds.yml instead of a dispatch, so a failed build makes the release run red. ffi-builds.yml calls uniffi-packages.yml and waits for the Dart package run. A run by hand takes a `ref` input, so it releases from the released commit and not from the head of main. ffi-builds.yml allows one run for each tag, leaves a public and complete release alone, fails on a tag ref without tag_name, and checks the release against a fixed list of required assets. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The Dart run attaches the build-*.zip host libraries to the release. client-sdk-android learns a new version from Maven and then downloads those files, so Maven must not have the version before they exist. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The wait job uses the newest Dart run at the tag: it waits for a run in progress, accepts one that passed, and starts a new one only if there is none or the newest failed. It has a timeout, and a single failed request no longer fails it. uniffi-dart-publish.yml allows one run for each tag. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
ffi-builds.yml only fills and publishes a release that verwalter created. It no longer creates a draft release or a tag: a tag_name without a release fails. A run with a tag checks out that tag, and the version check runs before the upload. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A dry run of uniffi-dart-publish.yml uploads and publishes nothing, but ends as a success. The workflow now names its runs, and the wait job in ffi-builds.yml reuses only a run named "Publish Dart package <tag>". Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
xianshijing-lk
approved these changes
Nov 18, 2026
xianshijing-lk
left a comment
Contributor
There was a problem hiding this comment.
lgtm assuming you will address those comments
…verwalter-6ac5e9 # Conflicts: # .changeset/fix_objective_c_linking.md # .changeset/mark_data_track_unpublished_after_republish_fail.md
verwalter.toml lists the 12 required files of the livekit-ffi release. ffi-builds.yml attaches the files and makes the release public with `verwalter release --asset --publish`, which fails while a required file is missing, and decides if a release is complete with `verwalter status --check`. release.yml ends with a job that asserts the end state, for the crates, the releases and the npm packages. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
release.yml passes the merge commit to node-builds.yml, so the checkout has no branch. pnpm then refuses a real publish with ERR_PNPM_GIT_UNKNOWN_BRANCH. Only a dry run had --no-git-checks, so a dry run did not show the failure. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…verwalter-6ac5e9 Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
Releases run on knope today. Its bot opens the release PR and creates the tags and the GitHub releases, and
knope.tomlrepeats three versioned files for each of the 23 packages. The changeset check is a 230-line shell step with its own Python script. knope also ignores a changeset entry for an unknown package without a warning: one changeset namedlivekit-uniffi, a package that no longer exists.This PR moves the release process to verwalter. Tag names, version numbers and changelogs continue without a gap.
Change
verwalter.tomlreplacesknope.toml. Tags stay{package}/v{version}.livekit-ffistill versions the six Nodepackage.jsonfiles and is still released as a draft.release-pr.ymlis new. Each push tomainregenerates therelease/mainPR.release.ymlruns when that PR merges. It tags and creates the GitHub releases. Then it runscargo publish --no-verifyfor each released crate, dependencies first. A failure blocks only the dependents of that crate, and a second run skips the versions that crates.io has. Iflivekit-ffiis not in the release, it does not callnode-builds.yml.release.ymlcallsffi-builds.ymlas a job with thelivekit-ffitag, so a failed FFI build makes the release run red.ffi-builds.ymlno longer looks for a draft release on each push tomain: a push is a build only.ffi-builds.ymldispatches the Dart workflow at the tag after the release is public, because pub.dev accepts only a run on the tag, and waits for the result. The wait is safe to repeat: it uses a publishing Dart run in progress at the tag, accepts one that passed, and starts a new one only if there is none or the newest failed. A dry run of the Dart workflow never counts: the workflow names its runs, and only a run namedPublish Dart package <tag>is the publish. Then it callsuniffi-packages.yml(Swift, Android) as a job. The order matters: the Dart run attaches thebuild-*.ziphost libraries, andclient-sdk-androiddownloads them for a version that it learns from Maven.verwalter.tomllists the 12 files that thelivekit-ffirelease must have (release.required_assets).ffi-builds.ymlattaches the files and makes the release public withverwalter release --asset --publish. While a listed file is missing, that step fails and the release stays a draft.ffi-builds.ymlonly fills and publishes a release that verwalter created. It no longer creates a draft release or a tag: atag_namewithout a release fails. A run with a tag checks out that tag, and the check of the tag against the version inlivekit-ffi/Cargo.tomlruns before the upload.ffi-builds.ymlallows one run for each tag. A release is complete ifverwalter status --checkpasses for it: the tag is on the remote, and the release is public with the 12 files. For a complete release, a second run builds nothing and publishes no package again.release.ymlby hand takes arefinput and passes it to each checkout and tonode-builds.yml. Without it, the run releases from the head of the branch.release.ymlends with a job that asserts the end state.verwalter status --checkfails if a tag is not on the remote, a release is missing or a draft, a required file is missing, or crates.io does not have a version. A second step asks npm for the six Node packages. A step that was skipped without an error ends there.node-builds.ymltakes adist_taginput. If it is empty, a pre-release version publishes undernext, else underlatest.changeset-check.ymlrunsverwalter check. The check that each crate exists on crates.io stays on the release PR.changeset_detect.pyand its test are deleted. The changeset section ofAGENTS.mddescribes the new rules.uniffi-packages.ymlanduniffi-dart-publish.ymllose their tag-push trigger. verwalter creates thelivekit-ffitag before the FFI build, so that trigger can publish the packages before the build is green.ffi-builds.ymlstarts both.Different for contributors:
patchbump automatically.minorto a patch bump on0.x. With verwalter,minoron0.2.0gives0.3.0.webrtc-sys/buildneeds a changeset entry forwebrtc-sys-buildonly. verwalter 0.31.0 counts a file in a nested package for that package alone.## 0.14.1with### Patch Changes, without a date. Each entry gets the PR number and the author, so a changeset summary must not repeat them.Failure case
For
livekit-ffi/v0.14.0, the push run offfi-builds.ymllooked for the draft release before the knope bot created it. The builds passed, the upload was skipped, and the run was green. The release then had noffi-*.zipassets. That lookup is gone: a release run gets the tag fromrelease.yml, after verwalter created the draft.A release run can fail after the tags exist. verwalter keeps no state: it reads the tags, the releases and crates.io, and finishes what is missing. Use "Re-run failed jobs" on the release run first: it keeps the merge commit. A new run of
release.ymlby hand needsrefset to that merge commit. verwalter 0.31.0 guards the case thatmainmoved andrefis empty:publishfails a crate whose files changed since its tag, andrelease --assetrefuses the upload. Both nameref=<tag>in the error. They compare only the files of the package, so therefinput stays necessary.A second run for the same tag waits for the first one. It then finds the release complete and does nothing.
Verified
With verwalter 0.31.0, built from its tag. The workflows pin v0.31.0.
verwalter plan: 23 packages, no pending changesets. The last knope release is onmain, and this branch hasmainmerged.verwalter status --check: passes. Each package has its tag and its public release, each crate is on crates.io, andlivekit-ffi0.15.0 has the 12 required files.release.required_assets: it fails and names the missing file.verwalter release --package livekit-ffi --asset <dir> --publish --dry-run: it prints the upload tolivekit-ffi/v0.15.0with--clobber.verwalter check --pr 1680 --dry-runpassed with 0.29.0, before the merge ofmain.bash -n.ffi-builds.ymlagainst real releases: a tag without a release, no tag on a branch, no tag on a tag ref, and a dry run.gh, in eight cases: a publishing run that passed (no dispatch), one in progress with one failed request, no run and then a failed one, a failed run and then a new one, five failed requests, a dry run that passed (dispatch), a dry run in progress (dispatch), and a dry run that is newer than a publishing run that passed (no dispatch).For maintainers
verwalter-releaseGitHub App is installed on this repository.release.ymlaccepts only a PR fromverwalter-release[bot].Not done yet
actionlintdid not run. The first release PR after the merge is the first real test.refpackages that commit, and two runs for one tag do not upload twice.claude/release-build-firstis a follow-up that builds the files before the tag exists. It passed the first and the third case on a fork, with Linux targets only. It is not part of this PR.build-*.zipfiles still arrive after the release is public. The Dart package andclient-sdk-androidread them. Both are safe, because pub.dev and Maven get the version only after the files exist.uniffi-packages.ymlwithtag_nameby hand once thebuild-*.zipfiles are on the release.livekit-ffiversion at the merge of the release PR, becausedownload_ffi.pyreads it fromlivekit-ffi/Cargo.toml. The FFI assets are public only after the build, so a python-sdks build in that window fails with a 404. knope had the same window. Move the submodule in python-sdks only after the release run is green.download_ffi.pydrops a pre-release suffix from the version, so it cannot download the assets of an rc release.pre-release.yml. The UniFFI package workflows are not prepared for an rc version.verwalter.tomllists all 23 directories. A new crate needs an entry there.🤖 Generated with Claude Code