Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4c3c979

Browse files
committed
Remove gcloud components update from e2e.sh
1 parent 8218bcb commit 4c3c979

File tree

1 file changed

+1
-39
lines changed

1 file changed

+1
-39
lines changed

hack/jenkins/e2e.sh

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,7 @@ export KUBE_ADMISSION_CONTROL=${ADMISSION_CONTROL:-}
509509

510510
export KUBERNETES_PROVIDER=${KUBERNETES_PROVIDER}
511511
export PATH=${PATH}:/usr/local/go/bin
512+
export KUBE_SKIP_UPDATE=y
512513
export KUBE_SKIP_CONFIRMATIONS=y
513514

514515
# E2E Control Variables
@@ -541,45 +542,6 @@ if [[ "${E2E_UP,,}" == "true" || "${JENKINS_FORCE_GET_TARS:-}" =~ ^[yY]$ ]]; the
541542
exit 1
542543
fi
543544

544-
# Tell kube-up.sh to skip the update, it doesn't lock. An internal
545-
# gcloud bug can cause racing component updates to stomp on each
546-
# other.
547-
export KUBE_SKIP_UPDATE=y
548-
(
549-
# ----------- WARNING! DO NOT TOUCH THIS CODE -----------
550-
#
551-
# The purpose of this block is to ensure that only one job attempts to
552-
# update gcloud at a time.
553-
#
554-
# PLEASE DO NOT TOUCH THIS CODE unless you are certain you understand
555-
# implications. Please cc jlowdermilk@ or brendandburns@ on changes.
556-
557-
# If jenkins was recently restarted and jobs are failing with
558-
#
559-
# flock: 9: Permission denied
560-
#
561-
# ssh into the jenkins master and run
562-
# $ sudo chown jenkins:jenkins /var/run/lock/gcloud-components.lock
563-
#
564-
# Note, flock -n would prevent parallel runs from having to wait
565-
# here, but because we've set -o errexit, the err gets caught
566-
# despite running in a subshell. If a run has to wait, the subsequent
567-
# component update commands will be no-op, so no added delay.
568-
flock -x -w 60 9
569-
# We do NOT want to run gcloud components update under sudo, as that causes
570-
# the gcloud files to get chown'd by root, which makes them undeletable in
571-
# the case where we are installing gcloud under the workspace (e.g. for gke-ci
572-
# and friends). If we can't cleanup old workspaces, jenkins runs out of disk.
573-
#
574-
# If the update commands are failing with permission denied, ssh into
575-
# the jenkins master and run
576-
#
577-
# $ sudo chown -R jenkins:jenkins /usr/local/share/google/google-cloud-sdk
578-
gcloud components update -q || true
579-
gcloud components update alpha -q || true
580-
gcloud components update beta -q || true
581-
) 9>/var/run/lock/gcloud-components.lock
582-
583545
if [[ ! -z ${JENKINS_EXPLICIT_VERSION:-} ]]; then
584546
# Use an explicit pinned version like "ci/v0.10.0-101-g6c814c4" or
585547
# "release/v0.19.1"

0 commit comments

Comments
 (0)