mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-20 00:11:21 -05:00
test: automatically lower Ginkgo parallelism when using race detection
When race detection is enabled, merely running 25 e2e.test instances was too much and the OOM killer shut down the Prow test pod because of the memory overhead. A CI job could control that via GINKGO_PARALLEL_NODES, but we should also have saner defaults which take this into account.
This commit is contained in:
parent
7a62519b36
commit
aefd2effc5
1 changed files with 10 additions and 1 deletions
|
|
@ -181,7 +181,16 @@ case "${E2E_TEST_DEBUG_TOOL:-ginkgo}" in
|
|||
if [[ -n "${GINKGO_PARALLEL_NODES:-}" ]]; then
|
||||
program+=("--nodes=${GINKGO_PARALLEL_NODES}")
|
||||
elif [[ ${GINKGO_PARALLEL} =~ ^[yY]$ ]]; then
|
||||
program+=("--nodes=25")
|
||||
if [[ "${KUBE_RACE:-}" == "-race" ]]; then
|
||||
# When race detection is enabled, merely running 25 e2e.test instances was too much
|
||||
# and the OOM killer shut down the Prow test pod because of the memory overhead.
|
||||
#
|
||||
# A CI job could control that via GINKGO_PARALLEL_NODES, but we should also have
|
||||
# saner defaults which take this into account.
|
||||
program+=("--nodes=10")
|
||||
else
|
||||
program+=("--nodes=25")
|
||||
fi
|
||||
fi
|
||||
program+=("${ginkgo_args[@]:+${ginkgo_args[@]}}")
|
||||
;;
|
||||
|
|
|
|||
Loading…
Reference in a new issue