What you will learn
- Follow a core change from the public repository to the agent platform repository
- Follow a merge to main through the build pipeline to a running dev environment
- Say which checks and which review stand in front of dev
- Say why stage and the other environments do not move when dev does
Before you start
- Repositories, branches and image names Not started In progress Done
- Environments: dev, stage, prod and the v2 family Not started In progress Done
On this page
A fix is merged. Soon after, it is running on dev. In between, a chain of automatic steps ran, and only one of them needed a person. This lesson walks that chain, first for a change to the core service and then for any merge to a source repository.
Before the chain: a core change gets to the shell
Most Agent Manager code lives in the open source core. Choreo Cloud does not use it directly. A core change reaches Choreo Cloud in three hops.
- The mirror. The company’s private copy of the Agent Manager repository stays level with the public one. A workflow runs every hour, at minute 17, to sync it.
- The hand-off. A push to
mainof the private copy that changes files underagent-manager-serviceoragent-manager-observerstarts a workflow. It works out which of the two changed and starts the matching dependency workflow in the agent platform repository. The console is handed off by a different workflow. - The dependency pull request. That workflow points the agent platform repository at the chosen commit of the core service and opens a pull request, labelled
dependencies, against the target branch. The workflow has no merge step, so the pull request is left for a person to review and merge.
When someone merges that pull request, the agent platform repository has a new commit on main, and the chain below begins. Any other merge to main of a source repository starts the same chain.
From merge to running pods
A pull request is checked, then merged
The pull request gets the pr-check pipeline: a secret scan, and a build and scan of the changed components without publishing. A teammate reviews it. For the agent platform repository only
mainis a watched branch. The README says dev changes are gated only by the review of the source pull request.The merge starts the build pipeline
The push reaches the CI/CD system by webhook. An event source passes it to a sensor, which creates a run of the build pipeline.
Changed components are built, scanned and pushed
The pipeline reads each component’s
.cicdfile and matches its trigger paths against the changed files. Only the matches are built. Each image is scanned and pushed to the platform registry undersystem/.The new image tag is written to the deployment repository
The pipeline clones
mainof the deployment repository, writes the new tags into the workload files and commits straight tomainwith the message Bump workload images.The dev pipeline turns the commit into releases
That push starts the dev deploy pipeline. It regenerates the frozen ComponentRelease files, keeps the latest two for each component, edits each release binding to name the new release and commits the result to
main.Flux on dev rolls the pods out
Dev follows
main, so its FluxThe tool in each Choreo Cloud cluster that watches a Git repository and rolls out what it finds. Dev's Flux follows main. The other environments follow a pinned commit.See it in the glossary sees the new commit and rolls the pods out.
What did not move
Stage, prod and the v2 environments do not follow main. Each one pins a commit, so a merge to main changes nothing there. That is the point of the pin, and the next lessons show how it moves.
Two more things to remember. At the pinned commit, the CI/CD system that ran all of this lives on the stage environment’s cloud-cp and serves every environment. And a new database migration does not run by itself: on Choreo Cloud the Agent Manager service does not migrate its database at startup, because its workload starts without the migrate flag.
Your turn
Open Try it, the Release Pipeline Player for this change. Press Play, or use Step, and watch the commit move from the author’s lane through the CI lane to dev. Open the checkpoints on the first step and read what gates the change. Notice that the player shows an author lane, a CI lane and a dev lane, and no stage or production lane. No merge moves those.
Recap
- A core change goes from the public repository to the private copy every hour, then a hand-off opens a dependency pull request in the agent platform repository.
- A merge to
mainof a source repository starts the build pipeline, which builds only the changed components and pushes the images. - The pipeline writes the new tag into the deployment repository, the dev pipeline regenerates the releases, and Flux on dev rolls the pods out.
- Only dev follows
main. Every other environment pins a commit and waits.
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)