From 0b33a0909011aa9dcf9400c9bd939c39e1efc0ce Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sun, 7 May 2023 00:14:54 +0800 Subject: [PATCH] github_runner_matrix: align Intel and ARM timeouts This prevents situations where the Intel runners have a 360 minute timeout but the ARM runners only have 45 minutes. See Homebrew/homebrew-core#130284. --- Library/Homebrew/github_runner_matrix.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/github_runner_matrix.rb b/Library/Homebrew/github_runner_matrix.rb index 76462179ff..84fc2bd978 100644 --- a/Library/Homebrew/github_runner_matrix.rb +++ b/Library/Homebrew/github_runner_matrix.rb @@ -158,8 +158,7 @@ class GitHubRunnerMatrix runner.freeze # The ARM runners are typically over twice as fast as the Intel runners. - runner_timeout = timeout - runner_timeout /= 2 if timeout < GITHUB_ACTIONS_LONG_TIMEOUT + runner_timeout /= 2 if runner_timeout < GITHUB_ACTIONS_LONG_TIMEOUT spec = MacOSRunnerSpec.new( name: "macOS #{version}-arm64", runner: runner,