Skip to content

./mill init on lichess-org/lila results in invalid test suite modules #5536

@lihaoyi

Description

@lihaoyi
$ ~/Github/mill/mill-assembly.jar -i init

$ ~/Github/mill/mill-assembly.jar -i __.compile
[build.mill-59/64] compile
[build.mill-59] [info] compiling 171 Scala sources to /Users/lihaoyi/test/lila/out/mill-build/compile.dest/classes ...
[build.mill-59] [error] -- [E8] /Users/lihaoyi/test/lila/modules/analyse/package.mill:73:69
[build.mill-59] [error] 73 │    def moduleDeps = super.moduleDeps ++ Seq(build.modules.coreI18n.test)
[build.mill-59] [error]    │                                                                    ^^^^
[build.mill-59] [error]    │value test is not a member of object build_.modules.coreI18n.package_
[build.mill-59] [error] -- [E8] /Users/lihaoyi/test/lila/modules/study/package.mill:83:67
[build.mill-59] [error] 83 │    def moduleDeps = super.moduleDeps ++ Seq(build.modules.common.test)
[build.mill-59] [error]    │                                                                  ^^^^
[build.mill-59] [error]    │value test is not a member of object build_.modules.common.package_
[build.mill-59] [error] -- [E8] /Users/lihaoyi/test/lila/modules/tournament/package.mill:74:69
[build.mill-59] [error] 74 │    def moduleDeps = super.moduleDeps ++ Seq(build.modules.coreI18n.test)
[build.mill-59] [error]    │                                                                    ^^^^
[build.mill-59] [error]    │value test is not a member of object build_.modules.coreI18n.package_
[build.mill-59] [error] three errors found
package build.modules.coreI18n

import mill._
import mill.javalib._
import mill.javalib.publish._
import mill.scalalib.SbtModule

object `package` extends SbtModule with PublishModule {

  def javacOptions = Seq("--release", "21")

  def scalaVersion = "3.7.0"

  def scalacOptions = Seq(
    "-unchecked",
    "-deprecation",
    "-Ybackend-parallelism:16",
    "-indent",
    "-feature",
    "-language:postfixOps",
    "-language:implicitConversions",
    "-release:21",
    "-Wimplausible-patterns"
  )

  def repositories = Seq(
    "https://jitpack.io",
    "https://raw.githubusercontent.com/lichess-org/lila-maven/master",
    "https://oss.sonatype.org/content/repositories/snapshots"
  )

  def mvnDeps = Seq(
    mvn"com.github.lichess-org.scalachess::scalachess-rating:17.8.5",
    mvn"com.github.lichess-org.scalachess::scalachess:17.8.5",
    mvn"com.github.lichess-org.scalalib::scalalib-core:11.8.8",
    mvn"com.github.lichess-org.scalalib::scalalib-lila:11.8.8",
    mvn"com.github.lichess-org.scalalib::scalalib-model:11.8.8",
    mvn"com.github.lichess-org.scalalib::scalalib-play-json:11.8.8",
    mvn"com.lihaoyi::scalatags:0.13.1",
    mvn"com.softwaremill.common::tagging:2.3.5",
    mvn"com.typesafe.akka::akka-actor-typed:2.6.21",
    mvn"com.typesafe.akka::akka-actor:2.6.21",
    mvn"com.typesafe.akka::akka-slf4j:2.6.21",
    mvn"com.typesafe.akka::akka-stream:2.6.21",
    mvn"com.typesafe.play::play:2.8.18-lila_3.22",
    mvn"org.typelevel::alleycats-core:2.13.0",
    mvn"org.typelevel::cats-core:2.13.0",
    mvn"org.typelevel::kittens:3.5.0"
  )

  def compileMvnDeps = Seq(
    mvn"com.softwaremill.macwire::macros:2.6.6",
    mvn"com.softwaremill.macwire::util:2.6.6"
  )

  def pomSettings = PomSettings(
    "coreI18n",
    "org.lichess",
    "",
    Seq(),
    VersionControl(None, None, None, None),
    Seq()
  )

  def publishVersion = "4.0"

  trait test extends SbtTests {

    def testSandboxWorkingDir = false
    def testParallelism = false

  }
}

Note the trait test extends SbtTests without any accompanying object. Also, common.test module is missing because there's no common/src/test folder

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions