Component ยท Shared or other
Promotion and hotfix PRs
CHOREO CLOUD Release artifact Choreo Cloud service
What it is
Promotion and hotfix pull requests are the pull requests that move an environment pin. They are opened by a bot, Cloud CICD Bot, in wso2cloud-deployment. A promotion pull request comes from a branch named promote-<env>-<epoch>. A hotfix pull request comes from a branch named hotfix-update-<env>-<epoch>.
It is the signed change slip a warehouse needs before moving a shelf. The slip is the pull request, and the move happens when it is approved.
Why it exists
Moving an environment is a real change to what customers run. Doing it through a pull request gives it a diff, a record and the approvals the release policy asks for.
How it works
- For stage and production, a CR (change request) is handed to the SRE team, who start manual-promote-environment or manual-deploy-hotfix with a target environment.
- The workflow opens the pull request against the target environment branch. It changes only the base.yaml pins.
- After merge, the commit message reads [promotion]: sync <env> base configurations to commit <sha> for a promotion.
- For a hotfix it reads HOTFIX: Pin <env> base configurations to commit <sha12> (tag <tag>).
- For a promotion, QA checks the change in the lower environment and a Platform Engineer reviews and merges the pull request. For a hotfix, a QA representative and a Platform Engineer must both approve it.
- The propagation-notify sensor then comments on every pull request newly included in that environment.
Key facts
- Promotion branch
- promote-<env>-<epoch>
- Hotfix branch
- hotfix-update-<env>-<epoch>
- Opened by
- Cloud CICD Bot
- Changes
- only the base.yaml pins
- Volume
- more than 100 of each kind in the repository history
- Namespace
- WD env branches
Talks to (1)
- deploys to Env pin: base.yaml GitRepository ref merge bumps the pin; images unchangedmerge
Used by (3)
- receives telemetry from manual-promote-environment opens promote-<env>-<epoch> PR against the target env branchGitHub PR
- receives telemetry from manual-deploy-hotfix opens Hotfix Environment Sync PR (hotfix-update-<env>-<epoch>)GitHub PR
- read by propagation-notify comments on PRs newly included in an env revisionGitHub API