mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #6751 from wojtek-t/jenkins_for_scalability
Prepare for running scalability test on Jenkins
This commit is contained in:
commit
15efb17a0c
@ -37,6 +37,21 @@ else
|
||||
export HOME=${WORKSPACE} # Nothing should want Jenkins $HOME
|
||||
fi
|
||||
|
||||
# Additional parameters that are passed to ginkgo runner.
|
||||
GINKGO_TEST_ARGS=""
|
||||
|
||||
if [[ "${SCALABILITY:-}" == "true" ]]; then
|
||||
export MASTER_SIZE="n1-standard-4"
|
||||
# TODO(wojtek-t): Once we have enough quota for the project, increase
|
||||
# NUM_MINIONS to 100 (which is our v1.0 goal).
|
||||
export NUM_MINIONS="10"
|
||||
GINKGO_TEST_ARGS="--ginkgo.focus=Density "
|
||||
else
|
||||
export MASTER_SIZE="g1-small"
|
||||
export NUM_MINIONS="2"
|
||||
fi
|
||||
|
||||
|
||||
# Unlike the kubernetes-build script, we expect some environment
|
||||
# variables to be set. We echo these immediately and presume "set -o
|
||||
# nounset" will force the caller to set them: (The first several are
|
||||
@ -111,7 +126,7 @@ go run ./hack/e2e.go -v --ctl="version --match-server-version=false"
|
||||
### Run tests ###
|
||||
# Jenkins will look at the junit*.xml files for test failures, so don't exit
|
||||
# with a nonzero error code if it was only tests that failed.
|
||||
go run ./hack/e2e.go ${E2E_OPT} -v --test --test_args="--ginkgo.noColor" || true
|
||||
go run ./hack/e2e.go ${E2E_OPT} -v --test --test_args="${GINKGO_TEST_ARGS}--ginkgo.noColor" || true
|
||||
|
||||
### Clean up ###
|
||||
go run ./hack/e2e.go ${E2E_OPT} -v --down
|
||||
|
Loading…
Reference in New Issue
Block a user