Skip to content

Commit 6380873

Browse files
authored
test(nuxt): Pin the nuxt-5 e2e MongoDB image to 8.0 (#25564)
Same fix as #25557, applied to nuxt-5. It failed the same way on #25552 (`container e2e-tests-nuxt-5-mongo is unhealthy`) The floating `mongo:8` tag moved to 8.3 on 2026-10-17. On CI the container goes unhealthy some seconds after start. That is much earlier than the healthcheck retries allow, so the server process exits, and Docker then reports the container as unhealthy. If setup fails again, the container logs now print, so we can see why mongod exits.
1 parent 2ad0528 commit 6380873

2 files changed

Lines changed: 11 additions & 5 deletions

File tree

‎dev-packages/e2e-tests/test-applications/nuxt-5/docker-compose.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
services:
22
mongo:
3-
image: mongo:8
3+
# `mongo:8` floats to the newest 8.x release, whose server sometimes exits right after start on CI.
4+
image: mongo:8.0
45
restart: always
56
container_name: e2e-tests-nuxt-5-mongo
67
ports:

‎dev-packages/e2e-tests/test-applications/nuxt-5/global-setup.mjs‎

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
77
export default async function globalSetup() {
88
// Start MongoDB via Docker Compose. `--wait` blocks until the
99
// healthcheck in docker-compose.yml passes, so the app can connect immediately.
10-
execSync('docker compose up -d --wait', {
11-
cwd: __dirname,
12-
stdio: 'inherit',
13-
});
10+
try {
11+
execSync('docker compose up -d --wait', {
12+
cwd: __dirname,
13+
stdio: 'inherit',
14+
});
15+
} catch (error) {
16+
execSync('docker compose logs --tail 50', { cwd: __dirname, stdio: 'inherit' });
17+
throw error;
18+
}
1419
}

0 commit comments

Comments
 (0)