Node: double max_old_space_size (#26365)

This commit is contained in:
Tom Ross 2021-10-20 15:07:10 +01:00 committed by GitHub
parent 9511dfe304
commit 54b08226b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 7 additions and 7 deletions

View File

@ -2,7 +2,7 @@ env:
ENTERPRISE: '1'
MINIFY: '1'
FORCE_COLOR: '3'
NODE_OPTIONS: --max_old_space_size=4096
NODE_OPTIONS: --max_old_space_size=8192
steps:
- command:

View File

@ -10,11 +10,11 @@
"storybook": "STORIES_GLOB=client/browser/src/**/*.story.tsx yarn workspace @sourcegraph/storybook run start",
"fetch-code-intel-extensions": "node scripts/fetch-code-intel-extensions",
"build-inline-extensions": "node scripts/build-inline-extensions",
"dev": "yarn run build-inline-extensions && NODE_ENV=development NODE_OPTIONS=--max_old_space_size=4096 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/development",
"dev": "yarn run build-inline-extensions && NODE_ENV=development NODE_OPTIONS=--max_old_space_size=8192 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/development",
"dev:no-reload": "AUTO_RELOAD=false yarn run dev",
"dev:firefox": "if type web-ext 2>/dev/null; then web-ext run --source-dir ./build/firefox; else echo 'web-ext not found. Install it with: yarn global add web-ext'; exit 1; fi",
"dev:chrome": "TARGETS=chrome yarn run dev",
"build": "yarn --cwd ../.. generate && yarn run build-inline-extensions && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=4096 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/build",
"build": "yarn --cwd ../.. generate && yarn run build-inline-extensions && NODE_ENV=production NODE_OPTIONS=--max_old_space_size=8192 TS_NODE_COMPILER_OPTIONS=\"{\\\"module\\\":\\\"commonjs\\\"}\" node -r ts-node/register scripts/build",
"release": "yarn release:chrome",
"release:chrome": "webstore upload --auto-publish --source build/bundles/chrome-bundle.zip --extension-id dgjhfomjieaadpoljlnidmbgkdffpack --client-id $GOOGLE_CLIENT_ID --client-secret $GOOGLE_CLIENT_SECRET --refresh-token $GOOGLE_REFRESH_TOKEN",
"release:ff": "./scripts/release-ff.sh",

View File

@ -19,7 +19,7 @@
"storybook": "STORIES_GLOB=client/web/src/**/*.story.tsx yarn workspace @sourcegraph/storybook run start",
"serve:dev": "ts-node-transpile-only --project ./dev/tsconfig.json ./dev/server/development.server.ts",
"serve:prod": "ts-node-transpile-only --project ./dev/tsconfig.json ./dev/server/production.server.ts",
"task:gulp": "cross-env NODE_OPTIONS=\"--max_old_space_size=4096\" gulp",
"task:gulp": "cross-env NODE_OPTIONS=\"--max_old_space_size=8192\" gulp",
"dev": "yarn task:gulp dev",
"unsafeDev": "yarn task:gulp unsafeDev",
"build": "yarn task:gulp build",

View File

@ -89,7 +89,7 @@ commands:
env:
WEBPACK_DEV_SERVER: 1
NODE_ENV: development
NODE_OPTIONS: "--max_old_space_size=4096"
NODE_OPTIONS: "--max_old_space_size=8192"
checks:
docker:

View File

@ -38,7 +38,7 @@ func GeneratePipeline(c Config) (*bk.Pipeline, error) {
// Add debug flags for scripts to consume
"CI_DEBUG_PROFILE": strconv.FormatBool(c.MessageFlags.ProfilingEnabled),
// Bump Node.js memory to prevent OOM crashes
"NODE_OPTIONS": "--max_old_space_size=4096",
"NODE_OPTIONS": "--max_old_space_size=8192",
}
// On release branches Percy must compare to the previous commit of the release branch, not main.

View File

@ -78,7 +78,7 @@ env:
SOURCEGRAPH_HTTPS_PORT: 3443
# Required for `web` commands
NODE_OPTIONS: '--max_old_space_size=4096'
NODE_OPTIONS: '--max_old_space_size=8192'
# Default `NODE_ENV` to `development`
NODE_ENV: development