Releases
Move one exact snapshot into deployments, wave by wave, with the rules asked at every step and checks that pause the rollout.
A release moves one exact snapshot into one or more deployments, wave by wave. It is a durable workflow: if a server restarts in the middle, the release carries on from the wave it was in, and nothing is applied twice. People call a release by its number, such as R-142.
Releases are how production changes are raised, approved, rolled out and, when needed, undone. The rules that ask for approvals hold a release's waves until they are given, a bypass lets a hotfix through once, and every step is stored with the rules that decided it.
What a metrics check needs
A wave's checks read a metric through the metrics provider, which is Prometheus, or Datadog for a check whose query starts with datadog:. Until the person who runs Wardn sets WARDN_PROMETHEUS_URL, every check reads as unknown, and a wave that has a check pauses and says so instead of passing. A wave with no check does not need it.
Raise a release in the web app
Open Releases. The tabs are Active, Needs attention, Scheduled, and Completed, each with a count, and the list shows the release, its route, progress, status, who raised it and when it changed.
Choose New promotion. Pick the Snapshot (each is the whole deployment at one moment; only the apps that differ from the target change), untick any Apps to leave as they are, and choose the Target deployments. Promote ad hoc starts a release of a snapshot to deployments the pipeline does not route it to; the Promote button on a snapshot in a deployment's Snapshots tab opens it with that snapshot chosen.
On the review page, Rules that apply lists every rule from the stage and the guardrails that the request must meet, with what each says now. Fill in the Request form (title, change type, change ticket, customer impact and rollback plan, which are kept with the release), check the Rollout waves, and set When to deploy: as soon as it is approved, or Deploy at a time.
Choose Request promotion. The release gets its number and opens at its detail page.
A release's page shows Waves (each deployment's steps and, per wave, what verifies it and the gate that holds the next wave), What moves, the Timeline of everything that happened, and Rules at request time, frozen when it was requested. A gate that waits for approvals has a button that opens the approvals inbox. Approved by names the people who gave them. At the foot, Danger zone has Pause or Resume, Hold or Resume auto-advance, Roll back and Cancel release; it appears for people who hold org:manage, and everyone else steers a release with the API below.
Parts of the screens that are not built
Save as draft and the Hold option under When to deploy are visible but disabled. The sentences about the Release agent on the review page describe agents work that is not part of releases yet. The Hotfix page at /releases/hotfix?snapshot=<id> works, but no button in the web app links to it yet; raise a hotfix with the API, below.
Raise a release with the API
POST /releases takes the snapshot, the deployments it goes to, and optionally the waves:
- Pipeline release: the next step of a pipeline's route. It needs
release:raiseon every deployment it goes to. - Ad hoc release: a snapshot to deployments the pipeline does not route it to. Say why.
- Hotfix: a fix that does not wait for the stages in between. Say why. A hotfix can be break-glass (
"breakglass": true), which records a one-time bypass of whatever guardrails hold this snapshot (a guardrail that cannot be judged yet is waited on, not bypassed) and needsrelease:bypass. Someone without that duty raises the hotfix on the normal route and asks for a bypass. - Partial: give
appsto move only some of the snapshot's apps. The new snapshot reuses the unchanged apps' items from what the deployment runs now.
Without waves, every deployment goes in one wave. With waves, each has a name, its deployments, and a gate.
api() { curl -fsS -H "Authorization: Bearer $WARDN_TOKEN" -H 'Content-Type: application/json' "$@"; }
# What a release of this snapshot would involve: nothing is stored
api "$WARDN_API_URL/api/v1/releases/plan?snapshotId=$SNAPSHOT_ID" | jq '{targets: .targets, rules: .rules}'
# Two waves: a canary first, then the rest after a check and a person
api -X POST "$WARDN_API_URL/api/v1/releases" -d '{
"kind": "pipeline",
"title": "Checkout 2.14",
"snapshotId": "'"$SNAPSHOT_ID"'",
"waves": [
{"name": "Canary", "deployments": ["'"$CANARY_DEPLOYMENT_ID"'"],
"gate": {"verify": [{"name": "5xx rate", "query": "sum(rate(http_requests_total{code=~\"5..\"}[5m])) / sum(rate(http_requests_total[5m]))", "compare": "below", "threshold": 0.01, "soakSeconds": 600}]}},
{"name": "Everywhere else", "deployments": ["'"$EU_DEPLOYMENT_ID"'", "'"$US_DEPLOYMENT_ID"'"]}
]
}'Raising a release needs release:raise on every deployment it goes to. Each check names a query that reduces to one number, whether it passes below or above the threshold, and a soakSeconds (up to a day) the wave runs before it reads. Set "gate": {"manual": true} to make a person release the next wave, whatever the checks read. startAt schedules the release.
Rules at every step
The policy engine decides whether the snapshot may arrive at each deployment, and stores the decision with the versions of the rules and the facts they read; the release links to it. A freeze, a guardrail or a fact that cannot be read holds that deployment: the release shows Waiting for its rules and asks again, with a growing delay. It never skips a rule.
When a rule asks for approvals, the release holds the step and an approval request opens for that snapshot at that deployment, so the people who may approve are told. The wave starts as soon as the approvals are given; lifting a hold wakes the step that waits on it, so there is no wait for the next retry. The person who raised the release can never approve it. If the rule is wrong for this one release, a person who holds the duty can bypass it, or raise the release as a break-glass hotfix.
Waves and checks
A wave can carry checks. After its deployments are healthy, each check waits its soak, then reads a metric: the wave passes only when every check passed. A check that fails, or that could not be read, pauses the release and records what it read. Then you can:
- Resume to read the checks again, and to retry deployments that failed to apply,
- Skip the wave, with a reason,
- Cancel the release, and with revert put back what it applied.
A wave can instead be manual: the release holds after it until you resume it.
Steer a release
POST /releases/{id}/actions with pause, hold, resume, skip or cancel. A pause or hold takes effect before the next step: a wave in flight finishes applying its deployments. Asking for a change the status does not allow is a conflict, so asking twice does one thing. Every change is in the release's timeline and in Activity.
api -X POST "$WARDN_API_URL/api/v1/releases/R-142/actions" -d '{"action": "pause", "reason": "error rate is climbing in eu"}'
api -X POST "$WARDN_API_URL/api/v1/releases/R-142/actions" -d '{"action": "cancel", "revert": true, "reason": "put production back"}'The statuses are waiting (for its rules), scheduled, running, paused, held, completed, failed and cancelled. Steering needs release:raise on every deployment the release goes to; reading a release needs release:read.
Roll back and restore
POST /releases/rollbacks raises a release that puts back what an earlier release replaced: each deployment gets the snapshot it ran before, as a new snapshot with origin rollback, so nothing is rewritten and the history shows both. Give a reason, and deploymentId to roll back only one deployment. A release that is still moving is paused first, so no later wave starts; only the deployments it has applied are put back. The same rules decide every step as for any release.
POST /releases/restores does the same for one earlier snapshot from a deployment's own history. Use it when there is no release to undo.
In the web app, Roll back is in the Danger zone of a release's page; the dialog names the snapshot each deployment goes back to. To go back on one deployment without a release, use Restore, which also has a preflight and meets the guardrails that name a restore.
The timeline
The release calendar is now the Timeline, under Overview: every release is a bar from when it started to when it finished, or is expected to, on the lane of the environment it goes to, with one-time freezes, deploy windows and what will happen in the next seven days. The old address /releases/calendar opens the Timeline with only the releases showing. GET /releases/calendar still serves the calendar data to your own tools.
POST /releases/calendar/feed makes a secret address for a calendar app: the organization's releases and one-time freezes as an iCalendar feed. A calendar app cannot sign in, so the address is the credential. It is shown once; Wardn keeps only its hash, and making a new one revokes your earlier ones. The feed lists every release, so it needs release:read on the whole organization.
Permissions
| Action | Permission |
|---|---|
| See releases, the timeline and a release's timeline | release:read |
| Raise, steer, roll back or restore by release, and plan one | release:raise on every deployment it goes to |
| Raise a break-glass hotfix | release:raise and release:bypass |
| Subscribe to the calendar feed | release:read on the whole organization |
Next
Approvals
What holds a release's waves, and who decides.
Bypass requests
Let a hotfix through the rules once.
Prometheus
How a wave's checks read metrics.
Pipelines
The route a release follows and the waves each stage gives it.
Related: Delegating approvals, Guardrails, Restore and rollback, Freezes.