Merge pull request #28191 from lavalamp/red-dot-city

Automatic merge from submit-queue

unstable -> failed

@fejta and @ixdy
This commit is contained in:
k8s-merge-robot 2016-06-29 15:35:08 -07:00 committed by GitHub
commit 8621326a7a

View File

@ -192,6 +192,7 @@ function e2e_test() {
echo "Publish version to ci/latest-green.txt: $(cat version)" echo "Publish version to ci/latest-green.txt: $(cat version)"
gsutil cp ./version gs://kubernetes-release/ci/latest-green.txt gsutil cp ./version gs://kubernetes-release/ci/latest-green.txt
fi fi
return ${exitcode}
} }
echo "--------------------------------------------------------------------------------" echo "--------------------------------------------------------------------------------"
@ -199,6 +200,10 @@ echo "Test Environment:"
printenv | sort printenv | sort
echo "--------------------------------------------------------------------------------" echo "--------------------------------------------------------------------------------"
# Set this var instead of exiting-- we must do the cluster teardown step. We'll
# return this at the very end.
EXIT_CODE=0
# We get the Kubernetes tarballs unless we are going to use old ones # We get the Kubernetes tarballs unless we are going to use old ones
if [[ "${JENKINS_USE_EXISTING_BINARIES:-}" =~ ^[yY]$ ]]; then if [[ "${JENKINS_USE_EXISTING_BINARIES:-}" =~ ^[yY]$ ]]; then
echo "Using existing binaries; not cleaning, fetching, or unpacking new ones." echo "Using existing binaries; not cleaning, fetching, or unpacking new ones."
@ -329,7 +334,7 @@ if [[ -n "${JENKINS_PUBLISHED_SKEW_VERSION:-}" ]]; then
if [[ "${E2E_UPGRADE_TEST:-}" == "true" ]]; then if [[ "${E2E_UPGRADE_TEST:-}" == "true" ]]; then
# Add a report prefix for the e2e tests so that the tests don't get overwritten when we run # Add a report prefix for the e2e tests so that the tests don't get overwritten when we run
# the rest of the e2es. # the rest of the e2es.
E2E_REPORT_PREFIX='upgrade' e2e_test "${GINKGO_UPGRADE_TEST_ARGS:-}" E2E_REPORT_PREFIX='upgrade' e2e_test "${GINKGO_UPGRADE_TEST_ARGS:-}" || EXIT_CODE=1
fi fi
if [[ "${JENKINS_USE_SKEW_TESTS:-}" != "true" ]]; then if [[ "${JENKINS_USE_SKEW_TESTS:-}" != "true" ]]; then
# Back out into the old tests now that we've downloaded & maybe upgraded. # Back out into the old tests now that we've downloaded & maybe upgraded.
@ -344,7 +349,7 @@ if [[ -n "${JENKINS_PUBLISHED_SKEW_VERSION:-}" ]]; then
fi fi
if [[ "${E2E_TEST,,}" == "true" ]]; then if [[ "${E2E_TEST,,}" == "true" ]]; then
e2e_test "${GINKGO_TEST_ARGS:-}" e2e_test "${GINKGO_TEST_ARGS:-}" || EXIT_CODE=1
fi fi
### Start Kubemark ### ### Start Kubemark ###
@ -362,6 +367,8 @@ if [[ "${USE_KUBEMARK:-}" == "true" ]]; then
# junit.xml results for test failures and not process the exit code. This is needed by jenkins to more gracefully # junit.xml results for test failures and not process the exit code. This is needed by jenkins to more gracefully
# handle blocking the merge queue as a result of test failure flakes. Infrastructure failures should continue to # handle blocking the merge queue as a result of test failure flakes. Infrastructure failures should continue to
# exit non-0. # exit non-0.
# TODO: The above comment is no longer accurate. Need to fix this before
# turning xunit off for the postsubmit tests. See: #28200
./test/kubemark/run-e2e-tests.sh --ginkgo.focus="${KUBEMARK_TESTS:-starting\s30\spods}" "${KUBEMARK_TEST_ARGS:-}" || dump_cluster_logs ./test/kubemark/run-e2e-tests.sh --ginkgo.focus="${KUBEMARK_TESTS:-starting\s30\spods}" "${KUBEMARK_TEST_ARGS:-}" || dump_cluster_logs
./test/kubemark/stop-kubemark.sh ./test/kubemark/stop-kubemark.sh
NUM_NODES=${NUM_NODES_BKP} NUM_NODES=${NUM_NODES_BKP}
@ -394,6 +401,8 @@ if [[ "${E2E_UP:-}" == "${E2E_DOWN:-}" && -f "${gcp_resources_before}" && -f "${
if [[ -n $(echo "${difference}" | tail -n +3 | grep -E "^\+") ]] && [[ "${FAIL_ON_GCP_RESOURCE_LEAK:-}" == "true" ]]; then if [[ -n $(echo "${difference}" | tail -n +3 | grep -E "^\+") ]] && [[ "${FAIL_ON_GCP_RESOURCE_LEAK:-}" == "true" ]]; then
echo "${difference}" echo "${difference}"
echo "!!! FAIL: Google Cloud Platform resources leaked while running tests!" echo "!!! FAIL: Google Cloud Platform resources leaked while running tests!"
exit 1 EXIT_CODE=1
fi fi
fi fi
exit ${EXIT_CODE}