From 1a51bb072a5ba8cf1ec66f62f3f300e236bafb37 Mon Sep 17 00:00:00 2001 From: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com> Date: Fri, 14 Jun 2024 20:02:09 +0530 Subject: [PATCH] fix(node): set memory to 8 GiB for tests (#55193) --- .github/workflows/curriculum-i18n.yml | 2 -- .github/workflows/node.js-tests.yml | 2 -- client/package.json | 2 +- package.json | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/curriculum-i18n.yml b/.github/workflows/curriculum-i18n.yml index 2014bebb1f3cc6..5a104b2025ef97 100644 --- a/.github/workflows/curriculum-i18n.yml +++ b/.github/workflows/curriculum-i18n.yml @@ -1,6 +1,4 @@ name: CI - Node.js - i18n -env: - NODE_OPTIONS: '--max_old_space_size=6144' on: # Run on push events, but only for the below branches diff --git a/.github/workflows/node.js-tests.yml b/.github/workflows/node.js-tests.yml index 959ff981e45cba..353c428030ef2d 100644 --- a/.github/workflows/node.js-tests.yml +++ b/.github/workflows/node.js-tests.yml @@ -1,6 +1,4 @@ name: CI - Node.js -env: - NODE_OPTIONS: '--max_old_space_size=6144' on: # Run on push events, but only for the below branches diff --git a/client/package.json b/client/package.json index 2822f5614b3792..9ee8db56541ea6 100644 --- a/client/package.json +++ b/client/package.json @@ -27,7 +27,7 @@ "create:env": "cross-env DEBUG=fcc:* ts-node ./tools/create-env.ts", "create:trending": "ts-node ./tools/download-trending.ts", "predevelop": "pnpm run common-setup && pnpm run build:scripts --env development", - "develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=5000\" gatsby develop --inspect=9230", + "develop": "cross-env NODE_OPTIONS=\"--max-old-space-size=7168\" gatsby develop --inspect=9230", "lint": "ts-node ./i18n/schema-validation.ts", "serve": "gatsby serve -p 8000", "serve-ci": "serve -l 8000 -c serve.json public", diff --git a/package.json b/package.json index 1f257fa07561d8..dfda3f5794d650 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "start": "npm-run-all create:shared -p develop:server serve:client", "start-ci": "npm-run-all create:shared -p start:server serve:client-ci", "start:server": "pm2 start api-server/ecosystem.config.js", - "test": "run-s create:shared build:curriculum build-workers test:*", + "test": "NODE_OPTIONS='--max-old-space-size=7168' run-s create:shared build:curriculum build-workers test:*", "test:source": "jest", "test:api": "cd api && jest --force-exit", "test:curriculum": "cd ./curriculum && pnpm test",