test(utils): comprehensive test suite for docker_client module (+84 tests) - #142
Open
manus-use wants to merge 1 commit into
Open
test(utils): comprehensive test suite for docker_client module (+84 tests)#142manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
This was referenced Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Comprehensive test suite for the
manus_agent.utils.docker_clientmodule — 84 fully-mocked tests covering the entire Docker client utilities surface area.What's tested
DockerConnectionErroris_transient_docker_errordocker_retry_is_socket_accessible_get_default_docker_hosts_check_docker_contextget_docker_clientcheck_docker_availablewait_for_container_runningwait_for_container_healthysafe_kill_remove_containersafe_remove_networksafe_remove_image_diagnose_docker_issueWhy this module
docker_client.pyis foundational infrastructure — used by bothDockerSandboxandExploitSandboxfor every Docker operation. Its retry/backoff logic, transient error classification, and socket detection have non-trivial edge cases that previously had zero dedicated tests. The retry logic alone has exponential backoff with jitter, deadline awareness, and error classification that determines whether to retry or bail.Duplicate check
Checked all 50 open PRs — none test
utils/docker_client.py:None of the 30 most recent merged PRs include docker_client tests either.
Test characteristics