Skip to content

test(examples): exclude agent-sandbox example from example tests - #5083

Merged
VascoSch92 merged 1 commit into
OpenHands:mainfrom
VascoSch92:vasco/exclude-agent-sandbox-example
Sep 15, 2026
Merged

VascoSch92 merged 1 commit into
OpenHands:mainfrom
VascoSch92:vasco/exclude-agent-sandbox-example

Conversation

@VascoSch92

@VascoSch92 VascoSch92 commented Sep 15, 2026 •

Copy link
Copy Markdown
Member

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 by tests/examples/test_examples.py and fails with ModuleNotFoundError: No module named 'k8s_agent_sandbox'. The example needs a Kubernetes cluster running the agent-sandbox controller plus the optional openhands-workspace[agent-sandbox] extra, neither of which exists in the examples CI.

Summary

  • Add the example to _EXCLUDED_EXAMPLES, next to the other examples that need extra infrastructure.

Issue Number

Fixes #5084

How to Test

uv run pytest tests/examples/test_examples.py --collect-only -q

70 tests collected; 17_convo_with_agent_sandbox_server.py is no longer in the list, and examples 01–16 under 02_remote_agent_server are still collected. pre-commit run --files tests/examples/test_examples.py passes.

Video/Screenshots

Design Doc

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

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

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'.
@VascoSch92
VascoSch92 marked this pull request as ready for review September 15, 2026 16:32
@VascoSch92
VascoSch92 requested a review from neubig September 15, 2026 16:32
@all-hands-bot

Copy link
Copy Markdown
Collaborator

🚦 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 @all-hands-bot as a reviewer to have it reviewed regardless of CI status.)

This is an automated check - no AI was used to generate this comment.

@all-hands-bot

Copy link
Copy Markdown
Collaborator

🤖 OpenHands is reviewing this PR.

Head commit: 05d3b71819f9e1f8cca2f74f6fd39e39584ee328
View the conversation: https://oss-agent-canvas.ngrok.dev/conversations/c697a04d-50a3-4920-892a-e82ebd97e876

This comment was posted by an AI agent (OpenHands).

all-hands-bot
all-hands-bot previously approved these changes Sep 15, 2026

@all-hands-bot all-hands-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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! ✅

@all-hands-bot
all-hands-bot dismissed their stale review September 15, 2026 19:17

Automated review used the wrong decision (APPROVED instead of COMMENT) and is dismissed. Findings are reposted as a comment.

@all-hands-bot

Copy link
Copy Markdown
Collaborator

Posted an APPROVE review to PR #5083. The PR adds the 17_convo_with_agent_sandbox_server.py example to _EXCLUDED_EXAMPLES in tests/examples/test_examples.py, which is correct — the example imports AgentSandboxWorkspace requiring the openhands-workspace[agent-sandbox] extra and a Kubernetes cluster, neither available in CI. Test-only change, no material findings, low risk.

This comment was posted by an AI agent (OpenHands).

@juanmichelini juanmichelini left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@VascoSch92
VascoSch92 merged commit c838008 into OpenHands:main Sep 15, 2026
49 of 51 checks passed
VascoSch92 added a commit that referenced this pull request Sep 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: examples CI fails on 17_convo_with_agent_sandbox_server.py (No module named 'k8s_agent_sandbox')

3 participants