Component ยท Shared or other
Core module and console package pins
What it is
The agent-platform repository is the Choreo Cloud wrapper around the open source Agent Manager. It does not copy the open source code. It pins it. The service's go.mod pins the module github.com/wso2/agent-manager/agent-manager-service at a pseudo-version, which is a Go version string made from a commit time and commit id. The console pins @wso2/am-core-ui, an alias of the private package @wso2-enterprise/am-core-ui, at 0.0.0-<timestamp>-<12 character commit id>.
It is like a recipe that says to use the sauce from batch number abc1234 instead of whatever sauce is on the shelf today.
Why it exists
Choreo Cloud must build an exact, known version of the core code. Pinning a commit lets the wrapper follow fixes as soon as they merge. The numbered open source releases are not used for this.
How it works
- A change merges to main in the Agent Manager repository. A private copy of that repository is kept level with it.
- On the private copy, a hand-off workflow starts the update-agent-manager-dep workflow in agent-platform. The console package is published by its own workflow, which starts the console update.
- The update workflow rewrites the pin and opens a pull request labelled dependencies, on a branch named chore/update-agent-manager-dep-<target>-<mode>-<id>.
- A person merges that pull request. The merge to agent-platform main then starts the normal build and deploy path.
- agent-manager-observer pins its own module the same way.
Key facts
- Service pin
- agent-manager-service/go.mod
- Console pin
- console/package.json
- Observer pin
- agent-manager-observer/go.mod
- Pin style
- commit pseudo-version, not an amp/vX.Y.Z release tag
- Pull request label
- dependencies
- Namespace
- agent-platform
Talks to (1)
- depends on agent-manager-service (AMS) shell imports the core modulego module
Used by (1)
- deployed by update-agent-manager-dep workflows (agent-platform) pins core module and console package in agent-platformPR labelled dependencies