With v1 just about out the door, what are our expe...
# proj-sdk
c
With v1 just about out the door, what are our expectations around when we will next entertain breaking changes. How often do we expect a breaking change release to happen?
c
Great question! If we were to answer by v0 customs: "anytime(tm)" 🫠 But maybe we will not keep v0 style. I wouldn't, on the other hand, claim it will be rare, either, that'd be unrealistic, and, for the moment, I do think the agent-sdk codebase needs more to stabilize. I think maybe we need to think about this, for example I'd like to propose to freeze public interfaces and make sure to document when those change
nod 1
c
Ideally, I'd hope it will be less frequent (e.g., maybe one breaking change per month) - but you can never know like Engel said lolsob
c
@quiet-night-61895 was proposing at some point to test in some way the public interface of the Agent, or idk, that was roughly my feeling about an older PR... šŸ¤” Maybe we could automate this in some way, compare and notify when public interfaces for most/core classes change, so for programmatic use, plus the route signatures, so the interface of the agent-server... WDYT ?
nod 1
c
I am a big fan of having a suite that signals a change in public API, though perhaps less helpful / meaningful if EVERYTHING is considered a public api contract.
q
@calm-artist-7206 I think this was the PR you mean Add mock-free test of example 1. I think the main objection was that it muddies the examples file, possibly there are alternatives. It was aimed at ensuring the examples continue to be accurate and providing examples of how to test client code that uses the sdk. So that's related to this non-breaking interface idea, it's similar to "contract testing". There are also other approaches, but generally since we're not of the habit of keeping to non-breaking changes I would feel safer with some automation than only an attempt of education and habit-change.
nod 1
c
nice! it will be nice if we can implement a workflow to detect these breaking changes..
fyi, we currently have an LLM-powered version of the test that ray put up earlier: https://github.com/OpenHands/software-agent-sdk/blob/main/.github/workflows/run-examples.yml When you tag
test-examples
on a PR, it will run all examples with a real (cheap) LLM to make sure every usage example is working šŸ™‚
q
^ If I'm reading that correctly, it's a test that the examples run with a 0 return code, but not that they have any particular result. So it would catch some situations. BTW when using a long script in a GitHub action, you usually want to use
shell: bash
which adds
Copy code
set -euo pipefail
So failures won't get masked.
šŸ‘ 1
c
@nutritious-balloon-65098 please send a PR to OpenHands/software-agent-sdk following Ray's suggestion that we should use shell:bash
n
I'm on it! Xingyao Wang can track my progress here.
āœ… PR Successfully Created! I've successfully created and sent PR #1057 to OpenHands/software-agent-sdk implementing Ray's suggestion: šŸ”— PR Link: https://github.com/OpenHands/software-agent-sdk/pull/1057 Summary of Changes Modified File:
.github/workflows/run-examples.yml
Changes Made: 1. āœ… Added
shell: bash
to the "Run examples" step - the main long-running script that tests examples with a real LLM 2. āœ… Removed redundant
set -e
- no longer needed since
shell: bash
automatically applies
set -euo pipefail
3. āœ… Added
shell: bash
to the "Read examples report" step for consistency Benefits The
shell: bash
directive automatically adds
set -euo pipefail
which provides: •
-e
: Exit immediately on any command failure •
-u
: Treat unset variables as errors •
-o pipefail
: Ensure failures in piped commands aren't masked This follows GitHub Actions best practices and ensures workflow failures are properly detected and reported, addressing Ray's observation that "failures won't get masked." Status • āœ… Branch pushed:
use-shell-bash-in-workflow
• āœ… PR created and ready for review • āœ… Pre-commit hooks passed (yamlfmt) • āœ… Co-authored-by attribution included <sub>View full conversation</sub>
q
Searches of the job log for words like "fail" and "error" are somewhat interesting. I think this could be a decent way to mine for regressions. This is a separate concern than API compatibility, but useful. We could probably also choose LLM and parallelism so this wasn't taking 30min to run. https://github.com/OpenHands/software-agent-sdk/actions/runs/19118637734/job/54633891581
c
Yeah, exactly, just created that issue while you sent this message lolsob https://github.com/OpenHands/software-agent-sdk/issues/1058
c
@nutritious-balloon-65098 Look at agent-sdk repo readme so you understand the project. Then investigate griffe to use for detecting when a semver release has breaking public API changes from the previous release; note that we care about programmatic use as well as use via agent-server REST API. As you see griffe can be used as a library. Think deeply and tell me: how would a workflow running on a release PR look like? Are we able to select which core classes we want to track for breaking public API changes or not? Are we able to select methods?
n
is not authorized to send messages to this conversation.
c
Ah, this was Xingyao's run
The agent:
- classify breaking vs non-breaking changes
- fail if breaking changes exist and the SDK version is not a major bump
Me: minor, we could enforce a minor bump... ... what did I just say hey at least we don't make it patch lolsob
šŸ˜„ 1
q
If we were concerned about some false positives we could make it comment a warning with what changed on the PR
nod 1