From cb56fdc27e225c615a81f82eda9ca2c486aaffe3 Mon Sep 17 00:00:00 2001 From: Isaac Hollander McCreery Date: Tue, 8 Dec 2015 15:32:08 -0800 Subject: [PATCH] Add 7-stage upgrade configs to configure_upgrade_step --- hack/jenkins/e2e.sh | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index 60029227c64..a68d3250289 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -51,11 +51,12 @@ function join_regex_no_empty() { # # These suites: # step1: launch a cluster at $old_version, -# step2: upgrades the master to $new_version, -# step3: runs $old_version e2es, -# step4: upgrades the rest of the cluster, -# step5: runs $old_version e2es again, then -# step6: runs $new_version e2es and tears down the cluster. +# step2: runs $new_version Kubectl e2es, +# step3: upgrades the master to $new_version, +# step4: runs $old_version e2es, +# step5: upgrades the rest of the cluster, +# step6: runs $old_version e2es again, then +# step7: runs $new_version e2es and tears down the cluster. # # Assumes globals: # $JOB_NAME @@ -125,6 +126,18 @@ function configure_upgrade_step() { ;; step2) + # Run new e2e kubectl tests + JENKINS_PUBLISHED_VERSION="${new_version}" + JENKINS_FORCE_GET_TARS=y + + E2E_OPT="--check_version_skew=false" + E2E_UP="false" + E2E_TEST="true" + E2E_DOWN="false" + GINKGO_TEST_ARGS="--ginkgo.focus=Kubectl" + ;; + + step3) # Use upgrade logic of version we're upgrading to. JENKINS_PUBLISHED_VERSION="${new_version}" JENKINS_FORCE_GET_TARS=y @@ -136,7 +149,7 @@ function configure_upgrade_step() { GINKGO_TEST_ARGS="--ginkgo.focus=Cluster\sUpgrade.*upgrade-master --upgrade-target=${new_version}" ;; - step3) + step4) # Run old e2es JENKINS_PUBLISHED_VERSION="${old_version}" JENKINS_FORCE_GET_TARS=y @@ -153,7 +166,7 @@ function configure_upgrade_step() { fi ;; - step4) + step5) # Use upgrade logic of version we're upgrading to. JENKINS_PUBLISHED_VERSION="${new_version}" JENKINS_FORCE_GET_TARS=y @@ -165,7 +178,7 @@ function configure_upgrade_step() { GINKGO_TEST_ARGS="--ginkgo.focus=Cluster\sUpgrade.*upgrade-cluster --upgrade-target=${new_version}" ;; - step5) + step6) # Run old e2es JENKINS_PUBLISHED_VERSION="${old_version}" JENKINS_FORCE_GET_TARS=y @@ -182,7 +195,7 @@ function configure_upgrade_step() { fi ;; - step6) + step7) # Run new e2es JENKINS_PUBLISHED_VERSION="${new_version}" JENKINS_FORCE_GET_TARS=y