-
-
Notifications
You must be signed in to change notification settings - Fork 11k
github_runner_matrix: skip newer intel CI unless exact tag #21620
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -230,7 +230,9 @@ def generate_runners! | |
|
|
||
| skip_intel_runner = !@all_supported && macos_version > NEWEST_HOMEBREW_CORE_INTEL_MACOS_RUNNER | ||
| skip_intel_runner &&= @dependent_matrix || @testing_formulae.none? do |testing_formula| | ||
| testing_formula.formula.bottle_specification.tag?(Utils::Bottles.tag(macos_version.to_sym)) | ||
| bottle_spec = testing_formula.formula.bottle_specification | ||
| bottle_spec.tag?(Utils::Bottles.tag(macos_version.to_sym), no_older_versions: true) && | ||
| !bottle_spec.tag?(Utils::Bottles.tag(:all), no_older_versions: true) | ||
cho-m marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| end | ||
|
Comment on lines
231
to
236
|
||
| next if skip_intel_runner | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Utils::Bottles.tag(...)creates newUtils::Bottles::Tagobjects; calling it twice per formula per macOS version here adds avoidable allocations. Consider precomputing themacos_tag(once permacos_version) and theall_tag(once outside the loop) and reusing them inside thenone?block.