Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry on "Connection broken:" errors #99

Merged
merged 2 commits into from
Mar 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions tools/rapids-conda-retry
Original file line number Diff line number Diff line change
Expand Up @@ -77,28 +77,31 @@ function runConda {
# Show exit code
rapids-echo-stderr "conda returned exit code: ${exitcode}"

if grep -q CondaHTTPError: "${outfile}"; then
retryingMsg="Retrying, found 'CondaHTTPError:' in output..."
needToRetry=1
elif grep -q ChecksumMismatchError: "${outfile}"; then
if grep -q ChecksumMismatchError: "${outfile}"; then
retryingMsg="Retrying, found 'ChecksumMismatchError:' in output..."
needToRetry=1
elif grep -q JSONDecodeError: "${outfile}"; then
retryingMsg="Retrying, found 'JSONDecodeError:' in output..."
needToRetry=1
elif grep -q ChunkedEncodingError: "${outfile}"; then
retryingMsg="Retrying, found 'ChunkedEncodingError:' in output..."
needToRetry=1
elif grep -q CondaHTTPError: "${outfile}"; then
retryingMsg="Retrying, found 'CondaHTTPError:' in output..."
needToRetry=1
elif grep -q CondaMultiError: "${outfile}"; then
retryingMsg="Retrying after cleaning tarball cache, found 'CondaMultiError:' in output..."
needToRetry=1
needToClean=1
elif grep -q EOFError: "${outfile}"; then
retryingMsg="Retrying, found 'EOFError:' in output..."
elif grep -q "Connection broken:": "${outfile}"; then
bdice marked this conversation as resolved.
Show resolved Hide resolved
retryingMsg="Retrying, found 'Connection broken:' in output..."
needToRetry=1
elif grep -q ConnectionError: "${outfile}"; then
retryingMsg="Retrying, found 'ConnectionError:' in output..."
needToRetry=1
elif grep -q EOFError: "${outfile}"; then
retryingMsg="Retrying, found 'EOFError:' in output..."
needToRetry=1
elif grep -q JSONDecodeError: "${outfile}"; then
retryingMsg="Retrying, found 'JSONDecodeError:' in output..."
needToRetry=1
elif grep -q "Multi-download failed" "${outfile}"; then
retryingMsg="Retrying, found 'Multi-download failed' in output..."
needToRetry=1
Expand All @@ -115,6 +118,7 @@ function runConda {
'ChunkedEncodingError:', \
'CondaHTTPError:', \
'CondaMultiError:', \
'Connection broken:', \
'ConnectionError:', \
'EOFError:', \
'JSONDecodeError:', \
Expand Down