Skip to content

Commit

Permalink
Merge pull request #6579 from wordpress-mobile/ci-fix-heap-out-of-mem…
Browse files Browse the repository at this point in the history
…ory-error

Increase node max available memory in `Build JS Bundles` job
  • Loading branch information
fluiddot authored Jan 26, 2024
2 parents 95d7d30 + 485f13f commit 5f84e51
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
x-common-params:
- &gb-mobile-docker-container
docker#v3.8.0:
image: 'public.ecr.aws/automattic/gb-mobile-image:latest'
environment:
- 'CI=true'
# Allow WP-CLI to be run as root, otherwise it throws an exception.
# Reference: https://git.io/J9q2S
- 'WP_CLI_ALLOW_ROOT=true'
# Increase max available memory for node
- 'NODE_OPTIONS="--max-old-space-size=4096"'
- &git-cache-plugin
automattic/git-s3-cache#1.1.4:
# Ensure these settings match what's defined in cache-builder.yml
Expand Down Expand Up @@ -117,6 +107,8 @@ steps:
- *ci_toolkit_plugin # unused?
- *nvm_plugin
- *git-cache-plugin
env:
NODE_OPTIONS: "--max-old-space-size=4096"
command: |
echo "--- :npm: Install Node dependencies"
npm ci --unsafe-perm --prefer-offline --no-audit --no-progress
Expand Down

0 comments on commit 5f84e51

Please sign in to comment.