From aa1e6ebdc8e763e4fbb861937d604c8f57786461 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Fri, 7 Aug 2026 17:47:47 +0200 Subject: [PATCH] ci: retry flaky container-backed unit tests in fast gate Integration tests (nzbget, nextcloud, pi-hole, etc.) start Docker containers and intermittently time out under shared-runner load, which fails the fast gate and skips the container job that publishes the PR preview image. Retry failing unit tests twice so transient container startup failures do not block the image publish. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 341cd6412..5b92e5cb5 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "scripts:update-bug-report-template": "tsx ./scripts/update-bug-report-template.mts", "scripts:update-readme-integrations": "tsx ./scripts/update-integration-list.mts", "start": "concurrently \"pnpm with-env node apps/tasks/tasks.cjs\" \"pnpm with-env node apps/websocket/wssServer.cjs\" \"pnpm -F nextjs start\"", - "test": "cross-env NODE_ENV=development CI=true vitest run --exclude e2e --coverage.enabled ", + "test": "cross-env NODE_ENV=development CI=true vitest run --exclude e2e --retry 2 --coverage.enabled ", "test:e2e": "cross-env NODE_ENV=development CI=true vitest e2e --retry 2 --maxWorkers 2", "test:ui": "cross-env NODE_ENV=development CI=true vitest --exclude e2e --ui --coverage.enabled", "typecheck": "turbo typecheck",