-
Notifications
You must be signed in to change notification settings - Fork 121
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
[2.x] Enable scripted test in CI #1457
Conversation
Ah CI is taking forever again... Actually a good news as CI is catching the GZIP concurrency issue. |
sbt always tries to resolve internal dependencies with Scala binary version. See for instance this: ThisBuild / organization := "org.example"
ThisBuild / version := "1.0.0-SNAPSHOT"
lazy val a = project.settings(scalaVersion := "2.13.15")
lazy val b = project.settings(scalaVersion := "3.3.4").dependsOn(a)
In short, the settings of |
@Friendseeker should we merge now or fixing the GZIP concurrency issue first? |
I am leaning towards merging the PR now, so the CI scripted test can reject improper fix of GZIP concurrency issue. @eed3si9n What do you think? |
I agree, but it's probably not a good idea to freeze a runner for 5 hours. |
Maybe adding a timeout would help here: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#jobsjob_idtimeout-minutes (default is 360 minutes) |
f20d3e9
to
6d436ce
Compare
Thanks to both for the feedbacks. Just added a timeout. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Issue
When running
scripted
in sbt shell, the following error shows upFix
By removing
sbt would no longer fetch nonexistent
org.scala-sbt/compiler-bridge_3
.Then by letting
scripted
task depends onpublishBridges
,ConstantBridgeProvider.fetchCompiledBridge
can then accesstarget
directory ofcompilerBridge210, compilerBridge211, compilerBridge212, compilerBridge213
, which then pick the right directory by callingConstantBridgeProvider.bridgeOrBoom
and package the directory with the matching scala version as a jar with naming starting withscriptedCompilerBridge-bin
, which then gets renamed totarget-bridge-$scalaVersion.jar
inAbstractBridgeProviderTestkit.getCompilerBridge
and be loaded viaAnalyzingCompiler.getDualLoader
.Comment
I actually don't know if this an actual fix or just a workaround as I still don't know why exactly sbt is fetching nonexistent
org.scala-sbt/compiler-bridge_3
. But nonetheless I feel scripted test is very important and even if this is just a workaround, we should merge it to unblock CI.