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)
This commit is contained in:
Viktor Barzin 2026-02-17 21:46:29 +00:00
parent 2d6726dcd7
commit 8f068a581e
No known key found for this signature in database
GPG key ID: 0EB088298288D958
2 changed files with 7 additions and 0 deletions

View file

@ -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:

View file

@ -15,5 +15,6 @@ export default defineConfig({
setupFiles: ['./src/__tests__/setup.ts'],
css: false,
include: ['src/**/*.test.{ts,tsx}'],
testTimeout: 30000,
},
});