Skip to content

Docker/Apptainer sandboxed server example tests failing in CI #1886

@xingyaoww

Description

@xingyaoww

Summary

The following example tests are failing in CI due to Docker/Apptainer environment issues:

  • examples/02_remote_agent_server/02_convo_with_docker_sandboxed_server.py
  • examples/02_remote_agent_server/03_browser_use_with_docker_sandboxed_server.py
  • examples/02_remote_agent_server/04_convo_with_api_sandboxed_server.py
  • examples/02_remote_agent_server/05_vscode_with_docker_sandboxed_server.py
  • examples/02_remote_agent_server/08_convo_with_apptainer_sandboxed_server.py

Context

These failures were observed in PR #1884 (Release v1.11.0). The examples require Docker or Apptainer to be available and properly configured in the CI environment.

Current CI Setup

The run-examples.yml workflow:

  • Runs on blacksmith-2vcpu-ubuntu-2404
  • Sets up Apptainer via eWaterCycle/setup-apptainer@v2
  • Does NOT explicitly set up Docker

Potential Issues

  1. Docker availability: The CI runner may not have Docker available or properly configured
  2. Image pull failures: The examples try to pull ghcr.io/openhands/agent-server:latest-python which may fail due to authentication or network issues
  3. Apptainer configuration: While Apptainer is set up, there may be configuration issues preventing it from working correctly
  4. Resource constraints: The 2-vCPU runner may not have sufficient resources for container operations

Suggested Fixes

  1. Add Docker setup to CI: Add a step to ensure Docker is available and running
  2. Add skip conditions: Make these examples skip gracefully when Docker/Apptainer is not available
  3. Add to excluded list: If these tests are not critical for CI, add them to _EXCLUDED_EXAMPLES in tests/examples/test_examples.py
  4. Improve error handling: Add better error messages when container runtime is not available

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions