Skip to main content
Version: 0.2 (next)

Delivery

Namedelivery
Enabled by defaultNo
Steps5
Runs at onceup to 2
Catalogv0.51.0

What it does​

What happens to merged code. Every push to a Product's default branch, a Change's merge included, joins a deployment, and merges close together ship as one. Delivery follows each deployment: it waits for the pre-release zone, the e2e-verifier tests it there end to end where it is switched on, and the deployment waits at the production gate for a person's approval (unless the Product's production gate is off) before it is promoted to production. A deployment a newer one takes the place of hands its work to that one's Delivery. When a release is cut, Delivery documents it: the version-manager moves the CHANGELOG's Unreleased lines under the version in a pull request a person merges, and the docs-writer publishes the release docs. Announcing it is the Announcement workflow's. The workflow ships disabled: deployments go through their zones and gates without it, and its agents spend model tokens.

When it runs​

  • On the event deployment.started. Runs when a deployment of a Product starts.
  • On the event release.cut. Runs when a release is cut for a Product.

Steps​

Rounded steps are human gates, slanted steps are promotions, and double-edged steps run automatically.

#StepTypeRunsRequiredOn failureAttempts
1promote-pre-releasePromotionPromote to zone pre-releaseNoDead-letter to a human1
2e2e-verifyAgentRoleEnd-to-end verifierNoContinue1
3promote-releasePromotionPromote to zone releaseNoDead-letter to a human1
4versioningAgentRoleVersion managerYesDead-letter to a human1
5release-docsAgentRoleDocs writerNoDead-letter to a human1

1. promote-pre-release​

Waits for the deployment to reach the Product's pre-release zone, Synced and Healthy. Skipped for a Product without a pre-release zone.

Runs only when trigger:deployment.started.

2. e2e-verify​

Tests the deployment end to end in the pre-release zone, against the acceptance criteria of the Changes it carries, and reports each with its screenshot. A failed criterion (BLOCK) holds production until a person retries the step after a fix, or a newer deployment takes its place; a test that could not run (NOT TESTED) holds nothing and is shown to the person who approves production.

Runs only when promoted:pre-release. Times out after 60m. Skipped when its AgentRole is switched off.

3. promote-release​

The production gate: the deployment waits for a person's approval, unless the Product's production gate is off, then is promoted to the release zone and waits for Synced and Healthy.

Runs only when trigger:deployment.started.

4. versioning​

Confirms the semver bump, moves the CHANGELOG's Unreleased lines into a dated section for the tag's version, adds a linked line for every user-facing commit since the previous tag that had none, never edits a released section, leaves Unreleased empty, opens the CHANGELOG as a pull request, writes upgrade notes, and orders the releases of a Product's repos.

Runs only when trigger:release.cut. Skipped when its AgentRole is switched off.

5. release-docs​

Publishes release notes and updates external product docs for the release.

Runs only when trigger:release.cut. Skipped when its AgentRole is switched off.

When it hands off to a human​

Work an agent cannot finish is dead-lettered to @platform/release-managers. The AgentWorkflowRun shows the step as DeadLettered until a human picks it up.