Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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).
  • For first version / branch protection: require both CI and Audit as status checks so no push or merge succeeds until both pass.
  • CHANGELOG.md is 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 in deploy/kubernetes/, README.md, deploy/README.md and docs/plug-and-deploy.md, the Helm chart’s appVersion, and version plus the image tag in server.json. deploy_manifests_test fails 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_URL so 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 --workspace passes 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_test and cargo 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" then git 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’s CHANGELOG.md section copied verbatim as its notes. It fails, and publishes nothing, if CHANGELOG.md has no ## [x.y.z] section for the tag. The notes come from CHANGELOG.md as 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 builds linux/amd64 and linux/arm64 on native runners and publishes ghcr.io/ancientice/commerce-orchestrator-api:<version> and :latest with an SBOM and build provenance. It fails, and publishes nothing, if the tag does not match the Cargo.toml version. Check the run is green and docker 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.toml and add an [Unreleased] section in CHANGELOG.md if using Keep a Changelog.

Optional (supply chain)

  • Generate SBOM (e.g. cargo cyclonedx or cargo 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).