readthedocs / readthedocs-docker-images

Docker image definitions used by Read the Docs
115 stars 70 forks source link

Use `retry` command on circleci build tools uploads #184

Open agjohnson opened 2 years ago

agjohnson commented 2 years ago

We hit what looks to be an intermittent failure to download a Python tarball:

Downloading python-build...
Cloning into '/home/docs/.asdf/plugins/python/pyenv'...
python-build 3.6.15 /home/docs/.asdf/installs/python/3.6.15
Downloading Python-3.6.15.tar.xz...
-> https://www.python.org/ftp/python/3.6.15/Python-3.6.15.tar.xz
error: failed to download Python-3.6.15.tar.xz

BUILD FAILED (Ubuntu 22.04 using python-build 2.3.1-3-g4456e64c)

Inspect or clean up the working tree at /tmp/python-build.20220531190113.690
Results logged to /tmp/python-build.20220531190113.690.log

Last 10 log lines:
/tmp/python-build.20220531190113.690 ~/.asdf/plugins/python/pyenv
curl: (56) OpenSSL SSL_read: error:0A000119:SSL routines::decryption failed or bad record mac, errno 0

We can maybe protect against this with the retry command:

https://github.com/minfrin/retry

Or even just a basic bash hack of this to retry 3 times.

humitos commented 7 months ago

I may need to take a look at this since I'm hitting random issues while compiling the build tools today.