Class: GitHubRunnerMatrix
Constant Summary collapse
- NEWEST_HOMEBREW_CORE_MACOS_RUNNER =
This constant is part of a private API. This constant may only be used in the Homebrew/brew repository. Third parties should avoid using this constant if possible, as it may be removed or changed without warning.
When bumping newest runner, run e.g.
git log -p --reverse -G "sha256 tahoe"
on homebrew/core and tag the first commit with a bottle e.g.git tag 15-sequoia f42c4a659e4da887fc714f8f41cc26794a4bb320
to allow people to jump to specific commits based on their macOS version. :sequoia
- OLDEST_HOMEBREW_CORE_MACOS_RUNNER =
:ventura
- NEWEST_HOMEBREW_CORE_INTEL_MACOS_RUNNER =
:sonoma
Instance Attribute Summary collapse
- #runners ⇒ Array<GitHubRunner> readonly private
Instance Method Summary collapse
- #active_runner_specs_hash ⇒ Array<RunnerSpecHash> private
- #initialize(testing_formulae, deleted_formulae, all_supported:, dependent_matrix:) ⇒ void constructor private
Constructor Details
#initialize(testing_formulae, deleted_formulae, all_supported:, dependent_matrix:) ⇒ void
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'github_runner_matrix.rb', line 56 def initialize(testing_formulae, deleted_formulae, all_supported:, dependent_matrix:) if all_supported && (testing_formulae.present? || deleted_formulae.present? || dependent_matrix) raise ArgumentError, "all_supported is mutually exclusive to other arguments" end @testing_formulae = T.let(testing_formulae, T::Array[TestRunnerFormula]) @deleted_formulae = T.let(deleted_formulae, T::Array[String]) @all_supported = T.let(all_supported, T::Boolean) @dependent_matrix = T.let(dependent_matrix, T::Boolean) @compatible_testing_formulae = T.let({}, T::Hash[GitHubRunner, T::Array[TestRunnerFormula]]) @formulae_with_untested_dependents = T.let({}, T::Hash[GitHubRunner, T::Array[TestRunnerFormula]]) @runners = T.let([], T::Array[GitHubRunner]) generate_runners! freeze end |
Instance Attribute Details
#runners ⇒ Array<GitHubRunner> (readonly)
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
46 47 48 |
# File 'github_runner_matrix.rb', line 46 def runners @runners end |
Instance Method Details
#active_runner_specs_hash ⇒ Array<RunnerSpecHash>
This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.
75 76 77 78 79 |
# File 'github_runner_matrix.rb', line 75 def active_runner_specs_hash runners.select(&:active) .map(&:spec) .map(&:to_h) end |