Skip to content

fix: handle stale MinIO test container#251

Merged
alecthomas merged 2 commits intomainfrom
aat/fix-stale-minio-container
Apr 12, 2026
Merged

fix: handle stale MinIO test container#251
alecthomas merged 2 commits intomainfrom
aat/fix-stale-minio-container

Conversation

@alecthomas
Copy link
Copy Markdown
Collaborator

@alecthomas alecthomas commented Apr 12, 2026

When the MinIO test container exits/crashes, docker run fails with
"already in use" but the old code silently ignored this, causing
waitForReady to timeout after 30s.

Fix: when docker run hits a name conflict, restart the existing
container with docker start instead of removing it. This avoids
racing with other test packages that may already be using the
container in parallel CI runs.

When the MinIO test container crashes, `docker run` fails with
"already in use" but the old code silently ignored this, causing
waitForReady to timeout. Now we unconditionally `docker rm -f`
before starting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas requested a review from a team as a code owner April 12, 2026 00:52
@alecthomas alecthomas requested review from stuartwdouglas and removed request for a team April 12, 2026 00:52
@alecthomas alecthomas enabled auto-merge (squash) April 12, 2026 00:52
When the container exists but is stopped, use `docker start` to
restart it rather than `docker rm -f` which could race with other
test packages using the same container in CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@alecthomas alecthomas changed the title fix: remove stale MinIO container before starting fix: handle stale MinIO test container Apr 12, 2026
@alecthomas alecthomas merged commit d34d889 into main Apr 12, 2026
9 checks passed
@alecthomas alecthomas deleted the aat/fix-stale-minio-container branch April 12, 2026 06:17
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.

1 participant