Release

release-please keeps one release pull request open on main per release line. Every merge to main updates them: the next version from the conventional commits since the last release and the new changelog entry. There are two release lines, one per top-level directory:

  • python/ holds the Python package voraus-robot-arm. It tags voraus-robot-arm-py-X.Y.Z and keeps its changelog in python/CHANGELOG.md. Its version is set in python/pyproject.toml. Releases up to 1.7.0 were tagged X.Y.Z.

  • rust/ holds the Rust crates voraus-robot-arm and voraus-robot-control-client, which share one version set in rust/Cargo.toml. It tags voraus-robot-arm-rs-X.Y.Z and keeps its changelog in rust/crates/voraus-robot-arm/CHANGELOG.md. Changes to rust/crates/voraus-robot-arm-test-utils and rust/crates/xtask alone release nothing. The first release is 0.1.0.

A commit releases the line whose directory it touches, and a commit touching both directories releases both. Each line has its own documentation in python/docs/ and rust/docs/, published with its releases to vdoc as voraus-robot-arm-py and voraus-robot-arm-rs. The tag build uploads them with tox -e publish-docs in python/ and just publish-docs in rust/. Everything else in the repository root is shared and releases nothing: the docs theme, the compose files, the CI configuration and the README.

Merging a release pull request tags the merge commit and creates the GitHub release. The tag build in Jenkins publishes what that tag releases. Only tag builds publish, so there are no development versions of the package. To pick the version, add a Release-As: X.Y.Z footer to a commit that touches the release line.

Highlights, Breaking Changes and Known Issues

Each changelog starts with an Upcoming section. A pull request adds its highlights, breaking changes and known issues there, in the changelog of the release line it changes. Right before merging a release pull request:

  1. Check out its branch (release-please--branches--main--components--<component>).

  2. Move the filled sections of Upcoming into the new entry, directly below its version heading, and leave Upcoming with its empty section headings.

  3. Push the commit and merge the pull request.

release-please rebuilds the release pull request whenever a releasable commit for its line lands on main, which drops the commit. Check that it is still on the branch before merging. The GitHub release only lists the generated sections. Paste the moved ones into its notes after the release if they belong there too.

The Rust changelog has no release entry yet. release-please needs one to place a new entry below Upcoming, so the first Rust release pull request puts its entry above the title and turns # Changelog into ## Changelog. Restore the order in that pull request: title, introduction, Upcoming, then the new entry.