Skip to content

Commit 3682923

Browse files
p-mongop
andcommitted
RUBY-2455 Retry all curl fetches (#2142)
Co-authored-by: Oleg Pudeyev <[email protected]>
1 parent 8b4bb76 commit 3682923

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

.evergreen/Dockerfile.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ WORKDIR /app
187187
<% end %>
188188

189189
<% if fle? %>
190-
RUN curl -fLo libmongocrypt-all.tar.gz "https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz"
190+
RUN curl --retry 3 -fLo libmongocrypt-all.tar.gz "https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz"
191191
RUN tar xf libmongocrypt-all.tar.gz
192192

193193
<%= "ENV LIBMONGOCRYPT_PATH #{libmongocrypt_path}" %>

.evergreen/config/common.yml.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ functions:
5151
#curl -sfLo egos https://raw.githubusercontent.com/p-mongo/egos/master/egos
5252

5353
# C version:
54-
curl -sfLo egos.c https://raw.githubusercontent.com/p-mongo/egos/master/egos.c
54+
curl --retry 3 -sfLo egos.c https://raw.githubusercontent.com/p-mongo/egos/master/egos.c
5555
gcc -O2 -g -oegos -lrt egos.c
5656

5757
<% if @atlas %>

.evergreen/functions.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ setup_ruby() {
146146
#export PATH=/opt/python/3.7/bin:$PATH
147147

148148
# 12.04, 14.04 and 16.04 are good
149-
curl -fLo ruby-head.tar.bz2 http://rubies.travis-ci.org/ubuntu/`lsb_release -rs`/x86_64/ruby-head.tar.bz2
149+
curl --retry 3 -fLo ruby-head.tar.bz2 http://rubies.travis-ci.org/ubuntu/`lsb_release -rs`/x86_64/ruby-head.tar.bz2
150150
tar xf ruby-head.tar.bz2
151151
export PATH=`pwd`/ruby-head/bin:`pwd`/ruby-head/lib/ruby/gems/2.6.0/bin:$PATH
152152
ruby --version
@@ -165,7 +165,7 @@ setup_ruby() {
165165
#export PATH=`pwd`/rubies/python/3/bin:$PATH
166166

167167
# Attempt to get bundler to report all errors - so far unsuccessful
168-
#curl -o bundler-openssl.diff https://github.com/bundler/bundler/compare/v2.0.1...p-mongo:report-errors.diff
168+
#curl --retry 3 -o bundler-openssl.diff https://github.com/bundler/bundler/compare/v2.0.1...p-mongo:report-errors.diff
169169
#find . -path \*/lib/bundler/fetcher.rb -exec patch {} bundler-openssl.diff \;
170170

171171
else

.evergreen/run-tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ elif test "$AUTH" = kerberos; then
253253
fi
254254

255255
if test -n "$FLE"; then
256-
curl -fLo libmongocrypt-all.tar.gz "https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz"
256+
curl --retry 3 -fLo libmongocrypt-all.tar.gz "https://s3.amazonaws.com/mciuploads/libmongocrypt/all/master/latest/libmongocrypt-all.tar.gz"
257257
tar xf libmongocrypt-all.tar.gz
258258

259259
export LIBMONGOCRYPT_PATH=`pwd`/rhel-70-64-bit/nocrypto/lib64/libmongocrypt.so

0 commit comments

Comments
 (0)