You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 093db4c
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: dev/ci/retry-download.sh
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,16 @@ for attempt in 1 2 3 4; do
44
44
exit 0
45
45
fi
46
46
47
+
# An earlier connection warning may have recovered before a different download
48
+
# failed permanently. Be conservative when both appear: a known permanent error
49
+
# must not acquire retries just because the same attempt also logged a timeout.
50
+
# Do not inspect only a fixed tail: Maven/SBT can print long failure summaries.
51
+
if grep -Eiq \
52
+
'(status code:|response code:|HTTP/[0-9.]+|HTTP error|returned error:)[[:space:]]*(400|401|403|404|405|410|422)([^0-9]|$)|Could not find artifact|not found: value|COMPILATION ERROR|There are test failures' \
53
+
"$download_log";then
54
+
exit"$status"
55
+
fi
56
+
47
57
# Signals (including cancellation and OOM kills) are not download failures.
48
58
if [ "$status"-ge 128 ] ||! grep -Eiq \
49
59
'(status code:|response code:|HTTP/[0-9.]+|HTTP error|returned error:)[[:space:]]*(429|500|502|503|504)([^0-9]|$)|Connection reset|Connection timed out|ConnectTimeoutException|SocketTimeoutException|Read timed out|Temporary failure in name resolution|Network is unreachable|Remote host terminated the handshake' \
0 commit comments