diff --git a/Library/Homebrew/github_runner_matrix.rb b/Library/Homebrew/github_runner_matrix.rb index 492faf73c4eb4..daf367a3d0193 100644 --- a/Library/Homebrew/github_runner_matrix.rb +++ b/Library/Homebrew/github_runner_matrix.rb @@ -73,6 +73,7 @@ def active_runner_specs_hash private SELF_HOSTED_LINUX_RUNNER = "linux-self-hosted-1" + SELF_HOSTED_LINUX_TIMEOUT = 4320 # 72 hours # ARM macOS timeout, keep this under 1/2 of GitHub's job execution time limit for self-hosted runners. # https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#usage-limits GITHUB_ACTIONS_LONG_TIMEOUT = 2160 # 36 hours @@ -90,7 +91,7 @@ def linux_runner_spec options: "--user=linuxbrew -e GITHUB_ACTIONS_HOMEBREW_SELF_HOSTED", }, workdir: "/github/home", - timeout: GITHUB_ACTIONS_LONG_TIMEOUT, + timeout: SELF_HOSTED_LINUX_TIMEOUT, cleanup: linux_runner == SELF_HOSTED_LINUX_RUNNER, ) end