use 4 parallelism for go-test and print package names (#7152)

This commit is contained in:
Alvin Huang 2020-01-28 12:21:55 -05:00 committed by GitHub
parent 6681be918a
commit 33bfc02fda
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -91,7 +91,7 @@ jobs:
go-test:
docker:
- image: *GOLANG_IMAGE
parallelism: 8
parallelism: 4
environment:
<<: *ENVIRONMENT
GOTAGS: "" # No tags for OSS but there are for enterprise
@ -109,6 +109,8 @@ jobs:
- run: sudo service rsyslog start
- run: |
PACKAGE_NAMES=$(go list ./... | circleci tests split --split-by=timings --timings-type=classname)
echo "Running $(echo $PACKAGE_NAMES | wc -w) packages"
echo $PACKAGE_NAMES
gotestsum --format=short-verbose --junitfile $TEST_RESULTS_DIR/gotestsum-report.xml -- -tags=$GOTAGS -p 2 -cover -coverprofile=cov_$CIRCLE_NODE_INDEX.part $PACKAGE_NAMES
# save coverage report parts