Merge pull request #78606 from oomichi/enable-api-log

Add E2E_VERBOSITY for getting API operation logs on conformance job
This commit is contained in:
Kubernetes Prow Robot 2019-06-14 09:32:20 -07:00 committed by GitHub
commit 461a40c3c7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 1 deletions

View File

@ -25,6 +25,7 @@ ENV E2E_FOCUS="\[Conformance\]"
ENV E2E_SKIP=""
ENV E2E_PROVIDER="local"
ENV E2E_PARALLEL="1"
ENV E2E_VERBOSITY="4"
ENV RESULTS_DIR="/tmp/results"
ENV KUBECONFIG=""

View File

@ -66,6 +66,8 @@ spec:
value: "skeleton"
- name: E2E_PARALLEL
value: "false"
- name: E2E_VERBOSITY
value: "4"
volumeMounts:
- name: output-volume
mountPath: /tmp/results

View File

@ -59,7 +59,7 @@ ginkgo_args+=(
)
set -x
/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 &
/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}" -v="${E2E_VERBOSITY}" | tee "${RESULTS_DIR}"/e2e.log &
set +x
# $! is the pid of tee, not ginkgo
wait "$(pgrep ginkgo)" && ret=0 || ret=$?