ON-PREM CHOREO CLOUD BOTH

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

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.

  1. 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.
  2. The hand-off. A push to main of the private copy that changes files under agent-manager-service or agent-manager-observer starts 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.
  3. 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

  1. 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 main is a watched branch. The README says dev changes are gated only by the review of the source pull request.

  2. 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.

  3. Changed components are built, scanned and pushed

    The pipeline reads each component’s .cicd file and matches its trigger paths against the changed files. Only the matches are built. Each image is scanned and pushed to the platform registry under system/.

  4. The new image tag is written to the deployment repository

    The pipeline clones main of the deployment repository, writes the new tags into the workload files and commits straight to main with the message Bump workload images.

  5. 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.

  6. Flux on dev rolls the pods out

    Dev follows main, so its 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 main of 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.

Try it

Follow a change to production

What to do: press Play, or use Step, to move the change along the lanes. Watch the checkpoints and the pin.

Loading the release pipeline...

Wrap up

Recap

Tick each one when you could explain it to a colleague.

Finished?

Quick check

Loading the quick check...

Spotted something wrong or unclear in this lesson? Report an inaccuracy (opens GitHub in a new tab)