Skip to content

Commit 236a70c

Browse files
committed
ci: use xlarge resource and remove parallelism to fix OOM
- Change resource_class from large (8GB) to xlarge (16GB) - Remove CircleCI parallelism (1 container instead of 6) - Keep Jest maxWorkers=4 for parallel test execution - Increase NODE_OPTIONS memory to 12GB (75% of 16GB)
1 parent e49b4a1 commit 236a70c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
paths:
2222
- build
2323
test:
24-
resource_class: large
24+
resource_class: xlarge
2525
docker:
2626
- image: cimg/node:22.16
2727
- image: postgres:18-alpine
@@ -35,7 +35,7 @@ jobs:
3535
-c full_page_writes=off
3636
-c max_connections=200
3737
- image: redis/redis-stack:7.2.0-v13
38-
parallelism: 6
38+
parallelism: 1
3939
steps:
4040
- common/setup-node
4141
- common/wait-for:
@@ -54,7 +54,7 @@ jobs:
5454
TEST=$(./node_modules/.bin/jest --listTests)
5555
echo $TEST | circleci tests run --command="xargs ./node_modules/.bin/jest --testEnvironment=node --ci --maxWorkers=4 --reporters=default --reporters=jest-junit --" --split-by=timings
5656
environment:
57-
NODE_OPTIONS: --max-old-space-size=6144 # 75% of 8GB which is the memory of large resource class
57+
NODE_OPTIONS: --max-old-space-size=12288 # 75% of 16GB which is the memory of xlarge resource class
5858
JEST_JUNIT_OUTPUT_DIR: ./test-results
5959
JEST_JUNIT_ADD_FILE_ATTRIBUTE: "true"
6060
JEST_JUNIT_FILE_PATH_PREFIX: "/home/circleci/project/"

0 commit comments

Comments
 (0)