This repository has been archived by the owner on Jul 1, 2021. It is now read-only.
Disable resolver in dockerfile for consistent builds #2090
Merged
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.
What was wrong?
The
docker-trinity-image-build-test
CI run has been consistently flaky for me recently.It seems to me that the problem is similar to the one described in this issue - where essentially the
--use-feature=2020-resolver
pytest flag is very slow and inefficient. I've seen multiple instances of the resolver installing many different versions of the same dependency while trying to resolve the dependency tree. This poor performance is acknowledged and is under active improvements by the pip team. Thedocker-trinity-image-build-test
consistently times out during the install step with the2020-resolver
enabled.The pip team has already released some improvements to the resolver in
pip==20.2.4
, but it seems like whatever improvements were included in20.2.4
are not sufficient to prevent timeouts in the docker install step. They intend to release further improvements in20.3
.How was it fixed?
The solution here is to just remove the
--use-feature=2020-resolver
flag for the time being. This results in consistently quick & passing CI tests.To-Do
Cute Animal Picture