Component ยท Shared or other
release-candidate (promotion gate)
CHOREO CLOUD Pipeline Choreo Cloud service
What it is
release-candidate is the test run that decides whether a commit of wso2cloud-deployment may be promoted from dev to stage. It pauses dev deployments, pins the commit dev is on, runs every integration suite against it and checks nothing moved. It ends with one result card in chat. Only this run decides what may be promoted.
Like stopping the traffic on one road for a safety inspection: the stamp only counts for the cars that were on the road during that inspection.
Why it exists
While the routine validation runs, dev keeps taking new commits, so a pass does not say which commit passed. Freezing dev makes the result belong to exactly one commit.
How it works
- A person triggers the release-candidate workflow in the dev portal. By default it stops a running advisory run so it can start. Another run holds a shared lock, so runs queue behind each other.
- It freezes dev deployments by suspending the Flux GitRepository named wso2cloud-deployment, waits for dev to settle and pins the commit it is on.
- It runs every suite once. Suites turned off for dev on purpose do not block the result and are listed on the card.
- It checks that the source revision, every Kustomization's applied revision, the environment branch revision and the freeze itself are unchanged.
- The exit handler resumes deployments and posts one result: PROMOTABLE, FAILED, DRIFT or NOT PINNED, with the full commit hash.
Key facts
- Results
- PROMOTABLE, FAILED, DRIFT, NOT PINNED
- Dev paused for
- About as long as the suites take, roughly 75 minutes
- Run cap
- 3 hours (activeDeadlineSeconds), after which deployments still resume
- Promote only
- The full 40-character hash on a PROMOTABLE card, never HEAD
- Stop, do not terminate
- Stop runs the exit handler. A terminated run can leave dev frozen for up to about 15 minutes
- Dev freeze
- spec.suspend on the GitRepository wso2cloud-deployment
- Namespace
- cloud-cp tests
Talks to (3)
- calls Integration suites in tests namespace runs every suite against one frozen commitJobs in namespace tests
- depends on Choreo Cloud environment: dev freezes dev deployments during the runsuspends GitRepository
- sends telemetry to manual-promote-environment only a PROMOTABLE SHA may be promoted to stagePROMOTABLE card with full SHA