File tree Expand file tree Collapse file tree 3 files changed +19
-15
lines changed
cluster/images/conformance Expand file tree Collapse file tree 3 files changed +19
-15
lines changed Original file line number Diff line number Diff line change 63
63
- name : E2E_SKIP
64
64
value : " "
65
65
- name : E2E_PROVIDER
66
- value : " local "
66
+ value : " skeleton "
67
67
- name : E2E_PARALLEL
68
- value : " 1 "
68
+ value : " false "
69
69
volumeMounts :
70
70
- name : output-volume
71
71
mountPath : /tmp/results
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ shutdown () {
25
25
26
26
# Kind of a hack to wait for this pid to finish.
27
27
# Since it's not a child of this shell we cannot use wait.
28
- tail --pid ${E2E_SUITE_PID} -f /dev/null
28
+ tail --pid " ${E2E_SUITE_PID} " -f /dev/null
29
29
saveResults
30
30
}
31
31
@@ -39,23 +39,28 @@ saveResults() {
39
39
# We get the TERM from kubernetes and handle it gracefully
40
40
trap shutdown TERM
41
41
42
- ginkgo_args=(
43
- " --focus=${E2E_FOCUS} "
44
- " --skip=${E2E_SKIP} "
45
- " --noColor=true"
46
- )
47
-
42
+ ginkgo_args=()
48
43
if [[ -n ${E2E_DRYRUN:- } ]]; then
49
44
ginkgo_args+=(" --dryRun=true" )
50
45
fi
51
46
52
47
case ${E2E_PARALLEL} in
53
- ' y' |' Y' ) ginkgo_args+=(" --nodes=25" ) ;;
54
- [1-9]|[1-9][0-9]* ) ginkgo_args+=(" --nodes=${E2E_PARALLEL} " ) ;;
48
+ ' y' |' Y' |' true' )
49
+ # The flag '--p' will automatically detect the optimal number of ginkgo nodes.
50
+ ginkgo_args+=(" --p" )
51
+ # Skip serial tests if parallel mode is enabled.
52
+ E2E_SKIP=" \\ [Serial\\ ]|${E2E_SKIP} " ;;
55
53
esac
56
54
57
- echo " /usr/local/bin/ginkgo ${ginkgo_args[@]} /usr/local/bin/e2e.test -- --disable-log-dump --repo-root=/kubernetes --provider=\" ${E2E_PROVIDER} \" --report-dir=\" ${RESULTS_DIR} \" --kubeconfig=\" ${KUBECONFIG} \" "
58
- /usr/local/bin/ginkgo " ${ginkgo_args[@]} " /usr/local/bin/e2e.test -- --disable-log-dump --repo-root=/kubernetes --provider=" ${E2E_PROVIDER} " --report-dir=" ${RESULTS_DIR} " --kubeconfig=" ${KUBECONFIG} " | tee ${RESULTS_DIR} /e2e.log &
55
+ ginkgo_args+=(
56
+ " --focus=${E2E_FOCUS} "
57
+ " --skip=${E2E_SKIP} "
58
+ " --noColor=true"
59
+ )
60
+
61
+ set -x
62
+ /usr/local/bin/ginkgo " ${ginkgo_args[@]} " /usr/local/bin/e2e.test -- --disable-log-dump --repo-root=/kubernetes --provider=" ${E2E_PROVIDER} " --report-dir=" ${RESULTS_DIR} " --kubeconfig=" ${KUBECONFIG} " | tee " ${RESULTS_DIR} " /e2e.log &
63
+ set +x
59
64
# $! is the pid of tee, not ginkgo
60
- wait $( pgrep ginkgo)
65
+ wait " $( pgrep ginkgo) "
61
66
saveResults
Original file line number Diff line number Diff line change 17
17
./cluster/gce/upgrade-aliases.sh
18
18
./cluster/gce/upgrade.sh
19
19
./cluster/gce/util.sh
20
- ./cluster/images/conformance/run_e2e.sh
21
20
./cluster/log-dump/log-dump.sh
22
21
./cluster/pre-existing/util.sh
23
22
./cluster/restore-from-backup.sh
You can’t perform that action at this time.
0 commit comments