From 5cce2a97ec9e34757d0bb8ef43a97a0466041ed6 Mon Sep 17 00:00:00 2001 From: Aleks-Daniel Jakimenko-Aleksejev Date: Mon, 9 Oct 2023 19:11:26 +0300 Subject: [PATCH] Fix Bisectable bug for good (oops) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I tried to do it in 9137dfdf8ca7 but I did not think it through enough. This time I tested it. 😇 --- lib/Whateverable/Bisection.pm6 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/lib/Whateverable/Bisection.pm6 b/lib/Whateverable/Bisection.pm6 index eba7119..b9ef96b 100644 --- a/lib/Whateverable/Bisection.pm6 +++ b/lib/Whateverable/Bisection.pm6 @@ -44,17 +44,18 @@ sub run-bisect(&runner = &standard-runner, #← Something to run on every revi ); take “»»»»» Testing $current-commit”; + my $revision-type; if $skip-missing-builds and not build-exists $current-commit { take ‘»»»»» Build does not exist, skip this commit’; - take get-output(cwd => $repo-cwd, , Skip.lc); - next + $revision-type = Skip; + } else { + my $run-result = &runner( :$current-commit, |%custom); + $revision-type = &decider($run-result, :$current-commit, |%custom); } - my $run-result = &runner( :$current-commit, |%custom); - my $revision-type = &decider($run-result, :$current-commit, |%custom); - my $result = get-output cwd => $repo-cwd, - , $revision-type.lc; + my $result = get-output cwd => $repo-cwd, , $revision-type.lc; $status = $result; + if $result ~~ /^^ (\S+) ‘ is the first new commit’ / { $first-new-commit = ~$0; take $result;