Fix Python selection in version-bump PR workflow#2430
Conversation
Use Python 3.12 when updating OpenHands-CLI dependencies so uv add respects that repositorys ==3.12.* requirement during automated version-bump PR creation. Co-authored-by: openhands <openhands@all-hands.dev>
API breakage checks (Griffe)Result: Passed |
Agent server REST API breakage checks (OpenAPI)Result: Failed Log excerpt (first 1000 characters) |
all-hands-bot
left a comment
There was a problem hiding this comment.
🟢 Good taste - This is how you fix a problem.
The downstream repo requires Python 3.12, so you specify Python 3.12. No over-engineering, no special cases. The comment explains why, which is exactly what you want for maintainability.
✅ Worth merging
KEY INSIGHT: Pragmatic fix that directly addresses the production constraint without introducing complexity. The explicit comment documents the dependency, making it easy to update when OpenHands-CLI supports newer Python versions.
|
@OpenHands Read all comments. OpenAPI checks failed, but not from this PR. From what PR did they start to fail? |
|
I'm on it! enyst can track my progress at all-hands.dev |
|
I traced this to PR #2190:
So this PR is just inheriting a pre-existing failure from For reference, PR #2423 passed its OpenAPI check because that branch did not include the ACPAgent API change yet, even though it merged later. |
Summary
Context
The v1.14.0 release triggered a failure in the
Create Version Bump PRsworkflow because the OpenHands-CLI step ranuv addwith Python 3.13 against a repo that declaresrequires-python = "==3.12.*".Failed run: https://github.com/OpenHands/software-agent-sdk/actions/runs/23070949770
Testing
uv run pre-commit run --files .github/workflows/version-bump-prs.ymlAgent Server images for this PR
• GHCR package: https://github.com/OpenHands/agent-sdk/pkgs/container/agent-server
Variants & Base Images
eclipse-temurin:17-jdknikolaik/python-nodejs:python3.13-nodejs22golang:1.21-bookwormPull (multi-arch manifest)
# Each variant is a multi-arch manifest supporting both amd64 and arm64 docker pull ghcr.io/openhands/agent-server:256e9c9-pythonRun
All tags pushed for this build
About Multi-Architecture Support
256e9c9-python) is a multi-arch manifest supporting both amd64 and arm64256e9c9-python-amd64) are also available if needed