What you will learn
- Say why a passing routine test run does not tell you which commit is safe to promote
- Say what a release candidate run does to dev while it runs
- Read the four results PROMOTABLE, FAILED, DRIFT and NOT PINNED
- Say why the full 40 character commit, and not HEAD, is handed over
Before you start
- A merged change reaches dev Not started In progress Done
On this page
Dev follows main, so dev moves all day. Before a commit can go to stage, someone has to be sure that exact commit passed its tests. That is the job of the Release candidateA test run on dev that freezes deployments, pins one commit, runs the suites and posts PROMOTABLE, FAILED, DRIFT or NOT PINNED. Only a PROMOTABLE commit may go to stage.See it in the glossary.
Why the routine runs are not enough
The routine release-validation runs test dev regularly. They are advisory. Deployments to dev keep flowing while they run, so the commit under test can change part-way. A pass tells you the suites passed on something. It does not tell you which commit passed.
What a release candidate run does
A person starts the release-candidate workflow on dev. The run:
- Freezes dev deployments for the run.
- Pins the commit dev is on.
- Runs the integration suites against that one commit.
- Checks that dev did not move while the suites ran.
- Posts one result card.
Starting a candidate stops a running routine run by default. That run posts a cancelled result to chat, and that is expected.
The four results
| Result | What it means |
|---|---|
PROMOTABLE | Every suite passed and dev stayed on the pinned commit. |
FAILED | A suite, or the run itself, failed. Fix the failing suite, then run a new candidate. |
DRIFT | The suites passed, but dev changed during the run, for example because the freeze was lifted by hand. Run a new candidate. |
NOT PINNED | Dev did not settle on one commit within 10 minutes. Check the release status dashboard, then run a new candidate. |
Suites that are switched off in dev by design do not block a PROMOTABLE result. The card lists them as skipped, so the SRE team can see what was not run.
Why the full commit and not HEAD
Only the full 40 character commit from a PROMOTABLE card may be promoted from dev to stage. Deployments resume when the run ends, so HEAD soon points at a commit the candidate did not test. For a promotion from dev to stage the requester hands over a link to the PROMOTABLE card.
Your turn
Imagine you start a candidate at 10:00. At 10:20 someone lifts the freeze on dev by hand and a new commit lands. The suites pass at 11:15. Which result do you expect, and what do you do next? Check your answer in the table above, then try the quiz.
Recap
- Routine validation runs are advisory. A pass does not show which commit passed.
- A release candidate freezes dev, pins one commit, runs the suites and checks that dev did not move.
- It ends as
PROMOTABLE,FAILED,DRIFTorNOT PINNED. - Only the full commit from a
PROMOTABLEcard goes to stage, notHEAD.
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)