Repository navigation
test(examples): exclude agent-sandbox example from example tests - #5083
Conversation
The example needs a Kubernetes cluster with agent-sandbox and the openhands-workspace[agent-sandbox] extra, so it fails in CI with ModuleNotFoundError: No module named 'k8s_agent_sandbox'.
|
🚦 CI is currently failing on this PR's latest commit. Please fix the failing checks before OpenHands reviews it - this is re-checked automatically once you push a new commit. (A maintainer can also request This is an automated check - no AI was used to generate this comment. |
|
🤖 OpenHands is reviewing this PR. Head commit: This comment was posted by an AI agent (OpenHands). |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was created by an AI agent (OpenHands) on behalf of the repository maintainers.
🟢 Good taste — clean, minimal fix.
Adds the 17_convo_with_agent_sandbox_server.py example to _EXCLUDED_EXAMPLES, right next to the other infrastructure-dependent exclusions. The example imports AgentSandboxWorkspace from openhands.workspace, which requires the openhands-workspace[agent-sandbox] extra plus a running Kubernetes cluster — neither available in the examples CI. Without this exclusion, collection fails with ModuleNotFoundError: No module named 'k8s_agent_sandbox'.
No material findings. The comment is accurate and the pattern matches existing entries.
[RISK ASSESSMENT]
- Overall PR: 🟢 LOW
- Test-only change (exclusion list), no production code touched, no eval/benchmark impact.
LGTM! ✅
Automated review used the wrong decision (APPROVED instead of COMMENT) and is dismissed. Findings are reposted as a comment.
|
Posted an APPROVE review to PR #5083. The PR adds the This comment was posted by an AI agent (OpenHands). |
(cherry picked from commit c838008)
HUMAN:
exclude agent-sandbox example from example tests
AGENT:
Why
examples/02_remote_agent_server/17_convo_with_agent_sandbox_server.py(added in #4516) is picked up bytests/examples/test_examples.pyand fails withModuleNotFoundError: No module named 'k8s_agent_sandbox'. The example needs a Kubernetes cluster running the agent-sandbox controller plus the optionalopenhands-workspace[agent-sandbox]extra, neither of which exists in the examples CI.Summary
_EXCLUDED_EXAMPLES, next to the other examples that need extra infrastructure.Issue Number
Fixes #5084
How to Test
70 tests collected;
17_convo_with_agent_sandbox_server.pyis no longer in the list, and examples 01–16 under02_remote_agent_serverare still collected.pre-commit run --files tests/examples/test_examples.pypasses.Video/Screenshots
Design Doc
Type
Notes
The example can still be run by hand against a cluster, following
examples/02_remote_agent_server/agent_sandbox_deploy/README.md.🤖 Generated with Claude Code