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

fix(pypi): change the parallelisation scheme for querying SimpleAPI #2531

Merged
merged 5 commits into from
Dec 31, 2024

Conversation

aignas
Copy link
Collaborator

@aignas aignas commented Dec 24, 2024

Instead of querying everything in parallel and yielding a lot of 404
warnings, let's query the main index first and then query the other
indexes only for the packages that were not yet found.

What is more, we can print the value of experimental_index_url_overrides
for the users to use.

Whilst at it, add a unit test to check the new logic.

Fixes #2100, since this is the best rules_python can do for now.

Instead of querying everything in parallel and yielding a lot of 404
warnings, let's query the main index first and then query the other
indexes only for the packages that were not yet found. This should make
the problem in bazelbuild#2100 not as serious.

What is more, we can print the value of  for the users
to use.

Work towards bazelbuild#2100
@aignas
Copy link
Collaborator Author

aignas commented Dec 24, 2024

@dougthor42, if the CI passes, could you give this a spin please?

FYI @ewianda, this may slow down the fetching, but only if you are not using experimental_index_url_overrides.

@dougthor42
Copy link
Collaborator

Seems to work well for me! I didn't see any unintended side effects.

Note that we already use experimental_index_url_overrides for all private-index stuff.

@rickeylev rickeylev added this pull request to the merge queue Dec 27, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Dec 27, 2024
@aignas aignas added this pull request to the merge queue Dec 31, 2024
Merged via the queue into bazelbuild:main with commit 475a99e Dec 31, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants