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

Use --concurrency with brew fetch #1244

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

carlocab
Copy link
Member

This should hopefully make CI just a little bit faster. It'll help us
kick the tires on --concurrency.

This should hopefully make CI just a little bit faster. It'll help us
kick the tires on `--concurrency`.
@@ -31,7 +31,9 @@ def fetch_bottles!(formula_name, args:)

tags.each do |tag|
cleanup_during!(args:)
test "brew", "fetch", "--retry", "--formulae", "--bottle-tag=#{tag}", formula_name
test "brew", "fetch", "--retry", "--formulae", "--bottle-tag=#{tag}",
"--concurrency", Homebrew::EnvConfig.make_jobs,
Copy link
Member

@reitermarkus reitermarkus Sep 29, 2024

Choose a reason for hiding this comment

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

What is Homebrew::EnvConfig.make_jobs in CI usually?

Copy link
Member Author

Choose a reason for hiding this comment

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

Same as default -- number of cores. So somewhere between 2-6.

Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Hold off on this. Would like to see some more of Homebrew/brew#18278 (comment) done first, at least:

we should limit the hosts we'll download in parallel from to an allowlist so we don't e.g. try to download the 10 files at once from a poor personal web server when building from source

For now: starting with just GitHub and GitHub Packages makes sense to me.

To be explicit on what this means: it's ok to have 1 thread download from e.g. randomwebserver.com but not >1 at once unless it's e.g. GitHub.

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.

5 participants