File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ commands:
81
81
dockerize -wait tcp://localhost:6379 -timeout 1m
82
82
- run :
83
83
name : Run package tests
84
+ environment :
85
+ # When running on Docker in Circle, Go thinks there are 36 CPUs
86
+ # which means the default number of parallel build processes will be 36
87
+ # but using 36 build processes can lead to OOM errors
88
+ # because according to https://circleci.com/docs/2.0/configuration-reference/#resource_class ,
89
+ # the default Docker container only has 2 CPUs available.
90
+ # That is why we explicitly specify -p=4 to reduce the number of parallel build processes
91
+ GOFLAGS : -p=4
84
92
command : ./support/scripts/run_tests
85
93
86
94
# build_packages creates the project's artifacts.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -e
3
3
4
+ echo " using GOFLAGS=$GOFLAGS "
4
5
go test -race .
5
6
find . -maxdepth 1 -mindepth 1 -type d \
6
7
| egrep -v ' ^\.\/vendor|^.\/docs|^\.\/\..*' \
You can’t perform that action at this time.
0 commit comments