github_runner_matrix: include arch in Linux job names

This will make it easier to distinguish the two jobs in the GitHub UI.
This commit is contained in:
Carlo Cabrera 2025-03-21 15:42:19 +08:00 committed by Carlo Cabrera
parent a47388880d
commit 7274fb183d
No known key found for this signature in database
GPG Key ID: C74D447FC549A1D0
2 changed files with 4 additions and 4 deletions

View File

@ -92,7 +92,7 @@ class GitHubRunnerMatrix
end end
LinuxRunnerSpec.new( LinuxRunnerSpec.new(
name: "Linux", name: "Linux #{arch}",
runner: linux_runner, runner: linux_runner,
container: { container: {
image: "ghcr.io/homebrew/ubuntu22.04:master", image: "ghcr.io/homebrew/ubuntu22.04:master",

View File

@ -90,7 +90,7 @@ RSpec.describe GitHubRunnerMatrix do
expect(runner_matrix.runners.all?(&:active)).to be(false) expect(runner_matrix.runners.all?(&:active)).to be(false)
expect(runner_matrix.runners.any?(&:active)).to be(true) expect(runner_matrix.runners.any?(&:active)).to be(true)
expect(get_runner_names(runner_matrix)).to eq(["Linux"]) expect(get_runner_names(runner_matrix)).to eq(["Linux x86_64"])
end end
end end
@ -139,7 +139,7 @@ RSpec.describe GitHubRunnerMatrix do
expect(runner_matrix.runners.all?(&:active)).to be(false) expect(runner_matrix.runners.all?(&:active)).to be(false)
expect(runner_matrix.runners.any?(&:active)).to be(true) expect(runner_matrix.runners.any?(&:active)).to be(true)
expect(get_runner_names(runner_matrix).sort).to eq(["Linux", "macOS #{v}-arm64"]) expect(get_runner_names(runner_matrix).sort).to eq(["Linux x86_64", "macOS #{v}-arm64"])
end end
end end
end end
@ -276,7 +276,7 @@ RSpec.describe GitHubRunnerMatrix do
allow(Formula).to receive(:all).and_return([testball, testball_depender_linux].map(&:formula)) allow(Formula).to receive(:all).and_return([testball, testball_depender_linux].map(&:formula))
matrix = described_class.new([testball], ["deleted"], all_supported: false, dependent_matrix: true) matrix = described_class.new([testball], ["deleted"], all_supported: false, dependent_matrix: true)
expect(get_runner_names(matrix)).to eq(["Linux"]) expect(get_runner_names(matrix)).to eq(["Linux x86_64"])
end end
end end