From 2548779f6607ed1047835fa97d16a77c3653daff Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Fri, 9 Feb 2024 12:21:09 +0100 Subject: [PATCH] [scripts/bisect] Skip bisecting commits for which compiler cannot be build --- project/scripts/bisect.scala | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/project/scripts/bisect.scala b/project/scripts/bisect.scala index d195d497fcc1..5892b8164099 100755 --- a/project/scripts/bisect.scala +++ b/project/scripts/bisect.scala @@ -244,8 +244,9 @@ class CommitBisect(validationScript: File, shouldFail: Boolean, bootstrapped: Bo |scalaVersion=$$(sbt "print ${scala3CompilerProject}/version" | tail -n1) |rm -rf out |export JAVA_HOME=${sys.props("java.home")} - |sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal" - |${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion" + |(sbt "clean; set every doc := new File(\"unused\"); set scaladoc/Compile/resourceGenerators := (\`${scala3Project}\`/Compile/resourceGenerators).value; ${scala3Project}/publishLocal" \ + | || (echo "Failed to build compiler, skip $$scalaVersion"; git bisect skip) \ + |) && ${validationCommandStatusModifier}${validationScript.getAbsolutePath} "$$scalaVersion" """.stripMargin "git bisect start".! s"git bisect bad $fistBadHash".!