Skip to content

feat: add early Docker validation in SandboxManager.start_async()#542

Merged
dengwx2009 merged 6 commits intoalibaba:masterfrom
dengwx2026:feat/early-docker-validation
Mar 2, 2026
Merged

feat: add early Docker validation in SandboxManager.start_async()#542
dengwx2009 merged 6 commits intoalibaba:masterfrom
dengwx2026:feat/early-docker-validation

Conversation

@dengwx2026
Copy link
Collaborator

Summary

  • Add early Docker daemon availability check in SandboxManager.start_async() before allocating Ray actor resources, failing fast with BadRequestRockError if Docker is unavailable
  • Register need_docker pytest marker and add pytest_collection_modifyitems hook to auto-skip Docker-dependent tests when Docker daemon is not running
  • Add v1.2.5 release notes and update README

Test plan

  • Verify test_start_async_raises_when_docker_unavailable passes (mocks Docker as unavailable)
  • Verify existing need_docker marked tests are auto-skipped when Docker is not available
  • Run fast tests: uv run pytest -m "not need_ray and not need_admin and not need_admin_and_network" --reruns 1

🤖 Generated with Claude Code

@CLAassistant
Copy link

CLAassistant commented Mar 2, 2026

CLA assistant check
All committers have signed the CLA.

@dengwx2026 dengwx2026 force-pushed the feat/early-docker-validation branch from 91b9c71 to 18d65f9 Compare March 2, 2026 03:05
Mark tests in ray_service, docker_deployment, ray_operator, sandbox_http_proxy,
sandbox_manager, and sandbox_proxy that require Docker with @pytest.mark.need_docker
so they are auto-skipped when Docker is unavailable.
@dengwx2026 dengwx2026 force-pushed the feat/early-docker-validation branch 2 times, most recently from 51c3bb8 to e55109f Compare March 2, 2026 04:13
@dengwx2009 dengwx2009 merged commit 8d6afbc into alibaba:master Mar 2, 2026
5 of 6 checks passed
zhongwen666 pushed a commit to zhongwen666/ROCK that referenced this pull request Mar 3, 2026
…ibaba#542)

* chore: add .worktrees/ to .gitignore

* feat: register need_docker pytest marker

* feat: add pytest_collection_modifyitems hook to auto-skip need_docker tests

* feat: add need_docker marker to Docker-dependent sandbox manager tests

* feat: add early Docker validation in SandboxManager.start_async()

Adds _validate_deployment_prerequisites() method that checks Docker
availability before submitting to the operator, preventing wasted
Ray actor allocation when Docker daemon is not running.

* feat: add need_docker marker to additional Docker-dependent tests

Mark tests in ray_service, docker_deployment, ray_operator, sandbox_http_proxy,
sandbox_manager, and sandbox_proxy that require Docker with @pytest.mark.need_docker
so they are auto-skipped when Docker is unavailable.
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.

3 participants