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:
parent
2d6726dcd7
commit
8f068a581e
2 changed files with 7 additions and 0 deletions
|
|
@ -32,6 +32,9 @@ steps:
|
||||||
|
|
||||||
- name: Run frontend tests
|
- name: Run frontend tests
|
||||||
image: node:24-alpine
|
image: node:24-alpine
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 2048MiB
|
||||||
commands:
|
commands:
|
||||||
- cd frontend
|
- cd frontend
|
||||||
- npm ci
|
- npm ci
|
||||||
|
|
@ -39,6 +42,9 @@ steps:
|
||||||
|
|
||||||
- name: Build frontend image
|
- name: Build frontend image
|
||||||
image: plugins/kaniko
|
image: plugins/kaniko
|
||||||
|
resources:
|
||||||
|
limits:
|
||||||
|
memory: 2048MiB
|
||||||
settings:
|
settings:
|
||||||
username: viktorbarzin
|
username: viktorbarzin
|
||||||
password:
|
password:
|
||||||
|
|
|
||||||
|
|
@ -15,5 +15,6 @@ export default defineConfig({
|
||||||
setupFiles: ['./src/__tests__/setup.ts'],
|
setupFiles: ['./src/__tests__/setup.ts'],
|
||||||
css: false,
|
css: false,
|
||||||
include: ['src/**/*.test.{ts,tsx}'],
|
include: ['src/**/*.test.{ts,tsx}'],
|
||||||
|
testTimeout: 30000,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue