This document describes the current release and versioning strategy. This strategy is likely to change as Rerun matures.
New Rerun versions are released every two weeks. Sometimes we do out-of-schedule patch releases.
Each release include new versions of:
- The Python SDK
- The Rust SDK
- All rust crates
We use semantic versioning. All versions are increased in lockstep, with a minor version bump each time (0.1.0
, 0.2.0
, 0.3.0
, …).
This means we might add breaking changes in each new release.
In rare cases we will do patch releases, e.g. 0.3.1
, when there is a critical bug fix. These patch releases will not contain any breaking changes.
We sometimes do pre-releases. Then we use the versioning 0.2.0-alpha.0
etc.
We have not yet committed to any backwards or forwards compatibility.
We tag all data files (.rrd
files) and communication protocols with the rerun version number. If there is a version mismatch, a warning is logged, but an attempt is still made to load the older or newer data.
Release builds of the Python Wheels are triggered by pushing a release tag to GitHub in the form v0.2.0
.
When doing a normal release, we tag the release commit on the main
branch. If we are doing a patch release, we do a branch off of the latest release tag (e.g. v0.3.0
) and cherry-pick any fixes we want into that branch.
Copy this checklist to the the PR description, go through it from top to bottom, and check each item before moving onto the next. This is a living document. Strive to improve it on each new release.
- Use
cargo +nightly udeps
to find and update outdated crates (NOT for patch releases!) - Create a release branch called
release-0.x.y
- If it is a patch release, cherry-pick the commits that should be included
- For the draft PR description, add a:
- One-line summary of the release
- A multi-line summary of the release
- A gif showing a major new feature
- Test the branch (see below)
- Open the PR up for review with the
⛴ release
label -
./scripts/publish_crates.sh --dry-run
- Bump version number in root
Cargo.toml
. - Update
CHANGELOG.md
with the new version number and the summary and the gif- Make sure to it includes instructions for handling any breaking changes
- Get the PR reviewed
- Check that CI is green
- Publish new Rust crates
- Merge PR
-
git tag -a v0.x.y -m 'Release 0.x.y - summary'
-
git push --tags
- Unless this is an alpha release:
git pull --tags && git tag -d latest && git tag -a latest -m 'Latest release' && git push --tags origin latest --force
- Wait for CI to build release artifacts and publish them on GitHub and PyPI. Verify this at https://github.com/rerun-io/rerun/releases/new.
- Wait for documentation to build: https://docs.rs/releases/queue
- Post on:
- Community Discord
- Rerun Twitter
- Reddit?
- Before pushing the release tag:
-
just py-run-all
- Test the web viewer:
-
cargo run -p rerun --features web -- --web-viewer ../nyud.rrd
- Test on:
- Chromium
- Firefox
- Mobile
-
-
- After tagging and the CI has published:
- Test the Python packages from PyPI:
pip install --upgrade rerun-sdk
- Test the Python packages from PyPI:
- Add version numbers to
.rrd
files and communication protocols - Find a tool that auto-updates our
CHANGELOG.md
on each merged PR - See if we can use
cargo-release
- Write instructions for how to publish the Python wheels
- Remove all crates from
[patch.crates-io]
in the mainCargo.toml
- Release new
egui
- Update wgpu
- Either try to get a new
arrow2
andpolars
published, or use unreleased versions of both
- Release new
First login as https://crates.io/users/rerunio with and API key you get from Emil:
cargo login $API_KEY
!! IMPORTANT !! Shut off VSCode, and don't touch anything while publish_crates.sh
is running!
!! IMPORTANT !! Read publish_crates.sh
for details
./scripts/publish_crates.sh --execute