Skip to content

PLTF-19: Automate updating OpenHands and runtime-api charts for enterprise release#262

Merged
aivong-openhands merged 66 commits into
mainfrom
aivong/openhands-chart-script
Jan 23, 2026
Merged

PLTF-19: Automate updating OpenHands and runtime-api charts for enterprise release#262
aivong-openhands merged 66 commits into
mainfrom
aivong/openhands-chart-script

Conversation

@aivong-openhands

@aivong-openhands aivong-openhands commented Jan 22, 2026

Copy link
Copy Markdown
Contributor

Description

Adding a script that makes the relevant chart updates for an OpenHands enterprise release

Helm Chart Checklist

  • I have updated the version field in Chart.yaml for each modified chart
  • I have tested the chart upgrade path from the previous version
  • I have verified backwards compatibility with existing values.yaml configurations
  • I have updated the chart's README.md if there are any breaking changes or new required values

Additional Notes

Script run generated the following changes: #264

openhands-agent and others added 30 commits January 21, 2026 20:57
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
…ates

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
aivong-openhands and others added 11 commits January 23, 2026 10:25
The script now only updates the chart files locally. Users can use
external tools like gh CLI or peter-evans/create-pull-request action
to handle git operations and PR creation.

Co-authored-by: openhands <openhands@all-hands.dev>
Instead of fetching the latest semver tag from OpenHands/OpenHands repo,
the script now:
1. Gets the OPENHANDS_SHA from the deploy config
2. Runs git tag --contains on the local OpenHands repo
3. Uses the latest semver tag containing that commit as appVersion

This ensures the appVersion matches the actual deployed commit.

Co-authored-by: openhands <openhands@all-hands.dev>
…updates

Co-authored-by: openhands <openhands@all-hands.dev>
- Update runtime-api chart files first and use the bumped version
  for the openhands chart dependency instead of fetching from OCI registry
- Remove get_latest_helm_chart_version function (no longer needed)
- Simplify flow by removing conditional deploy_config check
  (already required earlier in the function)

Co-authored-by: openhands <openhands@all-hands.dev>
Co-authored-by: openhands <openhands@all-hands.dev>
@aivong-openhands aivong-openhands changed the title PLTF-19: Automate updating OpenHands charts for release PLTF-19: Automate updating OpenHands and runtime-api charts for enterprise release Jan 23, 2026
@aivong-openhands

Copy link
Copy Markdown
Contributor Author

I'd be fine trying this method out to cut tomorrow's release, and merging if it works.
I'm tempted to separate this script as the file update from the commands to commit and make PR (potentially using, but I don't feel strongly enough to ask for change here, we can feel it out.
We have the github cli's gh pr create, and in GitHub actions there is peter-evans/create-pull-request.

I started the script with just the file update so I feel it would be easy enough to go back to that. Sounds good on feeling it out!

I wasn't aware of gh pr create but that's great to know. Perfect, if this script works out, we can migrate to github actions down the line if we'd like

To reduce scope of this script, the commit and create PR logic has been removed in 03b3542

openhands-agent and others added 6 commits January 23, 2026 18:07
- Rename update-openhands-chart.py to update_openhands_charts.py
- Rename test_update_openhands_chart.py to test_update_openhands_charts.py
- Update README.md references
- Fix typo: update_openhand_chart -> update_openhands_chart

Co-authored-by: openhands <openhands@all-hands.dev>
- Move update_openhands_charts.py, test_update_openhands_charts.py, and README.md
  to their own folder under scripts/
- Update REPO_ROOT path to account for new folder structure
- Update README.md with correct paths

Co-authored-by: openhands <openhands@all-hands.dev>
path: charts/openhands

# because openhands depends on runtime-api
max-parallel: 1

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this PR needs to be merged before #264 so that the runtime-api chart publish can happen before the openhands chart publish

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thinking.

- Add runtime_api_sha parameter to update_runtime_api_values function
- Update image.tag in runtime-api values.yaml with sha-SHORT_SHA format
- Add test for image tag update

Co-authored-by: openhands <openhands@all-hands.dev>
@raymyers

raymyers commented Jan 23, 2026

Copy link
Copy Markdown
Contributor

One last thing. When I ran this before setting the env var, it didn't get output indicating the problem was that I needed to set the token.

Approving, you're welcome to merge when you believe this is addressed.

 ./scripts/update_openhands_charts/update_openhands_charts.py 
Installed 13 packages in 21ms
============================================================
Fetching latest versions...
============================================================
Error fetching tags from OpenHands/deploy: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/repos/repos#get-a-repository", "status": "404"}
No deploy semantic version tag found

@aivong-openhands

Copy link
Copy Markdown
Contributor Author

One last thing. When I ran this before setting the env var, it didn't get output indicating the problem was that I needed to set the token.

Approving, you're welcome to merge when you believe this is addressed.

 ./scripts/update_openhands_charts/update_openhands_charts.py 
Installed 13 packages in 21ms
============================================================
Fetching latest versions...
============================================================
Error fetching tags from OpenHands/deploy: 404 {"message": "Not Found", "documentation_url": "https://docs.github.com/rest/repos/repos#get-a-repository", "status": "404"}
No deploy semantic version tag found

Updated in 8d7cbc2

User sees the following error if they have not set their token env var:

% uv run update_openhands_charts.py          
Environment variable GITHUB_TOKEN is required. Try getting with: gh auth status --show-token

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants