github_runner_matrix: extend timeout for dependent tests on arm64

We give our ARM runners half the timeout of the Intel runners because
the ARM runners are faster. However, this is no longer true for
dependent testing because we test recursive dependents on ARM but skip
them on Intel.

This means that we can often hit the timeout on ARM but have all jobs
finish on Intel. We can re-run these with the long build label, but
that's a bit wasteful of our limited long build slots.

Instead, let's just use the same timeout value across ARM and Intel
runners when testing dependents: 2 hours.
This commit is contained in:
Carlo Cabrera 2024-11-01 12:26:50 +08:00
parent ad98e30d9c
commit a1853fc975
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0

View File

@ -169,6 +169,8 @@ class GitHubRunnerMatrix
["#{version}-arm64", runner_timeout]
end
# We test recursive dependents on ARM macOS, so they can be slower than our Intel runners.
timeout *= 2 if @dependent_matrix && timeout < GITHUB_ACTIONS_RUNNER_TIMEOUT
spec = MacOSRunnerSpec.new(
name: "macOS #{version}-arm64",
runner:,