From 2a50c029b25f133c61a2edeb452f72066d0d380c Mon Sep 17 00:00:00 2001 From: Marcus Andersson Date: Tue, 30 Nov 2021 10:50:35 +0100 Subject: [PATCH] Build: Increased the memory for the node process in the frontend build. (#42499) --- .drone.yml | 18 +++++++++++++++++- scripts/drone/steps/lib.star | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 88f74292f34..279b0530d10 100644 --- a/.drone.yml +++ b/.drone.yml @@ -136,6 +136,8 @@ steps: ${DRONE_BUILD_NUMBER} --no-pull-enterprise depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -538,6 +540,8 @@ steps: ${DRONE_BUILD_NUMBER} --no-pull-enterprise depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -1085,6 +1089,8 @@ steps: --edition oss --no-pull-enterprise ${DRONE_TAG} depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -1519,6 +1525,8 @@ steps: --edition enterprise --no-pull-enterprise ${DRONE_TAG} depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -2168,6 +2176,8 @@ steps: --edition oss --no-pull-enterprise v7.3.0-test depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -2591,6 +2601,8 @@ steps: --edition enterprise --no-pull-enterprise v7.3.0-test depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -3235,6 +3247,8 @@ steps: ${DRONE_BUILD_NUMBER} --no-pull-enterprise depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -3627,6 +3641,8 @@ steps: ${DRONE_BUILD_NUMBER} --no-pull-enterprise depends_on: - initialize + environment: + NODE_OPTIONS: --max_old_space_size=8192 image: grafana/build-container:1.4.8 name: build-frontend - commands: @@ -4186,6 +4202,6 @@ kind: secret name: drone_token --- kind: signature -hmac: 003d0d4a8b4e2fc81f575c838b064e5778c2562b445b26c5a76339ca95c95330 +hmac: e7679bfda524f6300d4fd0dbff9bfece564f0dc0b2aa995301ebf7c8f2fc00ea ... diff --git a/scripts/drone/steps/lib.star b/scripts/drone/steps/lib.star index 2e848c86978..7b87b1d0df7 100644 --- a/scripts/drone/steps/lib.star +++ b/scripts/drone/steps/lib.star @@ -380,6 +380,9 @@ def build_frontend_step(edition, ver_mode, is_downstream=False): 'depends_on': [ 'initialize', ], + 'environment': { + 'NODE_OPTIONS': '--max_old_space_size=8192', + }, 'commands': cmds, }