From 50df7fab2839b3c58eab555e5361b088e248f7b4 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 29 Apr 2023 10:56:29 +0800 Subject: [PATCH 1/2] determine-test-runners: add debug output The extra timeout on Intel Big Sur doesn't seem to be set, so I'm adding this so I can have a closer look. --- Library/Homebrew/dev-cmd/determine-test-runners.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Library/Homebrew/dev-cmd/determine-test-runners.rb b/Library/Homebrew/dev-cmd/determine-test-runners.rb index d85319e99e..6e867c572e 100755 --- a/Library/Homebrew/dev-cmd/determine-test-runners.rb +++ b/Library/Homebrew/dev-cmd/determine-test-runners.rb @@ -42,6 +42,8 @@ module Homebrew runner_matrix = GitHubRunnerMatrix.new(testing_formulae, deleted_formulae, dependent_matrix: args.dependents?) runners = runner_matrix.active_runner_specs_hash + ohai "Runners", JSON.pretty_generate(runners) + github_output = ENV.fetch("GITHUB_OUTPUT") File.open(github_output, "a") do |f| f.puts("runners=#{runners.to_json}") From f3724f00d255f1f64f4276a17d813abaabbf7f25 Mon Sep 17 00:00:00 2001 From: Carlo Cabrera <30379873+carlocab@users.noreply.github.com> Date: Sat, 29 Apr 2023 11:36:31 +0800 Subject: [PATCH 2/2] determine-test-runners: fix test --- Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb b/Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb index ce9fe20ca2..c66583052d 100644 --- a/Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb +++ b/Library/Homebrew/test/dev-cmd/determine-test-runners_spec.rb @@ -41,8 +41,7 @@ describe "brew determine-test-runners" do setup_test_formula "testball" expect { brew "determine-test-runners", "testball", runner_env.merge({ "GITHUB_OUTPUT" => github_output }) } - .to not_to_output.to_stdout - .and not_to_output.to_stderr + .to not_to_output.to_stderr .and be_a_success expect(File.read(github_output)).not_to be_empty