mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
Merge pull request #15322 from carlocab/rm-linux-cleanup
github_runner_matrix: remove `HOMEBREW_LINUX_CLEANUP`
This commit is contained in:
commit
9d5b017bb9
@ -62,10 +62,11 @@ class GitHubRunnerMatrix
|
||||
|
||||
private
|
||||
|
||||
SELF_HOSTED_LINUX_RUNNER = "linux-self-hosted-1"
|
||||
|
||||
sig { returns(LinuxRunnerSpec) }
|
||||
def linux_runner_spec
|
||||
linux_runner = ENV.fetch("HOMEBREW_LINUX_RUNNER")
|
||||
linux_cleanup = ENV.fetch("HOMEBREW_LINUX_CLEANUP")
|
||||
linux_runner = ENV.fetch("HOMEBREW_LINUX_RUNNER")
|
||||
|
||||
LinuxRunnerSpec.new(
|
||||
name: "Linux",
|
||||
@ -76,7 +77,7 @@ class GitHubRunnerMatrix
|
||||
},
|
||||
workdir: "/github/home",
|
||||
timeout: 4320,
|
||||
cleanup: linux_cleanup == "true",
|
||||
cleanup: linux_runner == SELF_HOSTED_LINUX_RUNNER,
|
||||
)
|
||||
end
|
||||
|
||||
|
@ -15,7 +15,6 @@ describe "brew determine-test-runners" do
|
||||
let(:runner_env) do
|
||||
{
|
||||
"HOMEBREW_LINUX_RUNNER" => linux_runner,
|
||||
"HOMEBREW_LINUX_CLEANUP" => "false",
|
||||
"HOMEBREW_MACOS_TIMEOUT" => "90",
|
||||
"GITHUB_RUN_ID" => ephemeral_suffix.split("-").second,
|
||||
"GITHUB_RUN_ATTEMPT" => ephemeral_suffix.split("-").third,
|
||||
|
@ -6,7 +6,6 @@ require "test/support/fixtures/testball"
|
||||
describe GitHubRunnerMatrix do
|
||||
before do
|
||||
allow(ENV).to receive(:fetch).with("HOMEBREW_LINUX_RUNNER").and_return("ubuntu-latest")
|
||||
allow(ENV).to receive(:fetch).with("HOMEBREW_LINUX_CLEANUP").and_return("false")
|
||||
allow(ENV).to receive(:fetch).with("HOMEBREW_MACOS_TIMEOUT").and_return("90")
|
||||
allow(ENV).to receive(:fetch).with("HOMEBREW_MACOS_BUILD_ON_GITHUB_RUNNER", "false").and_return("false")
|
||||
allow(ENV).to receive(:fetch).with("GITHUB_RUN_ID").and_return("12345")
|
||||
|
Loading…
x
Reference in New Issue
Block a user