Component ยท Shared or other
cloud-handoff (core to agent-platform)
What it is
cloud-handoff is a GitHub Actions workflow in the private repository wso2-enterprise/agent-manager. When a change to the service or the observer reaches main there, it asks the agent-platform repository to open dependency-update pull requests. The console takes a slightly different path: it is handed off after its package has been published.
A courier who sees a new part leave the parts shop and drops a work order at the assembly plant.
Why it exists
The SaaS images are built from wso2-enterprise/agent-platform, which imports the core code as a dependency. Someone has to move that dependency forward after the core changes, and this workflow does it without anyone having to remember.
How it works
- A push to main that touches agent-manager-service/ or agent-manager-observer/ starts it. It can also be run by hand with a full commit hash.
- It compares the pushed commits and keeps only the components whose folder changed. The service maps to update-agent-manager-dep.yml and the observer to update-agent-manager-observer-dep.yml.
- It creates a short-lived token from a GitHub App and runs those workflows in wso2-enterprise/agent-platform on main, passing the source repository, the commit hash and the target branch (main unless the variable CLOUD_TARGET_BRANCH says otherwise).
- For the console, publish-core-ui-private.yml publishes the am-core-ui package to GitHub Packages when the console workspaces change. Its last job finds the version built for that commit and runs update-agent-manager-console-dep.yml with it.
- Nothing is merged here. The result is a pull request in agent-platform.
Identity and access
The dispatch uses a token minted from a GitHub App, limited to running workflows in agent-platform.
Key facts
- Repository
- wso2-enterprise/agent-manager (main)
- Started by
- A push to main touching agent-manager-service or agent-manager-observer
- Components list
- Repository variable CLOUD_HANDOFF_COMPONENTS, default service,observer,console
- Target
- Workflows in wso2-enterprise/agent-platform on main
- Console package
- am-core-ui, published to GitHub Packages
- Namespace
- GitHub Actions
Talks to (1)
- calls update-agent-manager-dep workflows (agent-platform) dispatch update-agent-manager-dep in agent-platformgh workflow run
Used by (1)
- receives telemetry from agent-manager-private service or observer changes trigger handoffpush to main