From 3c3ee46f08e2fdb633e657222b331cc2ad017471 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Sat, 13 Apr 2024 20:09:40 +0800 Subject: [PATCH 1/2] github_runner_matrix: increase timeout for self-hosted 12-x86_64 It is usually slower than other Intel runners and has timed out more often recently. --- Library/Homebrew/github_runner_matrix.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/github_runner_matrix.rb b/Library/Homebrew/github_runner_matrix.rb index ce2d36163adab..32b17cf45bee7 100644 --- a/Library/Homebrew/github_runner_matrix.rb +++ b/Library/Homebrew/github_runner_matrix.rb @@ -144,6 +144,8 @@ def generate_runners! ["#{version}#{ephemeral_suffix}", runner_timeout] end + # macOS 12-x86_64 is usually slower. + timeout += 30 if !(use_github_runner && github_runner_available) && macos_version <= :monterey spec = MacOSRunnerSpec.new( name: "macOS #{version}-x86_64", runner:, From 4820c47bf0af89b0f548d913756de29aa32cc6a0 Mon Sep 17 00:00:00 2001 From: Ruoyu Zhong Date: Sun, 14 Apr 2024 00:02:37 +0800 Subject: [PATCH 2/2] github_runner_matrix: simplify Co-authored-by: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> --- Library/Homebrew/github_runner_matrix.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/github_runner_matrix.rb b/Library/Homebrew/github_runner_matrix.rb index 32b17cf45bee7..c0acdba0cf690 100644 --- a/Library/Homebrew/github_runner_matrix.rb +++ b/Library/Homebrew/github_runner_matrix.rb @@ -145,7 +145,7 @@ def generate_runners! end # macOS 12-x86_64 is usually slower. - timeout += 30 if !(use_github_runner && github_runner_available) && macos_version <= :monterey + timeout += 30 if macos_version <= :monterey spec = MacOSRunnerSpec.new( name: "macOS #{version}-x86_64", runner:,