Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,14 @@
Test / fork := true,
Test / forkOptions := (Test / forkOptions).value
.withWorkingDirectory((ThisBuild / baseDirectory).value),
Test / testGrouping := (Test / definedTests).value.map { suite =>
Tests.Group(suite.name, Seq(suite), Tests.SubProcess((Test / forkOptions).value))
Test / testGrouping := {
// Read once, outside the loop: sbt lifts a `.value` written inside a lambda to

Check warning on line 231 in build.sbt

View workflow job for this annotation

GitHub Actions / Bench

The evaluation of `/` inside an anonymous function is prohibited.
// the top of the task anyway, so leaving it there reads as one lookup per suite
// when it is not, and sbt warns about exactly that.
val forked = (Test / forkOptions).value
(Test / definedTests).value.map { suite =>
Tests.Group(suite.name, Seq(suite), Tests.SubProcess(forked))
}
}
)

Expand All @@ -239,6 +245,7 @@
.dependsOn(WorkflowOperator)
lazy val WorkflowCompilingService = (project in file("workflow-compiling-service"))
.dependsOn(WorkflowCompiler, Auth, Config, Resource)
.dependsOn(WorkflowOperator % "test->test") // reuse PythonWorkerPool in verify tests
.settings(commonModuleSettings)
.settings(
dependencyOverrides ++= Seq(
Expand Down
Loading
Loading