Skip to content

Commit ff7c280

Browse files
author
k8s-merge-robot
authored
Merge pull request kubernetes#27163 from ixdy/curl-flakes
Automatic merge from submit-queue Pass --keepalive-time 2 to curl to fix unexpected EOF flakes I hope this fixes kubernetes#22967.
2 parents e235120 + e89e262 commit ff7c280

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

hack/jenkins/dockerized-e2e-runner.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,4 @@ docker run --rm=true -i \
6363
"${docker_extra_args[@]:+${docker_extra_args[@]}}" \
6464
"${METADATA_SERVER_ADD_HOST_ARGS[@]:+${METADATA_SERVER_ADD_HOST_ARGS[@]}}" \
6565
gcr.io/google_containers/kubekins-test:0.11 \
66-
bash -c "bash <(curl -fsS --retry 3 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/e2e-runner.sh')"
66+
bash -c "bash <(curl -fsS --retry 3 --keepalive-time 2 'https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/e2e-runner.sh')"

hack/jenkins/e2e-runner.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ function dump_cluster_logs() {
141141

142142
### Pre Set Up ###
143143
if running_in_docker; then
144-
curl -fsSL --retry 3 -o "${WORKSPACE}/google-cloud-sdk.tar.gz" 'https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz'
144+
curl -fsSL --retry 3 --keepalive-time 2 -o "${WORKSPACE}/google-cloud-sdk.tar.gz" 'https://dl.google.com/dl/cloudsdk/channels/rapid/google-cloud-sdk.tar.gz'
145145
install_google_cloud_sdk_tarball "${WORKSPACE}/google-cloud-sdk.tar.gz" /
146146
fi
147147

@@ -269,7 +269,7 @@ cd kubernetes
269269
# Upload build start time and k8s version to GCS, but not on PR Jenkins.
270270
# On PR Jenkins this is done before the build.
271271
if [[ ! "${JOB_NAME}" =~ -pull- ]]; then
272-
JENKINS_BUILD_STARTED=true bash <(curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh")
272+
JENKINS_BUILD_STARTED=true bash <(curl -fsS --retry 3 --keepalive-time 2 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh")
273273
fi
274274

275275
# Have cmd/e2e run by goe2e.sh generate JUnit report in ${WORKSPACE}/junit*.xml
@@ -287,7 +287,7 @@ if [[ ( ${KUBERNETES_PROVIDER} == "gce" || ${KUBERNETES_PROVIDER} == "gke" ) &&
287287
gcp_list_resources="true"
288288
# Always pull the script from HEAD, overwriting the local one if it exists.
289289
# We do this to pick up fixes if we are running tests from a branch or tag.
290-
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/gce/list-resources.sh" > "${gcp_list_resources_script}"
290+
curl -fsS --retry 3 --keepalive-time 2 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/cluster/gce/list-resources.sh" > "${gcp_list_resources_script}"
291291
else
292292
gcp_list_resources="false"
293293
fi

hack/jenkins/upload-finished.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,5 +39,5 @@ echo
3939
if [[ -x ./hack/jenkins/upload-to-gcs.sh ]]; then
4040
./hack/jenkins/upload-to-gcs.sh
4141
else
42-
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
42+
curl -fsS --retry 3 --keepalive-time 2 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
4343
fi

hack/jenkins/upload-started.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ echo
3434
if [[ -x ./hack/jenkins/upload-to-gcs.sh ]]; then
3535
./hack/jenkins/upload-to-gcs.sh
3636
else
37-
curl -fsS --retry 3 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
37+
curl -fsS --retry 3 --keepalive-time 2 "https://raw.githubusercontent.com/kubernetes/kubernetes/master/hack/jenkins/upload-to-gcs.sh" | bash -
3838
fi

hack/lib/etcd.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ kube::etcd::install() {
7474
cd "${KUBE_ROOT}/third_party"
7575
if [[ $(uname) == "Darwin" ]]; then
7676
download_file="etcd-v${ETCD_VERSION}-darwin-amd64.zip"
77-
curl -fsSLO --retry 3 https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/"${download_file}"
77+
curl -fsSLO --retry 3 --keepalive-time 2 https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/"${download_file}"
7878
unzip -o "${download_file}"
7979
ln -fns "etcd-v${ETCD_VERSION}-darwin-amd64" etcd
8080
rm "${download_file}"
8181
else
82-
curl -fsSL --retry 3 https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz | tar xzf -
82+
curl -fsSL --retry 3 --keepalive-time 2 https://github.com/coreos/etcd/releases/download/v${ETCD_VERSION}/etcd-v${ETCD_VERSION}-linux-amd64.tar.gz | tar xzf -
8383
ln -fns "etcd-v${ETCD_VERSION}-linux-amd64" etcd
8484
fi
8585
kube::log::info "etcd v${ETCD_VERSION} installed. To use:"

0 commit comments

Comments
 (0)