Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR will retry conda commands on
CondaSSLError
.Context
We have recently seen more SSL errors, like those we attempted to fix in rapidsai/cuml#6177 and rapidsai/cugraph#4825. However, we still observe SSL errors while downloading conda packages.
Errors look like this:
In conda/conda#11564,
CondaSSLError
was split fromCondaHTTPError
. This was released in conda 4.14.0.Currently it appears that all the errors in cuML's CI (sample nightly run) are either
CondaSSLError
or actual test failures (some are from Hypothesis, some are not). I hope this PR eliminates theCondaSSLError
cases.Alternatives
From https://stackoverflow.com/questions/31729076/conda-ssl-error, it seems there may be alternative solutions. I think we should add this retry either way, but we may be able to do more.
ssl_verify: false
in the conda configcertifi
in theci-conda
images? The preinstalled version is currently2024.8.30
and runningmamba update -n base certifi
updates it to2024.12.14
. There could be certificate changes in those 4 months.