Release Process#
For maintainers. A release promotes an existing CI build of its branch; nothing is rebuilt. The Evidence Policy says what a build must pass and What the Gate Checks how a release checks it, and Compatibility what a version number promises.
Before You Release#
- The branch:
main, or arelease/X.Ybranch created from a release tag to fix an older line. Its.github/autoware.refnames the Autoware release (for example2.0.0), and the ROS snapshots incomponents/docker-bake.hclbelong to that release. vars.RUNNER_AMD64andvars.RUNNER_ARM64optionally move the build, scan and evidence jobs to larger runners (for exampleubicloud-standard-8-ubuntu-2204andubicloud-standard-8-arm-ubuntu-2204). Unset, they run on the GitHub-hostedubuntu-22.04andubuntu-22.04-arm. The AutoSD evidence cells always run onubuntu-24.04andubuntu-24.04-arm. Pull request jobs run on them too, so point them only at ephemeral hosted runners, never at a persistent self-hosted machine.- GHCR packages accept pushes from CI:
openadkit,openadkit-buildcacheandopenadkit-ciunderghcr.io/autowarefoundation/. - The
releaseenvironment exists in the repository settings: the publish job runs in it, so the reviewers required there approve each release. - Immutable releases are on in the repository settings: a published release and its tag cannot change. The publish step fails when a release it published is not immutable.
- A successful build of
build-all-imagesexists on that branch, of a commit the branch contains; stable releases and pre-releases both come from it. The build summary shows itsbuild_tag. The release ships the CLI and deployments of that build's commit. A push that changes only the CLI or deployments starts no build, so dispatchbuild-all-imageson the branch to release it; the release run warns when the branch has such changes. A change to.github/workflowsafter the build needs a new build too: the release run's token can tag only a commit with the run's own workflow files. - A passing scan of
scan-imagesexists for thatbuild_tagon the same branch; it runs after the build. - A successful
evidencerun on the same branch passed every cell for that same build; it runs after the build. See the Evidence Policy. - Highlights for a minor or major release are in
.github/release-highlights/vX.Y.Z.md. The notes of that release and of its candidates open with a table of the Autoware release, ROS 2 distros and architectures, then the highlights; the rest of the notes is generated. - The docs on
maindescribe the release: a stable release publishes the site frommainas it is then.
Workflow#
Run release.yaml
on the build's branch with the version and build_tag. A release/X.Y branch
releases with its own workflows and scripts, so a later main cannot change
how an older line is validated. Its jobs run in order:
flowchart LR
V[validate] --> P[package-bundles] --> R[publish] --> O[deploy-docs]
- validate: runs the release gates in
validate_release.sh(version format, the build run and its age, scan results, metadata and file integrity, image coverage, passing evidence, registry digests, Git tag and workflow files). A build older than 90 days cannot be promoted. Nothing is tagged if a gate fails. - package-bundles: writes the immutable release plan and the runtime bundle for both distros, with the build commit's own packaging scripts.
- publish: writes the notes and metadata from the validated plan, attests the bundle, installer and metadata, and creates the draft with its assets. It then creates the image release tags and, for stable releases, the latest aliases (see Tag Reference), and publishes the draft, which creates the Git tag. A published release cannot be changed: a bad one is followed by the next version.
- deploy-docs: publishes the docs site from
mainwhen the latest aliases moved. If it fails after a publish, re-run only the failed job or dispatchdeploy-docs: re-running all jobs stops at the draft step, since the release is already published. Dispatch it too whenpublishfailed after the release went public, for example waiting for it to turn immutable:deploy-docsis then skipped.
The release plan records the exact image digests, aliases and assets of the
release for the jobs after it; it stays in the workflow run. The release itself
publishes release-metadata.json.
What the Gate Checks#
Before creating a tag, release validation looks for an
evidence-summary-<build_tag> artifact and accepts it only when:
- The run succeeded: it is a completed, successful run of
.github/workflows/evidence.yamlon the branch that built the release, in this repository and not for a pull request. - It tested this build: the summary names the promoted build tag, and it tested the build's own commit, not another commit against its images.
- Every cell passed: the summary result is
PASSED. A cell passes only when every level it runs passes, and a missing expected cell fails the run.
A passing rerun may supersede a failed run; a failed run never counts. There is no release bypass input. The release also requires the latest full scan of the build to pass.
Autoware and ROS Distro Decisions#
The release records the Autoware version in .github/autoware.ref; the
build's autoware-lock.repos, resolved SHA and upstream image digests record
the input.
- Autoware: pin the latest stable Autoware release at the release cut. If it has a blocking issue, keep the previous verified pin and explain the exception, date and follow-up in the release notes. A fix that is already upstream can be backported instead.
- ROS distro:
defaultRosDistroin the promotedopenadkit.jsonselects the default, and the evidence cells of every declared distro must pass. The gate never switches from Humble to Jazzy or drops a failing distro by itself: to change the supported distros, update the manifests in a reviewed change and build and test that revision.
Release Metadata#
The release workflow seals the selected evidence summary (result, build,
commit, run URL and cells) in its release plan before packaging.
release-metadata.json publishes that same evidence, the BOM and the CI
exemptions. The bundle, installer and metadata receive build provenance from
the release workflow. The installer and the bundle's launcher install and
upgrade from the repository that released them, so a fork's release installs
from the fork.
The folded evidence table in the release notes shows the passing-cell count,
readiness time, arrival time and peak memory of that build; it depends only on
the release plan. The list of changes comes from GitHub's generated notes since
the previous release.
Missing metrics are shown as -, never replaced with zeroes.
See Verify a Release to check a release yourself.
The Docs Site#
The site is built from main each time the newest stable release is
published. A push to main does not publish it: a docs change reaches the site with the next stable release, and a
pull request shows its own preview. To publish a fix in between, dispatch
deploy-docs.yaml,
which builds the site from main; do that only while main documents nothing
the latest release lacks.
A fork can rehearse a release with the same workflow: it promotes its own
build in its own registry namespace and publishes in the fork. Validation only
requires the registry and the package name that openadkit.json names.
Backporting an Autoware Fix#
Autoware releases come months apart. A fix that blocks a release and is
upstream, merged on Autoware's main or in an open pull request, can ride on
the pinned release as a patch instead of waiting for the next Autoware release:
- In the upstream repository,
git format-patch -1 <commit>, and add a lineUpstream: <URL of the commit or pull request>to its message. - Open a pull request into
main(or therelease/X.Ybranch) that adds it as.github/autoware-patches/<repository>/<NNNN>-<subject>.patch, where<repository>is its path underautoware/src(a key ofautoware-lock.repos, such asuniverse/autoware_universe). The review is the fix's own diff. - Every build applies the patches in order right after
vcs import; one that does not apply, or has noUpstream:line, fails the build. The release notes list them under Fixes backported to Autoware X.Y.Z, its bundle carries them asautoware.backports, andopenadkit versioncounts them. The Autoware version stays that of the tag. - When the branch moves to an Autoware release that contains the fix, delete the patch.