From 149cc3943a15fcb7b678ad77a2112ac3e74bac01 Mon Sep 17 00:00:00 2001 From: Francisco Solla Date: Tue, 25 Aug 2026 08:36:42 -0300 Subject: [PATCH] =?UTF-8?q?test(int):=20retry=20once=20=E2=80=94=20gate=20?= =?UTF-8?q?flaka=20sob=20conten=C3=A7=C3=A3o=20paralela=20de=20DB=20em=20h?= =?UTF-8?q?igh-core=20(C113/C115)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- vitest.config.mts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/vitest.config.mts b/vitest.config.mts index b7a6e89f..147fae0f 100644 --- a/vitest.config.mts +++ b/vitest.config.mts @@ -40,5 +40,13 @@ export default defineConfig({ // beats per-test overrides. Genuinely hung tests still fail — just 10s // later. The unit suite keeps the 5s default. testTimeout: 15_000, + // High-core local machines run up to 8 parallel forks against one + // Postgres (gate:ci, OPS98). Cross-file DB contention makes a few + // wall-clock-sensitive specs flake intermittently (C113/C115 calendar + // family) even at low system load — each run picks different victims. + // One retry gives the contended transaction a second chance without + // hiding real failures (CI on 2–4 vCPU rarely needs it; the unit suite + // stays at 0 retries). + retry: 1, }, })