From f880950c3efbd005d2e171a5fd1c879a3221367c Mon Sep 17 00:00:00 2001 From: Ayke van Laethem Date: Tue, 6 Apr 2021 12:19:33 +0200 Subject: [PATCH] ci: limit number of jobs for assert-test-linux This job is causing OOM errors on CircleCI so limit it to just two jobs (which should be fine on a 2CPU executor). Hopefully this fixes the errors in CI that have occured recently. --- .circleci/config.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 316507c9..df88adaa 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -172,7 +172,11 @@ commands: key: llvm-build-11-linux-v2-assert paths: llvm-build - - run: make ASSERT=1 + - run: | + # Note: -p=2 limits parallelism to two jobs at a time, which is + # necessary to keep memory consumption down and avoid OOM (for a + # 2CPU/4GB executor). + GOFLAGS="-p=2" make ASSERT=1 - build-wasi-libc - run: name: "Test TinyGo"