Repository navigation
Conversation
`verwalter check` now runs cargo-semver-checks for each package that a PR changes and a changeset covers. It compares the public API with the last release tag and fails the PR if the changeset level is too low. - Default features only: `livekit` and `livekit-api` have TLS features that do not build together. - `DOCS_RS=1` skips the native build of webrtc-sys. - `livekit-ffi` has no check. - If the tool cannot build the documentation, the check passes. The output of the tool is in the summary of the run. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
| path = "livekit-ffi" | ||
| # No API check: the contract of this package is the FFI protocol and the | ||
| # UniFFI bindings, not its Rust API. | ||
| check.api = "true" |
There was a problem hiding this comment.
not sure about this one. should we still enforce the check for the FFI crate?
There was a problem hiding this comment.
I am a bit confused again, maybe I just misunderstand the syntax. If this line says check.api = "true" I assume the semver check is on. But the lines above say "No API check".
I think what you mean is for the FFI we should check if the protobufs have breaking changes right? But the FFI crate now also is the home for the uniffi, so there I am not sure.
There was a problem hiding this comment.
agree it's confusing, but it's about the return type, true means pass in this case
There was a problem hiding this comment.
Oh wow, that is exactly opposite of how I read it. I feel like this will happen to others as well reading this syntax.
- The baseline is the base of the PR, not the last release tag. Against the tag, a breaking change on `main` that is not released would fail each later PR for the same crate. - The baseline is a Git worktree with its submodules. `--baseline-rev` copies no submodules, and yuv-sys does not build without libyuv, so the check passed without a result for yuv-sys and its dependents. - The command is now a script, .github/scripts/api_check.sh. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
| - A crate that depends on a bumped crate gets a `patch` bump automatically, so it needs no entry | ||
| - Choose the level by the public API. Every crate here is `0.x`, where a breaking change is `minor` and an addition or a fix is `patch` | ||
| - verwalter applies the level as written: `minor` on `0.2.0` gives `0.3.0` | ||
| - The changeset check runs `cargo semver-checks` for each changed crate with a changeset, and fails the PR if the level is below what the API change of that PR needs. It uses default features only, and `livekit-ffi` has no check (`[check].api` in `verwalter.toml`) |
There was a problem hiding this comment.
"It uses default features only, and livekit-ffi has no check"
This sounds contradicting to the current change in verwalter.toml, because there the livekit-ffi has the check enabled right?
MaxHeimbrock
left a comment
There was a problem hiding this comment.
Generally approve doing this, just not happy about the syntax.
The level of a changeset is the claim of its author. No step compares it with the change of the public API. A PR can therefore release a breaking change as a
patch.Change
verwalter checkhas an API check, and this PR turns it on withcargo semver-checks.verwalter.tomlhas a[check].apicommand, the script.github/scripts/api_check.sh. For each crate that a PR changes and a changeset covers, the tool compares the public API with the base of the PR. If the changeset level is below what the change needs, the PR fails, and the comment names the level to use. verwalter translates for a 0.x version: a breaking change needsminor.mainand not released would fail each later PR for the same crate.--baseline-revoption of the tool copies no submodules, andyuv-sysdoes not build without libyuv.changeset-check.ymlfetches the history and the submodules, sets up the Rust toolchain and installscargo-semver-checks.livekitandlivekit-apihave TLS features that do not build together.DOCS_RS=1is set for the tool, sowebrtc-sys/build.rsskips the native build.livekit-ffihas no check. Its contract is the FFI protocol and the UniFFI bindings, not its Rust API.Limits to know:
internallabel has no changeset, so it gets no API check.Verified
cargo, in three cases. A report of a breaking change printsmajor. A clean report and a build failure print nothing. Each case ends with exit code 0.yuv-sys/libyuv/include/libyuv.h.actionlintpasses onchangeset-check.yml.Not done yet
rustflagsof.cargo/config.toml, which have a space for the macOS targets. The Linux runner has no such flags.DOCS_RS=1.patchchangeset is not tested.🤖 Generated with Claude Code