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
- 397
- Avg merge
- 8d 16h
- Merged PRs (30d)
- 5
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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
-
Feature: Stream bytes out on copy_from_containerPossibly taken @archit15singh claimed this 12 days ago. Open🚀 enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
-
Bug: HttpWaitStrategy ignores response predicates for accepted HTTP error statusesPossibly taken @PranavMulakala claimed this 41 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Bug: LogMessageWaitStrategy: a container that exits before its message raises without its logs, and __enter__ then removes the containerPossibly taken @granzer69 claimed this 42 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
testcontainers/testcontainers-python#1086 · 1 comment ·
-
Bug: Reaper is force-removed at interpreter exit since 4.15.0, session containers are never reapedPossibly taken @pantafive claimed this 42 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 72/100
All issues in testcontainers/testcontainers-python
Similar issues
-
新功能建议
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Mai-with-u/MaiBot#2583 ·
Maintainers usually reply within 1 day
-
area-integrations
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[New]: JambaOpenMatch Play
Difficulty 1/5 Under an hour Newbie friendliness 63/100
privacyguides/verified-apps#9224 · 1 comment ·
Maintainers usually reply within 1 day
-
[Bug]: The docs check fails to install the Mintlify CLI when it runs right after a `mint` releaseOpenchore upstream
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
MemMachine/MemMachine#2032 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100