Skip to content

Commit 0222498

Browse files
authored
Rollup merge of rust-lang#63007 - pietroalbini:debug-awscli-install, r=Mark-Simulacrum
ci: debug network failures while downloading awscli from PyPI This adds some random debug code to our CI script while downloading awscli, to *hopefully* pinpoint what's causing the network failures. r? @Mark-Simulacrum cc rust-lang#62967
2 parents 3a1ee9b + fb9f3e6 commit 0222498

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.azure-pipelines/steps/run.yml

+27-1
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)