Repository navigation
Description
Context
While reviewing release PR #2302 (rel-1.12.0), the API breakage bot posted a "Result: Failed" comment for the Griffe checks, but the workflow run still concluded success, so the PR did not show a failing check.
- PR comment: Release v1.12.0 #2302 (comment)
- Griffe workflow run (success): https://github.com/OpenHands/software-agent-sdk/actions/runs/22687837023
- OpenAPI workflow run (success): https://github.com/OpenHands/software-agent-sdk/actions/runs/22687836999
Update (2026-03-04): Root cause identified: both workflows read PIPESTATUS after echo, so the breakage step always exits 0. Verified on test PR #2307 (now closed); fix proposed in PR #2309.
What happened in CI (from the logs)
Griffe (SDK public API)
The job log shows exit_code=1 with multiple breakages:
- SDK:
LLM.top_pdefault changed from1.0toNone(reported asATTRIBUTE_CHANGED_VALUE). - Workspace:
DockerDevWorkspace.server_imagedefault changed toNone(same as issue CI: API breakage checks failing on all PRs due to DockerDevWorkspace.server_image change #2252). - Tools:
BrowserToolSet,get_agent_factory, andregister_agentremoved fromopenhands.tools.__all__without prior deprecation.
Despite the non-zero exit code, the GitHub Actions run still concludes success and does not fail the PR.
Log snippet: https://github.com/OpenHands/software-agent-sdk/actions/runs/22687837023/job/65775442806
OpenAPI / oasdiff (agent-server REST API)
oasdiff returned exit code 102 but produced no breaking changes JSON. The script treats this as warnings-only and returns 0 (success).
Log snippet: https://github.com/OpenHands/software-agent-sdk/actions/runs/22687836999/job/65775442461
Documented expectations in repo
- The workflows explicitly state "Release PRs (rel-*) must block on breakage" and set
continue-on-erroraccordingly..github/workflows/api-breakage.ymllines 24–33: https://github.com/OpenHands/software-agent-sdk/blob/main/.github/workflows/api-breakage.yml#L24-L33.github/workflows/agent-server-rest-api-breakage.ymllines 26–41: https://github.com/OpenHands/software-agent-sdk/blob/main/.github/workflows/agent-server-rest-api-breakage.yml#L26-L41
- The Griffe script enforces two policies:
- Deprecation-before-removal for exports/members removed from
__all__. - MINOR version bump for any breaking change.
check_sdk_api_breakage.pydocstring: https://github.com/OpenHands/software-agent-sdk/blob/main/.github/scripts/check_sdk_api_breakage.py#L2-L26
- Deprecation-before-removal for exports/members removed from
- The OpenAPI script mirrors the same policies for REST operations.
check_agent_server_rest_api_breakage.pydocstring: https://github.com/OpenHands/software-agent-sdk/blob/main/.github/scripts/check_agent_server_rest_api_breakage.py#L2-L18
Related
Issue #2252 documents earlier breakage check failures for the server_image default change:
#2252
Questions / Decisions Needed
- Should rel- PRs fail the check when Griffe returns non-zero?*
- The workflow comment says yes, but this run still succeeds.
If it should fail, where is the behavior diverging (e.g.,Root cause found: step readsgithub.head_refbeing empty, orcontinue-on-errornot applied as expected)?PIPESTATUSafterecho, masking failures. Fix proposed in PR Fix API breakage workflow exit codes #2309.
- Should default value changes (e.g.,
LLM.top_pField default) require a deprecation path?- Today they only trigger the SemVer bump requirement, not deprecation.
- Is that the intended policy for attribute/default changes?
- Should
oasdiffexit codes like102(warnings/no JSON) be treated as failures or still pass?
If we can align on the desired behavior, I can follow up with changes to either the workflows or the scripts.
Activity
enyst commentedon Mar 4, 2026
Update:
Root cause confirmed — both API breakage workflows read PIPESTATUS after running \echo, so the breakage step always exited 0. I verified this on a test PR (#2307, now closed) with context logging; head_ref matched rel-* and continue-on-error evaluated to false, but the step still succeeded because of the shell pipeline issue.
Fix proposed in PR #2309: #2309 (captures PIPESTATUS into a variable before echo/exit in both Griffe and oasdiff workflows). Once merged, rel-* PRs should fail on real breakage as intended.
Open questions from the issue remain (e.g., how to treat oasdiff exit code 102).
enyst commentedon Mar 6, 2026
@OpenHands Was this already fixed in main? If yes, close this issue as solved. If not, tell me what is remaining? Understand you are not allowed to comment with random responses, but this is a question, so you need to answer it in a post here.
openhands-ai commentedon Mar 6, 2026
I'm on it! enyst can track my progress at all-hands.dev
enyst commentedon Mar 6, 2026
Fixed in main via PR #2309 (commit 3356db3). The workflows now capture PIPESTATUS before echo/exit, so rel-* PRs will properly fail on breakage. Closing this issue as resolved.
openhands-ai commentedon Mar 6, 2026
Summary of work:
mainvia PR Fix API breakage workflow exit codes #2309 (commit3356db3e4e90e659b12e4e123b7192574fc3070f), which updates both workflows to capturePIPESTATUSbeforeecho/exit.No code changes or diffs were made in the repository for this request.