Skip to content

Pin the MongoDB test container to 8.0.4 - #3

Merged
sadeqabuhattem merged 1 commit into
mainfrom
pin-mongo-test-container
Sep 10, 2026
Merged

sadeqabuhattem merged 1 commit into
mainfrom
pin-mongo-test-container

Conversation

@sadeqabuhattem

Copy link
Copy Markdown
Member

Why

mongo:8 floats to the newest 8.x, so the image the integration tests run against can change under a build that touched nothing — a fixture failing on a machine where the tag had moved and passing on one where it had not.

Scope

This leaves Mongo as the only fixture naming an exact image. The other two float the same way and are worth pinning on identical reasoning:

fixture image floats?
MongoDbFixture mongo:8.0.4 pinned (this PR)
PostgreSqlFixture postgres:17-alpine yes, within 17.x
SqlServerFixture mcr.microsoft.com/mssql/server:2022-latest yes, explicitly latest

Left out of this PR to keep it to the change that was already sitting in the working tree. Happy to follow up.

Verified

The 142 integration tests were run locally against a real container on mongo:8.0.4 and pass.

🤖 Generated with Claude Code

mongo:8 floats to the newest 8.x, so the image the integration tests run
against could change under a build that touched nothing — a fixture failing
on a machine where the tag had moved, and passing on one where it had not.

This leaves Mongo as the only fixture naming an exact image. PostgreSqlFixture
still asks for postgres:17-alpine and SqlServerFixture for
mcr.microsoft.com/mssql/server:2022-latest, both of which float the same way
and are worth pinning on the same reasoning.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sadeqabuhattem
sadeqabuhattem merged commit 2ac4754 into main Sep 10, 2026
10 checks passed
@sadeqabuhattem
sadeqabuhattem deleted the pin-mongo-test-container branch September 10, 2026 16:54
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