mirror of
https://github.com/prometheus/prometheus
synced 2024-12-23 23:13:11 +00:00
.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:
parent
bb3141e9f0
commit
abdcbda82a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user