-
Notifications
You must be signed in to change notification settings - Fork 126
Add integration-style tests for conversation restore behavior #1799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: openhands <[email protected]>
Co-authored-by: openhands <[email protected]>
Co-authored-by: openhands <[email protected]>
all-hands-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good test coverage for conversation restore behavior! The tests clearly document the expected semantics. Found a few minor issues to address.
|
@OpenHands Install yourself Keep in mind it's AI, so it can be wrong and we need to verify each comment. If valid, let's fix them (and mark it solved), otherwise just reply with your opinion to the comment. |
|
I'm on it! enyst can track my progress at all-hands.dev |
|
Resolved AI review comment r2720748938 by hoisting create_mock_litellm_response import to module scope (commit 7ed20a1). For r2720748971: keeping getattr() is intentional because event type/shape may vary; we only assert the two relevant fields when present. |
Final summary (new work since the last summary)Verification
Code changes made (since last summary)All included in commit
Notes on PR interactions
No further diffs remain on the branch (working tree clean, branch already pushed). |
all-hands-bot
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this is a well-structured test suite that clearly documents conversation restore behavior. Found a few issues that should be addressed.
|
Neat approach! |
HUMAN: This PR proposes a follow-up to SystemPromptEvent immutability issue, previous removal of persisted enforcement, and conversation restore:
conversation restoreSummary
Adds an integration-like test module that documents the expected behavior of LocalConversation restore.
Covered behaviors
Notes
litellm_completionandcreate_mock_litellm_responsefor deterministic, offline runs.RestoreLifecyclehelper to keep the behavior spec readable.@enyst can click here to continue refining the PR
Agent 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.12-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:20bdc38-pythonRun
All tags pushed for this build
About Multi-Architecture Support
20bdc38-python) is a multi-arch manifest supporting both amd64 and arm6420bdc38-python-amd64) are also available if needed