diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 8a50a1be8a..96d780fcb8 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -21,7 +21,7 @@ jobs: strategy: fail-fast: false matrix: - scala: [2.12.12, 2.13.6] + scala: [2.12.15, 2.13.6] java: ['1.8', '1.11'] runs-on: ubuntu-latest steps: diff --git a/build.sbt b/build.sbt index 04845a7d99..3b287357fe 100644 --- a/build.sbt +++ b/build.sbt @@ -82,8 +82,10 @@ def jdk11GcJavaOptions: Seq[String] = { ) } +// Upgrading to a later version requires also upgrading sbt-scoverage, Scalatest, and +// some modules like util-mock and util-test. val _scalaVersion = "2.13.6" -val _crossScalaVersions = Seq("2.12.12", "2.13.6") +val _crossScalaVersions = Seq("2.12.15", "2.13.6") val defaultScalaSettings = Seq( scalaVersion := _scalaVersion, @@ -91,7 +93,7 @@ val defaultScalaSettings = Seq( ) val defaultScala3EnabledSettings = Seq( scalaVersion := _scalaVersion, - crossScalaVersions := _crossScalaVersions ++ Seq("3.0.2-RC1") + crossScalaVersions := _crossScalaVersions ++ Seq("3.1.3") ) // Our dependencies or compiler options may differ for both Scala 2 and 3. We branch here diff --git a/project/plugins.sbt b/project/plugins.sbt index d959da10ca..10a4d3615e 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -2,6 +2,6 @@ resolvers += Classpaths.sbtPluginReleases resolvers += Resolver.sonatypeRepo("snapshots") addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1") -addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.1") +addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.9.3") addSbtPlugin("pl.project13.scala" % "sbt-jmh" % "0.4.3") addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.31") diff --git a/util-app/src/test/scala/com/twitter/app/AppTest.scala b/util-app/src/test/scala/com/twitter/app/AppTest.scala index 51c10b652b..2c1dcf1c16 100644 --- a/util-app/src/test/scala/com/twitter/app/AppTest.scala +++ b/util-app/src/test/scala/com/twitter/app/AppTest.scala @@ -54,7 +54,8 @@ class WeNeverCloseButWeDoNotCare extends WeNeverClose { } trait ErrorOnExitApp extends App { - override val defaultCloseGracePeriod: Duration = 5.seconds + // Prevent flaky test in CI due to TimeoutException with this generous timeout + override val defaultCloseGracePeriod: Duration = 30.seconds override def exitOnError(throwable: Throwable): Unit = { throw throwable