Skip to content

Automate agent-server chart image-tag bump in openhands-cloud on release (like enterprise/agent-canvas) #5283

Closed

Description

@juanmichelini

Problem

When a software-agent-sdk release ships (e.g. v1.49.5, PR #5246), the agent-server image is published to GHCR (openhands/agent-server:<version>-python) via server.yml (dispatched from create-release.yml). However, no workflow calls OpenHands/OpenHands-Cloud/.github/workflows/bump-image-tag.yml@main to bump the agent-server image tag in the openhands-cloud charts.

This is unlike enterprise (enterprise-server) and the agent-canvas repo, both of which have a bump-chart.yml caller that invokes the bump-image-tag reusable workflow on each release tag, automatically opening a feat(<component>): bump image tag PR in openhands-cloud.

As a result, the agent-server chart pins fall behind and must be bumped manually — which is exactly what happened this release:

Impact

When the manual bump is missed, it blocks the openhands chart release. The Check agent-server sync CI gate in openhands-cloud enforces that the sandbox agent-server image version matches the software-agent-sdk version that enterprise-server was built against. With a stale agent-server pin, the chart release PR fails check-agent-server-sync (and downstream release-gate):

error: agent-server 1.49.4 is pinned in the charts, but enterprise-server 1.64.0
was built against software-agent-sdk 1.49.5.

The enterprise server's agent-server client and the agent-server image the sandbox
runs must be the same version.

Fix: set every agent-server tag below to 1.49.5-python ...
  charts/image-loader/values.yaml -> .image.tag: 1.49.4-python
  charts/openhands/charts/runtime-api/values.yaml -> .global.agentServerImage.tag: 1.49.4-python
  charts/openhands/values.yaml -> .global.agentServerImage.tag: 1.49.4-python

This blocked the chore(main): release openhands 0.71.0 PR (OpenHands/OpenHands-Cloud#1274) until #1279 landed.

Proposed solution

Add a caller in software-agent-sdk (analogous to enterprise's bump-chart.yml) that, after server.yml publishes the agent-server image on a release tag, invokes OpenHands/OpenHands-Cloud/.github/workflows/bump-image-tag.yml@main to open the bump PR(s) in openhands-cloud.

Complication: multiple pin locations

bump-image-tag.yml edits a single chart_file + image_tag_path per call. The agent-server tag is pinned in three places, all of which must move together:

File Path
charts/image-loader/values.yaml .image.tag
charts/openhands/charts/runtime-api/values.yaml .agentServerImage.tag (a.k.a. .global.agentServerImage.tag)
charts/openhands/values.yaml .global.agentServerImage.tag

So a caller would either need to invoke bump-image-tag.yml three times (once per file/path), or bump-image-tag.yml would need to be extended to support multi-file edits (e.g. a list of {chart_file, image_tag_path} pairs). The multi-file option is cleaner and would also benefit any future component pinned in more than one place; the three-call option is a smaller change but produces three separate PRs/branches unless the pr_branch input is shared.

Additional consideration: tag format

The agent-server image uses a <version>-python suffix (e.g. 1.49.5-python), and is also published as rel-<version>-python (e.g. rel-1.49.5-python). The caller needs to construct the correct tag string from the release version, matching what server.yml actually publishes (and what the existing pins use — currently <version>-python).

Reproduction

  1. Cut a software-agent-sdk release (e.g. v1.49.5).
  2. Observe: server.yml publishes openhands/agent-server:1.49.5-python.
  3. Observe: no PR is opened in openhands-cloud to bump the agent-server chart pins.
  4. Compare: enterprise release of the same cycle opens terminal/tmux: disable bash history expansion to avoid ! mangling #1277 automatically; agent-canvas opens tests: make wsproto agent_server fixture teardown robust #1278 automatically.

Expected behavior

A software-agent-sdk release should automatically open a feat(<component>): bump agent-server image tag to <version>-python PR in openhands-cloud covering all three pin locations, so the Check agent-server sync gate never trips on a stale agent-server pin.

Context


This issue was created by an AI agent (OpenHands) on behalf of @juanmichelini.

Activity

  1. added
    bug
    on Sep 23, 2026
  2. all-hands-bot commented on Sep 23, 2026

    @all-hands-bot
    Collaborator

    The following comments were added by the OpenHands AI agent.

    Decision needed

    The desired outcome is clear (each software-agent-sdk release opens one openhands-cloud PR bumping all three agent-server pins to <version>-python), but the mechanism that produces that single PR is not settled, and it spans two repositories. Evidence from the current tooling:

    • OpenHands/OpenHands-Cloud/.github/workflows/bump-image-tag.yml edits exactly one chart_file + image_tag_path per call, and its peter-evans/create-pull-request step checks out base_branch fresh on every call and stages only its own add-paths. Invoking it three times with one shared pr_branch therefore cannot accumulate all three edits into a single PR — the later call resets the branch to the base branch plus its own single-file edit. The "three-call" option in the issue does not meet the stated single-PR outcome.
    • The three pins are charts/image-loader/values.yaml .image.tag, charts/openhands/charts/runtime-api/values.yaml .agentServerImage.tag, and charts/openhands/values.yaml .global.agentServerImage.tag, all currently <version>-python (OpenHands-Cloud#1279). server.yml → docker/build.py publishes <version>-python, so the tag string itself is settled by the evidence and is not in question.

    Focused questions:

    1. Which repository owns the fix, and which mechanism should it use? Extend the reusable bump-image-tag.yml in OpenHands-Cloud to accept a list of {chart_file, image_tag_path} pairs (keeping the existing single-pair behavior backward compatible for the enterprise/agent-canvas/automation callers) and add a caller in software-agent-sdk; or leave the reusable workflow unchanged and build a software-agent-sdk workflow that performs the three edits and opens one PR? A three-invocation caller alone does not satisfy the single-PR requirement.
    2. What should trigger the bump, given create-release.yml dispatches server.yml with GITHUB_TOKEN on refs/tags/vX.Y.Z? Follow enterprise/agent-canvas with workflow_run on the Agent Server workflow completing (deriving the tag from github.event.workflow_run.head_branch), or dispatch the bump from create-release.yml once the image tag resolves? This decides whether a not-yet-published or partial image can produce a wrong-pin PR.
  3. added
    ready-for-dev
    on Sep 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationbugciready-for-dev

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions