@@ -140,9 +140,35 @@ steps:
140140# images, etc.
141141- bash : |
142142 set -e
143+ # Temporary code to debug #62967.
144+ debug_failed_connections() {
145+ echo "trying to ping pypi.org"
146+ ping pypi.org -c10 || true
147+ echo "trying to ping google.com"
148+ ping google.com -c10 || true
149+ echo "trying to ping 8.8.8.8"
150+ ping 8.8.8.8 -c10 || true
151+ echo "trying to download pypi.org"
152+ curl https://pypi.org || true
153+ echo "trying to download from our S3 bucket"
154+ curl https://rust-lang-ci2.s3.amazonaws.com || true
155+ echo "trying to dig pypi.org"
156+ dig pypi.org || true
157+ echo "trying to dig files.pythonhosted.org"
158+ dig files.pythonhosted.org || true
159+ echo "trying to connect to pypi.org with openssl"
160+ echo | openssl s_client -connect pypi.org:443 || true
161+ echo "trying to connect to files.pythonhosted.org with openssl"
162+ echo | openssl s_client -connect files.pythonhosted.org:443 || true
163+ }
164+ debug_failed_connections_and_fail() {
165+ debug_failed_connections
166+ return 1
167+ }
143168 source src/ci/shared.sh
144169 sudo apt-get install -y python3-setuptools
145- retry pip3 install -r src/ci/awscli-requirements.txt --upgrade --user
170+ debug_failed_connections
171+ retry pip3 install -r src/ci/awscli-requirements.txt --upgrade --user || debug_failed_connections_and_fail
146172 echo "##vso[task.prependpath]$HOME/.local/bin"
147173 displayName : Install awscli (Linux)
148174 condition : and(succeeded(), not(variables.SKIP_JOB), eq(variables['Agent.OS'], 'Linux'))
0 commit comments