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

Closed
wants to merge 1 commit into from
Closed

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.

Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 22, 2024
@github-actions github-actions bot closed this Oct 29, 2024
@github-actions github-actions bot deleted the concurrent-fetch branch October 29, 2024 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants