From abdcbda82a62f2a7ebffe428b90e2d1e41e0fa06 Mon Sep 17 00:00:00 2001 From: Simon Pasquier Date: Mon, 15 Jul 2019 11:20:08 +0200 Subject: [PATCH] .circleci/config.yml: limit the number of parallel tasks (#5705) If unlimited, it takes too much memory and the job is killed by the CI. Signed-off-by: Simon Pasquier --- .circleci/config.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c96256bb..0b24acb2c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,10 +18,15 @@ jobs: steps: - prometheus/setup_environment - run: - command: make check_license style unused lint build check_assets + command: make environment: # Run garbage collection more aggresively to avoid getting OOMed during the lint phase. GOGC: "20" + # By default Go uses GOMAXPROCS but a Circle CI executor has many + # cores (> 30) while the CPU and RAM resources are throttled. If we + # don't limit this to the number of allocated cores, the job is + # likely to get OOMed and killed. + GOOPTS: "-p 2" - prometheus/check_proto - prometheus/store_artifact: file: prometheus