Skip to content

Commit f967c54

Browse files
committed
scheduler benchmark: allow to override bench prefix
Right now, hack/jenkins/dockerized.sh is solely utilized by scheduler perf jenkins job. There's an effort to extend the scheduler performance suite. In order to run individual subsuites separately, we need a way to select a subset of benchmark tests to be run. Golang exposes -bench option which allows to specify a prefix of benchmark tests to be run.
1 parent f4caa62 commit f967c54

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

hack/jenkins/benchmark-dockerized.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ set -o xtrace
2222
retry() {
2323
for i in {1..5}; do
2424
if "$@"
25-
then
25+
then
2626
return 0
2727
else
2828
sleep "${i}"
@@ -59,7 +59,7 @@ cd "${GOPATH}/src/k8s.io/kubernetes"
5959
./hack/install-etcd.sh
6060

6161
# Run the benchmark tests and pretty-print the results into a separate file.
62-
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=. -benchmem -alsologtostderr=false -logtostderr=false" \
62+
make test-integration WHAT="$*" KUBE_TEST_ARGS="-run='XXX' -bench=${TEST_PREFIX:-.} -benchmem -alsologtostderr=false -logtostderr=false" \
6363
| (go run test/integration/benchmark/extractlog/main.go) \
6464
| tee \
6565
>(prettybench -no-passthrough > "${ARTIFACTS}/BenchmarkResults.txt") \

0 commit comments

Comments
 (0)