Fix benchmark artifact parsing.

* Added a extractor to extract raw logs from json format and then pipe
it into benchmark parser.
* Also added -alsologtostderr=false -logtostderr=false to reduce noisy logs.
This commit is contained in:
Cong Liu
2019-11-21 13:20:18 -05:00
parent 27067540ff
commit 016ab0b899
4 changed files with 92 additions and 1 deletions

View File

@@ -59,7 +59,8 @@ cd "${GOPATH}/src/k8s.io/kubernetes"
./hack/install-etcd.sh
# Run the benchmark tests and pretty-print the results into a separate file.
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem" \
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem -alsologtostderr=false -logtostderr=false" \
| (go run test/integration/benchmark/extractlog/main.go) \
| tee \
>(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \
>(go run test/integration/benchmark/jsonify/main.go "${ARTIFACTS}/BenchmarkResults_benchmark_$(date -u +%Y-%m-%dT%H:%M:%SZ).json" || cat > /dev/null)