From 79df5f58ff4cb1e0e635b4675ec4eb27be4b5993 Mon Sep 17 00:00:00 2001 From: Isaac Hollander McCreery Date: Thu, 15 Oct 2015 10:30:09 -0700 Subject: [PATCH] kubernetes-upgrade-1.0-1.1-gke configs using ci/latest-1.1 --- cluster/gke/util.sh | 4 ++-- hack/jenkins/e2e.sh | 40 ++++++++++++++++++++++++---------------- 2 files changed, 26 insertions(+), 18 deletions(-) diff --git a/cluster/gke/util.sh b/cluster/gke/util.sh index ce55ef372ee..cfeedf83051 100755 --- a/cluster/gke/util.sh +++ b/cluster/gke/util.sh @@ -63,8 +63,8 @@ function detect-project() { # Execute prior to running tests to build a release if required for env. function test-build-release() { echo "... in gke:test-build-release()" >&2 - # We currently use the Kubernetes version that GKE supports (not testing - # bleeding-edge builds). + echo "... We currently use the Kubernetes version that GKE supports," + echo "... not bleeding-edge builds." } # Verify needed binaries exist. diff --git a/hack/jenkins/e2e.sh b/hack/jenkins/e2e.sh index bcc8b3c482b..5aa71d32044 100755 --- a/hack/jenkins/e2e.sh +++ b/hack/jenkins/e2e.sh @@ -498,11 +498,11 @@ case ${JOB_NAME} in # This suite: # # 1. launches a cluster at release/latest, - # 2. upgrades the master to HEAD, + # 2. upgrades the master to ci/latest, # 3. runs release/latest e2es, # 4. upgrades the rest of the cluster, # 5. runs release/latest e2es again, then - # 6. runs HEAD e2es and tears down the cluster. + # 6. runs ci/latest e2es and tears down the cluster. kubernetes-upgrade-gke-step1-deploy) : ${DOGFOOD_GCLOUD:="true"} @@ -590,7 +590,7 @@ case ${JOB_NAME} in : ${E2E_CLUSTER_NAME:="gke-upgrade"} : ${E2E_NETWORK:="gke-upgrade"} # TODO(15011): these really shouldn't be (very) version skewed, but because - # we have to rebuild, it could get slightly out of whack. + # we have to get ci/latest again, it could get slightly out of whack. : ${E2E_OPT:="--check_version_skew=false"} : ${JENKINS_FORCE_GET_TARS:=y} : ${PROJECT:="kubernetes-jenkins-gke-upgrade"} @@ -610,16 +610,11 @@ case ${JOB_NAME} in # This suite: # # 1. launches a cluster at release/latest-1.0, - # 2. upgrades the master to ci/v1.1.0-alpha.1, + # 2. upgrades the master to ci/latest-1.1 # 3. runs release/latest-1.0 e2es, # 4. upgrades the rest of the cluster, # 5. runs release/latest-1.0 e2es again, then - # 6. runs ci/v1.1.0-alpha.1 e2es and tears down the cluster. - # - # TODO(13339): this suite should be upgrading to release/latest-1.1, or some - # other release candidate published version, not ci/v1.1.0-alpha.1, but - # because 1.1 is only an alpha release, and we haven't figured out alpha - # release mechanics, that target doesn't yet exist. + # 6. runs ci/latest-1.1 e2es and tears down the cluster. kubernetes-upgrade-1.0-1.1-gke-step1-deploy) : ${DOGFOOD_GCLOUD:="true"} @@ -639,13 +634,14 @@ case ${JOB_NAME} in : ${E2E_CLUSTER_NAME:="gke-upgrade-1-0"} : ${E2E_NETWORK:="gke-upgrade-1-0"} : ${E2E_OPT:="--check_version_skew=false"} + # We have to get tars at ci/latest (JENKINS_PUBLISHED_VERSION default) to + # get the latest upgrade logic. : ${JENKINS_FORCE_GET_TARS:=y} - : ${JENKINS_EXPLICIT_VERSION:="ci/v1.1.0-alpha.1"} : ${PROJECT:="kubernetes-jenkins-gke-upgrade"} : ${E2E_UP:="false"} : ${E2E_TEST:="true"} : ${E2E_DOWN:="false"} - : ${GINKGO_TEST_ARGS:="--ginkgo.focus=Skipped.*Cluster\supgrade.*upgrade-master"} + : ${GINKGO_TEST_ARGS:="--ginkgo.focus=Skipped.*Cluster\supgrade.*upgrade-master --upgrade-target=ci/latest-1.1"} ;; kubernetes-upgrade-1.0-1.1-gke-step3-e2e-old) @@ -674,13 +670,14 @@ case ${JOB_NAME} in : ${E2E_CLUSTER_NAME:="gke-upgrade-1-0"} : ${E2E_NETWORK:="gke-upgrade-1-0"} : ${E2E_OPT:="--check_version_skew=false"} + # We have to get tars at ci/latest (JENKINS_PUBLISHED_VERSION default) to + # get the latest upgrade logic. : ${JENKINS_FORCE_GET_TARS:=y} - : ${JENKINS_EXPLICIT_VERSION:="ci/v1.1.0-alpha.1"} : ${PROJECT:="kubernetes-jenkins-gke-upgrade"} : ${E2E_UP:="false"} : ${E2E_TEST:="true"} : ${E2E_DOWN:="false"} - : ${GINKGO_TEST_ARGS:="--ginkgo.focus=Skipped.*Cluster\supgrade.*upgrade-cluster"} + : ${GINKGO_TEST_ARGS:="--ginkgo.focus=Skipped.*Cluster\supgrade.*upgrade-cluster --upgrade-target=ci/latest-1.1"} ;; kubernetes-upgrade-1.0-1.1-gke-step5-e2e-old) @@ -709,7 +706,7 @@ case ${JOB_NAME} in : ${E2E_CLUSTER_NAME:="gke-upgrade-1-0"} : ${E2E_NETWORK:="gke-upgrade-1-0"} : ${JENKINS_FORCE_GET_TARS:=y} - : ${JENKINS_EXPLICIT_VERSION:="ci/v1.1.0-alpha.1"} + : ${JENKINS_PUBLISHED_VERSION:="ci/latest-1.1"} : ${PROJECT:="kubernetes-jenkins-gke-upgrade"} : ${E2E_UP:="false"} : ${E2E_TEST:="true"} @@ -722,6 +719,17 @@ case ${JOB_NAME} in )"} ;; + # kubernetes-upgrade-gce + # + # This suite: + # + # 1. launches a cluster at release/latest, + # 2. upgrades the master to ci/latest, + # 3. runs release/latest e2es, + # 4. upgrades the rest of the cluster, + # 5. runs release/latest e2es again, then + # 6. runs ci/latest e2es and tears down the cluster. + kubernetes-upgrade-gce-step1-deploy) : ${E2E_CLUSTER_NAME:="gce-upgrade"} : ${E2E_NETWORK:="gce-upgrade"} @@ -806,7 +814,7 @@ case ${JOB_NAME} in : ${E2E_CLUSTER_NAME:="gce-upgrade"} : ${E2E_NETWORK:="gce-upgrade"} # TODO(15011): these really shouldn't be (very) version skewed, but because - # we have to rebuild, it could get slightly out of whack. + # we have to get ci/latest again, it could get slightly out of whack. : ${E2E_OPT:="--check_version_skew=false"} : ${JENKINS_FORCE_GET_TARS:=y} : ${PROJECT:="k8s-jkns-gce-upgrade"}