Enable API operation log on conformance job

To verify all conformance tests call GA APIs only without alpha,
beta APIs, this enables API operation log on the conformance job.
One concern is this makes e2e.log huge. So to consider it, the
original size of e2e.log is 112,909[1] before applying this.

[1]: https://gcsweb.k8s.io/gcs/kubernetes-jenkins/pr-logs/pull/70639/pull-kubernetes-conformance-image-test/1116565046130905089/artifacts/
This commit is contained in:
Kenichi Omichi 2019-05-31 22:14:51 +00:00
parent acb321e614
commit bb95ec0f68
3 changed files with 4 additions and 1 deletions

View File

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

View File

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

View File

@ -59,7 +59,7 @@ ginkgo_args+=(
) )
set -x 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 set +x
# $! is the pid of tee, not ginkgo # $! is the pid of tee, not ginkgo
wait "$(pgrep ginkgo)" && ret=0 || ret=$? wait "$(pgrep ginkgo)" && ret=0 || ret=$?