Component ยท Shared or other
propagation-notify
CHOREO CLOUD Pipeline Choreo Cloud service
What it is
propagation-notify posts a comment on every pull request whose change has newly reached an environment. It runs when a pull request that moves an environment's pin is merged on the stage, stage-v2 or prod environment branch. Dev gets the same comments from the dev-deploy-pipeline.
Like a parcel tracker text: it says the parcel left the depot, not that it is at your door.
Why it exists
Developers want to know where their change is without reading Git history. The comment tells them, and it points to the release-status dashboard because a pinned commit is not yet a running change.
How it works
- A push to the stage, prod or stage-v2 branch of wso2cloud-deployment fires the propagation-notify sensor, which retries up to three times. The workflow receives the before and after commits and a label for the environment (production for prod, staging for the others).
- The workflow clones the repository and compares the base.yaml pin before and after.
- If the pin moved, every pull request newly included gets a 'propagated to <environment>' comment. The comments reach the wso2cloud-deployment pull requests in the range and, for image bumps made by the build-pipeline, the source repository's pull request named by the Source-PR lines in the bump commit.
- It comments once per pull request per environment and never fails the pipeline.
Key facts
- Sensor
- propagation-notify
- Branches watched
- stage, stage-v2, prod
- Started by
- A push to one of those environment branches
- Comment says
- Propagation is not the same as the cluster being reconciled
- Links to
- The release-status dashboard
- Namespace
- cicd
Talks to (1)
- reads from Promotion and hotfix PRs comments on PRs newly included in an env revisionGitHub API