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

releng - require urllib3 <2.0 to speed up dependency resolution #8563

Merged

Conversation

ajkerrigan
Copy link
Member

Updating dependencies currently takes a very long time (20+ minutes) because:

  • docker/requests/twine/botocore all depend on urllib3
  • everyone except botocore is happy with urllib3 2.x
  • poetry initially selects urllib3 2.x, then fruitlessly churns through hundreds of botocore versions to see if any will work before giving up and choosing urllib3 1.x

We could also try to handle this by tweaking our boto3 constraint, but this seems like an explicit way to avoid a lot of running into walls.

Updating dependencies currently takes a very long time (20+ minutes)
because:

- docker/requests/twine/botocore all depend on urllib3
- everyone _except_ botocore is happy with urllib3 2.x
- poetry initially selects urllib3 2.x, and churns through
  hundreds of botocore versions before deciding to try an earlier
  version

We could also try to handle this by tweaking our boto3 constraint, but
this seems like an explicit way to avoid a lot of running into walls.
@ajkerrigan ajkerrigan requested a review from kapilt as a code owner May 12, 2023 16:51
Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice find, thanks!

@kapilt kapilt merged commit ad5e280 into cloud-custodian:main May 15, 2023
21 checks passed
@ajkerrigan ajkerrigan deleted the releng/constrain-urllib3-version branch May 16, 2023 00:49
ajkerrigan added a commit to ajkerrigan/cloud-custodian that referenced this pull request May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants