Skip to content

Commit

Permalink
Add 7-stage upgrade configs to configure_upgrade_step
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Hollander McCreery committed Dec 8, 2015
1 parent d568a92 commit cb56fdc
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions hack/jenkins/e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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
Expand All @@ -182,7 +195,7 @@ function configure_upgrade_step() {
fi
;;

step6)
step7)
# Run new e2es
JENKINS_PUBLISHED_VERSION="${new_version}"
JENKINS_FORCE_GET_TARS=y
Expand Down

0 comments on commit cb56fdc

Please sign in to comment.