Bug: [minio] _healthcheck calls for nested wait_container_is_ready resulting in long wait time
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Stale
- Tech stack
- docker, python
- Domain
- testing-qa
Research direction
Start in modules/minio/testcontainers/minio/init.py at MinioContainer._healthcheck and inspect how its wait_container_is_ready decoration interacts with get_exposed_port. Confirm the readiness flow and ensure the health check no longer causes nested waits that multiply the default timeout.
Written by the indexing model from the issue text.
Description
Describe the bug
MinioContainer._healthcheck is decorated with wait_container_is_ready and calls get_exposed_port which is also decorated wait_container_is_ready. This results in a default wait time of 120*120=14400 seconds...
As a workaround I set the testcontainers_config.max_tries manually:
import pytest
from testcontainers.core.config import testcontainers_config
@pytest.fixture(scope="session", autouse=True)
def config_testcontatiners():
testcontainers_config.max_tries = 10
- Dominant language
- Python
- Stars
- 2.3k
- Forks
- 386
- Avg merge
- 4h 40m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from testcontainers/testcontainers-python
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
testcontainers/testcontainers-python#1115 · 1 reaction ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
testcontainers/testcontainers-python#1086 · 1 comment ·
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Bug: Failure to connect to Reaper leaves stale ryuk containers, leading to container name collisions Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
testcontainers/testcontainers-python#1093 · 1 comment · 1 reaction ·
All issues in testcontainers/testcontainers-python
Similar issues
-
triage/confirmed
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
Difficulty 1/5 Under an hour Newbie friendliness 92/100
NousResearch/hermes-agent#118866 ·
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 90/100
apache/cloudstack#14222 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100