[BEAM-6318] Increase the amount of pip download retries to 10 from a default 5 #7519
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.
In BEAM-6318 we suspect that Beam test suites sometimes become flaky during PyPi outages, and we are exploring adding retries as a mitigation. This PR increases the number of retries used by
pip
from 5(default) to 10. Inpip
, retries happen with a back-off. I verified on a VM without internet access that with 10 retriespip
attempts to download a package throughout 4 minutes, while first 5 attempts happen within 5 seconds.If pip retry mechanism proves not sufficient to mitigate BEAM-6318, we can issue multiple calls to
pip
, also with a back-off.Post-Commit Tests Status (on master branch)