From 8f068a581e4c316299a21969e9e855c7a81892f5 Mon Sep 17 00:00:00 2001 From: Viktor Barzin Date: Tue, 17 Feb 2026 21:46:29 +0000 Subject: [PATCH] Fix frontend CI pipeline OOM kills and test timeouts - Set memory limit to 2048MiB for the "Run frontend tests" step (node:24-alpine was OOM killed at the default 1Gi) - Set memory limit to 2048MiB for the "Build frontend image" kaniko step (also OOM killed at 1Gi) - Increase vitest testTimeout to 30s (CI runner is ~75x slower than local dev; tests were timing out at the default 5s) --- .drone.yml | 6 ++++++ frontend/vitest.config.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index 9b85fb4..a10449f 100644 --- a/.drone.yml +++ b/.drone.yml @@ -32,6 +32,9 @@ steps: - name: Run frontend tests image: node:24-alpine + resources: + limits: + memory: 2048MiB commands: - cd frontend - npm ci @@ -39,6 +42,9 @@ steps: - name: Build frontend image image: plugins/kaniko + resources: + limits: + memory: 2048MiB settings: username: viktorbarzin password: diff --git a/frontend/vitest.config.ts b/frontend/vitest.config.ts index 40e02c6..1d62cf6 100644 --- a/frontend/vitest.config.ts +++ b/frontend/vitest.config.ts @@ -15,5 +15,6 @@ export default defineConfig({ setupFiles: ['./src/__tests__/setup.ts'], css: false, include: ['src/**/*.test.{ts,tsx}'], + testTimeout: 30000, }, });