ON-PREM CHOREO CLOUD BOTH

What it is

The update-agent-manager-dep workflows live in the agent-platform repository. Each is started by hand (or by cloud-handoff) and pins one piece of the core code to a chosen commit or version: the service Go module, the observer Go module, or the console's core-ui package. Each opens a pull request labelled dependencies. None of them merges it.

Like updating the part number on a bill of materials: the order form is filled in for you, but a person signs it.

Why it exists

agent-platform builds the SaaS images from the core code. Pinning to an exact commit makes each SaaS build repeatable, and the pull request gives a person the chance to review before anything is built.

How it works

  • The inputs are the source repository (the public wso2/agent-manager or the private wso2-enterprise/agent-manager), a branch or commit hash (a full hash is recommended) and the agent-platform branch to update, which defaults to main. The console workflow takes an exact core-ui version instead of a branch or hash, and uses the latest published one if none is given.
  • For the service the workflow runs go get on github.com/wso2/agent-manager/agent-manager-service at that commit and then go mod tidy. The observer workflow does the same for its module. The console workflow sets the @wso2/am-core-ui package version instead.
  • It switches the component's .cicd file to the matching build mode. Private mode turns the prebuild hook on and public mode turns it off.
  • It opens a pull request titled 'chore: update ...' (for example 'chore: update agent-manager-service dependency to ...' or 'chore: update console core-ui to ...') with the label dependencies and posts a Google Chat card when a new one is created.
  • A person reviews and merges it. Once it is on agent-platform main, the build-pipeline builds new images.

Identity and access

In private mode the workflow reads the private repository with a short-lived GitHub App token. The console workflow reads GitHub Packages with the workflow's own token.

Key facts

Workflows
update-agent-manager-dep.yml, update-agent-manager-observer-dep.yml, update-agent-manager-console-dep.yml
Started by
workflow_dispatch only (by a person or cloud-handoff)
Pull request label
dependencies
Go module pinned
github.com/wso2/agent-manager/agent-manager-service
Console package
@wso2/am-core-ui (aliased to the @wso2-enterprise package in private mode)
Merge
By a person
Namespace
GitHub Actions

Talks to (1)

Used by (1)