-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Bisect script failures #19650
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I assume that we have some nightly builds that are broken and cannot be used for testing. If that is the case we should try to skip them automatically. The result would be a first bad commit that is a few days after the last good commit. The commit bisection might be a bit longer in those cases but that is fine. |
Recently I've been always limiting the scope of versions to test, eg.: scala-cli run project/scripts/bisect.scala -- --bootstrapped --releases 3.3.1-RC1-bin-20230126-f545d10-NIGHTLY... ./bisect/script.sh As the development of Dotty progresses there is more and more snippets that can only be compiled from more recent compiler versions.
Probably Java 19 was not supported in 3.0.0. We can fix it be either using a fixed version of Java (eg. 17 which should work with all Scala 3 versions) using scala-cli directive or switching version version used locally. (I recommend I'll adapt the default script to use Java 17 by default, for any issues related with JDK18+ let's use a custom bisect with explicit java-version arguments |
Actually I don't thing using a fixed version of JDK is a good idea, instead we can put the scala-cli project/scripts/bisect.scala -- compile --jvm=17 Test.scala
Can nightly builds really be broken? They're going through the CI process so we might assume they're mostly correct. However, when the do commit-based bisect we can reach invalid builds, which do not compile - I think we can try to skip these instead. |
Not sure. Maybe they were just not compatible with the script. |
For any Scala source, let us call it
Test.scala
the following failsThe text was updated successfully, but these errors were encountered: