-
Type:
Task
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Component/s: Containerized Testing, Evergreen Tools
-
None
-
Not Needed
Summary
The repo can already run the MongoDB server under test in a container: the container
scripts build an image, start the server in it, and expose the ports. That path takes
manual setup and leaves the host without the logs and connection details a host-run
provides, so it sees little use. This ticket makes a container run a one-command
option of the server launcher, with the host consuming the run exactly as it consumes
a host-run, default behavior unchanged, and combinations that cannot work in a
container rejected instead of silently ignored.
Motivation
Who is the affected end user?
Driver developers, and driver teams whose CI runs through drivers-evergreen-tools. The
first consumer is the OIDC local server on Linux Evergreen hosts.
How does this affect the end user?
Nobody is blocked. Developers get a server environment that does not depend on the
host OS or glibc, the container path becomes as easy as the host path, and CI tasks
can opt into the same environment developers use locally.
How likely is it that this problem or use case will occur?
Main path for local development, and for every task that opts in.
If the problem does occur, what are the consequences and how severe are they?
Without it, server behavior can differ between hosts, and versions that need an older
glibc are hard to run. Severity is low: the host-run path stays the default.
Is this issue urgent?
No.
Is this ticket required by a downstream team?
No. It advances the DRIVERS-3445 epic, "Use Docker containers for local testing".
Is this ticket only for tests?
No. It changes how CI tasks and developers start the server, though only when they opt
in.
Acceptance Criteria
- Opting in runs the server in a container, and the host connects to it as it does
today. - All supported topologies work: standalone, replica set, sharded cluster, and load
balancer. - A container run gives the host everything a host-run gives it today, so existing
consumers keep working. - The OpenTelemetry file-exporter prose tests work against a containerized server.
- On non-Linux hosts, opting into tracing runs the server in a container
automatically. - Tearing down a container run removes the container, and reports failure when it
cannot. - Options that cannot be honored in a container run are rejected with a clear error
instead of silently ignored. - The OIDC test tasks' local server runs in a container on Linux.
- A dedicated Evergreen task covers the container mode.
- is related to
-
DRIVERS-3445 Use Docker containers for local testing
-
- Backlog
-
-
DRIVERS-3748 [Evergreen Tools] Improve mongodb-runner startup observability
-
- In Review
-