Report scheduler_perf integration test kube-scheduler metrics into artifacts dir

make test-integration ran within jenkins job does not collect json file with generated metrics
from kube-scheduler. The artifacts dir needs to be set explicitly through new -data-items-dir
test flag. The metrics are required to provide more comphrehensive information about
kube-scheduler internals.
This commit is contained in:
Jan Chaloupka 2020-02-14 15:11:49 +01:00
parent 208df3828d
commit 51120d133c

View File

@ -59,7 +59,7 @@ cd "${GOPATH}/src/k8s.io/kubernetes"
./hack/install-etcd.sh ./hack/install-etcd.sh
# Run the benchmark tests and pretty-print the results into a separate file. # Run the benchmark tests and pretty-print the results into a separate file.
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchmem -alsologtostderr=false -logtostderr=false" \ make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchmem -alsologtostderr=false -logtostderr=false -data-items-dir=${ARTIFACTS}" \
| (go run test/integration/benchmark/extractlog/main.go) \ | (go run test/integration/benchmark/extractlog/main.go) \
| tee \ | tee \
>(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \ >(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \