Release checklist
Before cutting a release (e.g. GitHub tag and release notes), complete the following.
Pre-release
- All pipelines pass before push/release:
- CI (
.github/workflows/ci.yml): format, clippy, tests, Postgres backend, release-gate. - Audit (
.github/workflows/audit.yml):cargo audit(dependency vulnerabilities).
- CI (
- For first version / branch protection: require both CI and Audit as status checks so no push or merge succeeds until both pass.
-
CHANGELOG.mdis updated for the release version and date. - Version in root
Cargo.toml(workspace.package) and any crate-specific overrides is set to the release version, and every pinned reference follows it: the README badge, the image tag indeploy/kubernetes/,README.md,deploy/README.mdanddocs/plug-and-deploy.md, the Helm chart’sappVersion, andversionplus the image tag inserver.json.deploy_manifests_testfails on any that lag. - Runbooks are up to date:
docs/runbooks/retries-and-outbox.md,dead-letter-handling.md,reconciliation.md. - Production docs and config examples include
PUBLIC_BASE_URLso discovery never advertises localhost in a release deployment. - Kubernetes manifests and deployment docs agree on the supported replica/storage topology for file-backed persistence.
Acceptance
-
cargo test --workspacepasses locally. -
Postgres backend tests pass against a live database — they skip silently without
DATABASE_URL, so running them is not optional before a release:docker compose up -d postgres DATABASE_URL=postgres://orchestrator:secret@localhost:5432/orchestrator \ cargo test -p orchestrator-runtime --test postgres_backend_test DATABASE_URL=postgres://orchestrator:secret@localhost:5432/orchestrator \ cargo run -p orchestrator-http --bin orchestrator-server -- --migrate -
Security and authz tests pass (
authorize_checkout, tenant mismatch, missing scope, cross-tenant idempotency; API integration tests for 401 when auth required and missing/invalid token). -
Conformance tests pass:
cargo test -p orchestrator-http --test discovery_testandcargo test -p orchestrator-api --test authz_and_adapters(discovery, A2A, AP2 strict). -
Persistent restart-recovery test passes (
persistent_runner_restart_returns_same_idempotent_result). -
Payment lifecycle persistence test passes (
payment_lifecycle_state_survives_restart). -
Payment reconciliation and lifecycle tests pass.
-
Outbox/dead-letter and duplicate-delivery tests pass.
Release
- Push the release commit and wait until CI and Audit pass on that exact commit. Only then tag it.
- Create and push an annotated tag (e.g.
v0.13.0):git tag -a v0.13.0 -m "v0.13.0"thengit push origin v0.13.0. - Nothing else to do for the GitHub release: pushing the tag runs the Release workflow (
.github/workflows/release.yml), which publishes the release with that version’sCHANGELOG.mdsection copied verbatim as its notes. It fails, and publishes nothing, ifCHANGELOG.mdhas no## [x.y.z]section for the tag. The notes come fromCHANGELOG.mdas it is at the tagged commit, so get the section right before tagging, and use absolute links, because relative ones break on the release page. - The same tag push runs the Container image workflow (
.github/workflows/image.yml): it buildslinux/amd64andlinux/arm64on native runners and publishesghcr.io/ancientice/commerce-orchestrator-api:<version>and:latestwith an SBOM and build provenance. It fails, and publishes nothing, if the tag does not match theCargo.tomlversion. Check the run is green anddocker pull ghcr.io/ancientice/commerce-orchestrator-api:<version>works. To publish an image for an older tag, run the workflow by hand with that tag. - First image only: the GHCR package starts private. Make it public in the package settings and link it to this repository so anyone can pull it.
- No crates are published to crates.io; Rust consumers pin the tag (see consumer integration).
Post-release
- Bump version to next development (e.g. 0.1.1 or 0.2.0) in
Cargo.tomland add an[Unreleased]section inCHANGELOG.mdif using Keep a Changelog.
Optional (supply chain)
- Generate SBOM (e.g.
cargo cyclonedxorcargo sbom) and attach to release. - Run a container image vulnerability scan before promoting to production (e.g. scan
ghcr.io/ancientice/commerce-orchestrator-api:<version>with Trivy or your registry’s scanner).