Skip to content

fix(test): tolerate docker container creation races in s3clienttest#397

Merged
worstell merged 1 commit into
mainfrom
worstell/minio-test-start-race
Jul 22, 2026
Merged

fix(test): tolerate docker container creation races in s3clienttest#397
worstell merged 1 commit into
mainfrom
worstell/minio-test-start-race

Conversation

@worstell

Copy link
Copy Markdown
Contributor

Parallel test packages race to create the shared MinIO container. The loser's docker start fallback can run before the winner's creation finishes registering the container, failing the test with No such container: minio-test. Retry the run/start cycle until the container is up or a 30s deadline passes.

Verified locally by removing the container and running both consuming packages in parallel (concurrent creation), and again with the container stopped (restart path).

Parallel test packages race to create the shared MinIO container. The
loser's "docker start" can run before the winner's creation finishes
registering the container, failing with "No such container". Retry the
run/start cycle until the container is up or a deadline passes.

Amp-Thread-ID: https://ampcode.com/threads/T-019f8b6a-3778-7200-a3b4-c24b84edd973
Co-authored-by: Amp <amp@ampcode.com>
@worstell
worstell marked this pull request as ready for review July 22, 2026 23:03
@worstell
worstell requested a review from a team as a code owner July 22, 2026 23:03
@worstell
worstell requested review from joshfriend and removed request for a team July 22, 2026 23:03
@worstell
worstell merged commit 3663914 into main Jul 22, 2026
7 checks passed
@worstell
worstell deleted the worstell/minio-test-start-race branch July 22, 2026 23:29
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.

2 participants