What you will learn
- Explain that a promotion moves one pointer and rebuilds nothing
- Follow a promotion from the CR to the SRE team through the pull request to Flux
- Say who must approve and what a comment on the pull request does and does not prove
- Say what the files show about moving prod-v2 and prod-v2-eu, and what they do not say
Before you start
- The release candidate: which commit may go to stage Not started In progress Done
- Environments: dev, stage, prod and the v2 family Not started In progress Done
On this page
A promotion moves a tested state of the platform from one environment to the next. It looks like a big event, but in Choreo Cloud the move itself is small: one pointer changes. This lesson follows it from the first request to the green dashboard.
What a promotion is
Each environment pins a commit of the deployment repository, as lesson L13.1.2 showed. A promotion changes which commit an environment pins. It does not copy manifests and it does not rebuild images. The same pre-built images that ran on dev are pulled.
The pin moves the whole state of the environment. There is no per-component promotion: you cannot promote the console and leave the service behind.
The path of a promotion
A release candidate says which commit may go
A candidate run decides the commit, as the last lesson showed. Only the full commit from a
PROMOTABLEcard may go from dev to stage.A CR is created and handed to the SRE team
In the team’s process, nothing on stage or production is changed directly. The requester creates a CR (change request)A change request. In Choreo Cloud, stage and production environments are never changed directly: a CR is created and handed to the SRE team, who make the change.See it in the glossary (change request) and hands it to the SRE team. For a dev to stage release the SRE runbook says the requester must share a link to the
PROMOTABLEcard. The CR form is a GitHub issue titled[CR]:where you pick the change class, the environments and the priority, and fill in the impact, the plans and the monitoring checks.The SRE team runs the promotion workflow
They trigger
manual-promote-environmentwith a source branch, a target branch and the full commit. It runs on the stagecloud-cp, which serves every environment. Promotions and hotfix deploys share one lock, so two of these runs do not run at the same time.A branch and a pull request move the pin
The workflow creates a branch named
promote-<environment>-<timestamp>that changes only the pointers inbase.yaml, and opens a pull request against the environment branch. No image is rebuilt. The pr-check pipeline runs on that pull request too.Reviewers merge it
Platform Engineering reviews and merges the pull request. Merging is the moment the environment changes. A bot then comments on every pull request newly included in the pinned revision.
Flux applies it and the SRE team checks
Flux in each cluster pulls the new commit. The SRE team reads the release status dashboard: the applied revision of every part must match the intended one and all parts must be green.
QA verifies the change in the lower environment and approves before the pointer moves. There is no per-component promotion. A promotion is not scheduled and not an automatic merge: it is a request that the team carries out.
Stage to production
Before production, the tests on stage must pass. If any suite fails, the product lead’s explicit written approval is needed. A second CR then goes to the SRE team for the production environments.
The files read most clearly for the older v1 pair, stage then prod. For the v2 family the same rule is a natural reading: stage-v2 first, then prod-v2 and prod-v2-eu. No file says so in words, so read it as the natural extension and not as a written rule.
- prod-v2 is a live customer environment for the USA. The history of its branch holds commits titled
[promotion]: sync prod-v2 base configurations to commit <sha>, so it does move by pointer promotion like the older environments. - prod-v2-eu is a live customer environment for the EU in eu-west-1. It has its own branch, its own clusters and its own pull request, so it is promoted and checked on its own.
Your turn
Open Try it, the Release Pipeline Player for this flow. Press Play and watch the pin move across the lanes. Open the checkpoints on the first step, on the CR step and on the production step. Which ones does the player mark as rooted in the team’s process rather than in a file?
Recap
- A promotion moves the pin of one environment to a tested commit. Nothing is rebuilt, and the whole state moves together.
- A release candidate chooses the commit. A CR handed to the SRE team starts the promotion workflow.
- The workflow opens a pull request that changes only the pointers. Platform Engineering reviews and merges it, and Flux applies it.
- A bot comment is not proof that a cluster applied the change. The release status dashboard is the written check.
- Prod-v2 and prod-v2-eu are promoted on their own branches, one at a time.
Wrap up
Recap
Tick each one when you could explain it to a colleague.
Finished?
Chapter complete. Every lesson in this chapter is done.
Progress cannot be saved in this browser, so it will be forgotten when you leave this page.
Quick check
Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)