Skip to content

Migrate the release process from knope to verwalter - #1682

Merged
lukasIO merged 15 commits into
mainfrom
claude/migrate-knope-verwalter-6ac5e9
Nov 24, 2026
Merged

lukasIO merged 15 commits into
mainfrom
claude/migrate-knope-verwalter-6ac5e9

Conversation

@lukasIO

@lukasIO lukasIO commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Releases run on knope today. Its bot opens the release PR and creates the tags and the GitHub releases, and knope.toml repeats 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 named livekit-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.toml replaces knope.toml. Tags stay {package}/v{version}. livekit-ffi still versions the six Node package.json files and is still released as a draft.
  • release-pr.yml is new. Each push to main regenerates the release/main PR.
  • release.yml runs when that PR merges. It tags and creates the GitHub releases. Then it runs cargo publish --no-verify for 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. If livekit-ffi is not in the release, it does not call node-builds.yml.
  • release.yml calls ffi-builds.yml as a job with the livekit-ffi tag, so a failed FFI build makes the release run red. ffi-builds.yml no longer looks for a draft release on each push to main: a push is a build only.
  • ffi-builds.yml dispatches 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 named Publish Dart package <tag> is the publish. Then it calls uniffi-packages.yml (Swift, Android) as a job. The order matters: the Dart run attaches the build-*.zip host libraries, and client-sdk-android downloads them for a version that it learns from Maven.
  • verwalter.toml lists the 12 files that the livekit-ffi release must have (release.required_assets). ffi-builds.yml attaches the files and makes the release public with verwalter release --asset --publish. While a listed file is missing, that step fails and the release stays a draft.
  • 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 check of the tag against the version in livekit-ffi/Cargo.toml runs before the upload.
  • ffi-builds.yml allows one run for each tag. A release is complete if verwalter status --check passes 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.
  • A run of release.yml by hand takes a ref input and passes it to each checkout and to node-builds.yml. Without it, the run releases from the head of the branch.
  • release.yml ends with a job that asserts the end state. verwalter status --check fails 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.yml takes a dist_tag input. If it is empty, a pre-release version publishes under next, else under latest.
  • changeset-check.yml runs verwalter check. The check that each crate exists on crates.io stays on the release PR.
  • changeset_detect.py and its test are deleted. The changeset section of AGENTS.md describes the new rules.

uniffi-packages.yml and uniffi-dart-publish.yml lose their tag-push trigger. verwalter creates the livekit-ffi tag before the FFI build, so that trigger can publish the packages before the build is green. ffi-builds.yml starts both.

Different for contributors:

  • A dependent crate needs no changeset entry. It gets a patch bump automatically.
  • verwalter applies the level as written. knope demoted minor to a patch bump on 0.x. With verwalter, minor on 0.2.0 gives 0.3.0.
  • A change in webrtc-sys/build needs a changeset entry for webrtc-sys-build only. verwalter 0.31.0 counts a file in a nested package for that package alone.
  • Changelog headings become ## 0.14.1 with ### 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 of ffi-builds.yml looked 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 no ffi-*.zip assets. That lookup is gone: a release run gets the tag from release.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.yml by hand needs ref set to that merge commit. verwalter 0.31.0 guards the case that main moved and ref is empty: publish fails a crate whose files changed since its tag, and release --asset refuses the upload. Both name ref=<tag> in the error. They compare only the files of the package, so the ref input 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 on main, and this branch has main merged.
  • verwalter status --check: passes. Each package has its tag and its public release, each crate is on crates.io, and livekit-ffi 0.15.0 has the 12 required files.
  • The same check with one more name in release.required_assets: it fails and names the missing file.
  • verwalter release --package livekit-ffi --asset <dir> --publish --dry-run: it prints the upload to livekit-ffi/v0.15.0 with --clobber.
  • The npm step of the last job: npm has the six Node packages at 0.15.0.
  • verwalter check --pr 1680 --dry-run passed with 0.29.0, before the merge of main.
  • All workflow files parse as YAML, and each shell block of the release workflows passes bash -n.
  • The tag step of ffi-builds.yml against real releases: a tag without a release, no tag on a branch, no tag on a tag ref, and a dry run.
  • The wait step, with a stub for 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

  • Remove the knope bot from this repository before the merge. If both tools run, both open a release PR.
  • Make sure that the verwalter-release GitHub App is installed on this repository. release.yml accepts only a PR from verwalter-release[bot].

Not done yet

  • No workflow of this branch ran on GitHub, and actionlint did not run. The first release PR after the merge is the first real test.
  • Three cases need a test on a fork: one failed FFI build leg makes the release run red, a run by hand with ref packages that commit, and two runs for one tag do not upload twice.
  • The branch claude/release-build-first is 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.
  • The build-*.zip files still arrive after the release is public. The Dart package and client-sdk-android read them. Both are safe, because pub.dev and Maven get the version only after the files exist.
  • A failed Dart run blocks the Swift and Android packages. After such a failure, dispatch uniffi-packages.yml with tag_name by hand once the build-*.zip files are on the release.
  • python-sdks sees the new livekit-ffi version at the merge of the release PR, because download_ffi.py reads it from livekit-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.py drops a pre-release suffix from the version, so it cannot download the assets of an rc release.
  • No pre-release.yml. The UniFFI package workflows are not prepared for an rc version.
  • Crates at the repository root cannot be found by a glob, so verwalter.toml lists all 23 directories. A new crate needs an entry there.

🤖 Generated with Claude Code

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>
@lukasIO
lukasIO requested a review from ladvoc as a code owner November 16, 2026 15:18
@lukasIO lukasIO added the internal to tag changes that don't require changelog documentation label Nov 16, 2026
@lukasIO lukasIO self-assigned this Nov 16, 2026
devin-ai-integration[bot]

This comment was marked as resolved.

lukasIO and others added 3 commits November 16, 2026 16:32
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>
devin-ai-integration[bot]

This comment was marked as resolved.

lukasIO and others added 2 commits November 16, 2026 19:53
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>
devin-ai-integration[bot]

This comment was marked as resolved.

lukasIO and others added 2 commits November 16, 2026 21:02
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>
devin-ai-integration[bot]

This comment was marked as resolved.

lukasIO and others added 2 commits November 16, 2026 21:06
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>
Comment thread .github/workflows/node-builds.yml Resolved
Comment thread .github/workflows/ffi-builds.yml Resolved

@xianshijing-lk xianshijing-lk 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.

lgtm assuming you will address those comments

lukasIO and others added 2 commits November 19, 2026 13:05
…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>
lukasIO and others added 2 commits November 24, 2026 10:03
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>
@lukasIO
lukasIO merged commit 8c1ed80 into main Nov 24, 2026
36 checks passed
@lukasIO
lukasIO deleted the claude/migrate-knope-verwalter-6ac5e9 branch November 24, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal to tag changes that don't require changelog documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants