Skip to content

Commit 4a456ab

Browse files
authored
Allow scripts to use much more memory (#160)
1 parent acd2ed5 commit 4a456ab

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ cd results-analysis-cache.git/
1212
git fetch --all --tags
1313
cd ../
1414

15+
# Scoring scripts may require more memory than the default.
16+
export NODE_OPTIONS="--max-old-space-size=8192"
17+
1518
TO_DATE=$(date -d "tomorrow 13:00" '+%Y-%m-%d')
1619

1720
node git-write.js --max-time=300 --max-age-days=5
@@ -25,7 +28,7 @@ update_bsf_csv() {
2528
EXPERIMENTAL_FLAG="--experimental"
2629
fi
2730

28-
node --max-old-space-size=8192 browser-specific-failures.js \
31+
node browser-specific-failures.js \
2932
${EXPERIMENTAL_FLAG} --from=${FROM_DATE} --to=${TO_DATE} \
3033
--output=${OUTPUT}
3134
}

0 commit comments

Comments
 (0)