.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 <spasquie@redhat.com>
This commit is contained in:
Simon Pasquier 2019-07-15 11:20:08 +02:00 committed by GitHub
parent bb3141e9f0
commit abdcbda82a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,10 +18,15 @@ jobs:
steps: steps:
- prometheus/setup_environment - prometheus/setup_environment
- run: - run:
command: make check_license style unused lint build check_assets command: make
environment: environment:
# Run garbage collection more aggresively to avoid getting OOMed during the lint phase. # Run garbage collection more aggresively to avoid getting OOMed during the lint phase.
GOGC: "20" 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/check_proto
- prometheus/store_artifact: - prometheus/store_artifact:
file: prometheus file: prometheus