Build Logs

lichess-org/lila-search • 3.8.0-RC3:2025-12-04

Errors

1

Warnings

295

Total Lines

763

1##################################
2Clonning https://github.com/lichess-org/lila-search.git into /build/repo using revision
3##################################
4----
5Preparing build for 3.8.0-RC3
6Scala binary version found: 3.8
7Implicitly using source version 3.8
8Scala binary version found: 3.8
9Implicitly using source version 3.8
10Would try to apply common scalacOption (best-effort, sbt/mill only):
11Append: ,REQUIRE:-source:3.8
12Remove: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
13----
14Starting build for 3.8.0-RC3
15Execute tests: true
16sbt project found:
17No prepare script found for project lichess-org/lila-search
18##################################
19Scala version: 3.8.0-RC3
20Targets: *%*
21Project projectConfig: {"projects":{"exclude":[],"overrides":{}},"java":{"version":"25"},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[]}
22##################################
23Using extra scalacOptions: ,REQUIRE:-source:3.8
24Filtering out scalacOptions: ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
25[sbt_options] declare -a sbt_options=()
26[process_args] java_version = '25'
27[copyRt] java9_rt = '/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_25/rt.jar'
28# Executing command line:
29java
30-Dfile.encoding=UTF-8
31-Dcommunitybuild.scala=3.8.0-RC3
32-Dcommunitybuild.project.dependencies.add=
33-Xmx7G
34-Xms4G
35-Xss8M
36-Dsbt.script=/root/.sdkman/candidates/sbt/current/bin/sbt
37-Dscala.ext.dirs=/root/.sbt/1.0/java9-rt-ext-eclipse_adoptium_25
38-jar
39/root/.sdkman/candidates/sbt/1.11.5/bin/sbt-launch.jar
40"setCrossScalaVersions 3.8.0-RC3"
41"++3.8.0-RC3 -v"
42"mapScalacOptions ",REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s" ",-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e""
43"set every credentials := Nil"
44"excludeLibraryDependency com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}"
45"removeScalacOptionsStartingWith -P:wartremover"
46
47moduleMappings
48"runBuild 3.8.0-RC3 """{"projects":{"exclude":[],"overrides":{}},"java":{"version":"25"},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[]}""" *%*"
49
50[info] [launcher] getting org.scala-sbt sbt 1.11.7 (this may take some time)...
51WARNING: A terminally deprecated method in sun.misc.Unsafe has been called
52WARNING: sun.misc.Unsafe::arrayBaseOffset has been called by net.openhft.hashing.UnsafeAccess (file:/root/.sbt/boot/scala-2.12.20/org.scala-sbt/sbt/1.11.7/zero-allocation-hashing-0.16.jar)
53WARNING: Please consider reporting this to the maintainers of class net.openhft.hashing.UnsafeAccess
54WARNING: sun.misc.Unsafe::arrayBaseOffset will be removed in a future release
55WARNING: A restricted method in java.lang.System has been called
56WARNING: java.lang.System::load has been called by com.sun.jna.Native in an unnamed module (file:/root/.sbt/boot/scala-2.12.20/org.scala-sbt/sbt/1.11.7/jna-5.12.0.jar)
57WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
58WARNING: Restricted methods will be blocked in a future release unless native access is enabled
59
60[info] welcome to sbt 1.11.7 (Eclipse Adoptium Java 25)
61[info] loading settings for project repo-build from akka.sbt, plugins.sbt...
62[info] loading project definition from /build/repo/project
63[info] compiling 4 Scala sources to /build/repo/project/target/scala-2.12/sbt-1.0/classes ...
64[info] Non-compiled module 'compiler-bridge_2.12' for Scala 2.12.20. Compiling...
65[info] Compilation completed in 8.246s.
66[info] done compiling
67[info] loading settings for project root from build.sbt, version.sbt...
68[info] resolving key references (14739 settings) ...
69[info] set current project to root (in build file:/build/repo/)
70[warn] there's a key that's not used by any other settings/tasks:
71[warn]
72[warn] * ThisBuild / Docker / maintainer
73[warn] +- /build/repo/build.sbt:4
74[warn]
75[warn] note: a setting might still be used by a command; to exclude a key from this `lintUnused` check
76[warn] either append it to `Global / excludeLintKeys` or call .withRank(KeyRanks.Invisible) on the key
77Execute setCrossScalaVersions: 3.8.0-RC3
78OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in api/crossScalaVersions
79OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in e2e/crossScalaVersions
80OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in core/crossScalaVersions
81OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in ingestor-app/crossScalaVersions
82OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in elastic/crossScalaVersions
83OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in app/crossScalaVersions
84OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in ingestor-core/crossScalaVersions
85OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in client/crossScalaVersions
86OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in lila-mongo/crossScalaVersions
87OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in ingestor-cli/crossScalaVersions
88OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in lila-game-export/crossScalaVersions
89OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC3 in root/crossScalaVersions
90[info] set current project to root (in build file:/build/repo/)
91[info] Setting Scala version to 3.8.0-RC3 on 12 projects.
92[info] Switching Scala version on:
93[info] ingestor-core (3.8.0-RC3)
94[info] * root (3.8.0-RC3)
95[info] ingestor-app (3.8.0-RC3)
96[info] elastic (3.8.0-RC3)
97[info] ingestor-cli (3.8.0-RC3)
98[info] lila-mongo (3.8.0-RC3)
99[info] lila-game-export (3.8.0-RC3)
100[info] client (3.8.0-RC3)
101[info] app (3.8.0-RC3)
102[info] api (3.8.0-RC3)
103[info] core (3.8.0-RC3)
104[info] e2e (3.8.0-RC3)
105[info] Excluding projects:
106[info] Reapplying settings...
107[info] set current project to root (in build file:/build/repo/)
108Execute mapScalacOptions: ,REQUIRE:-source:3.8,-Wconf:msg=can be rewritten automatically under:s ,-deprecation,-feature,-Xfatal-warnings,-Werror,MATCH:.*-Wconf.*any:e
109[info] Reapplying settings...
110[info] set current project to root (in build file:/build/repo/)
111[info] Defining Global / credentials, api / credentials and 10 others.
112[info] The new values will be used by Compile / scalafmtOnly, IntegrationTest / scalafmtOnly and 94 others.
113[info] Run `last` for details.
114[info] Reapplying settings...
115[info] set current project to root (in build file:/build/repo/)
116Execute excludeLibraryDependency: com.github.ghik:zerowaste_{scalaVersion} com.olegpy:better-monadic-for_3 org.polyvariant:better-tostring_{scalaVersion} org.wartremover:wartremover_{scalaVersion}
117[info] Reapplying settings...
118OpenCB::Failed to reapply settings in excludeLibraryDependency: Reference to undefined setting:
119
120 Global / allExcludeDependencies from Global / allExcludeDependencies (CommunityBuildPlugin.scala:331)
121 Did you mean app / allExcludeDependencies ?
122 , retry without global scopes
123[info] Reapplying settings...
124[info] set current project to root (in build file:/build/repo/)
125Execute removeScalacOptionsStartingWith: -P:wartremover
126[info] Reapplying settings...
127[info] set current project to root (in build file:/build/repo/)
128[success] Total time: 0 s, completed Dec 4, 2025, 3:22:16 PM
129Build config: {"projects":{"exclude":[],"overrides":{}},"java":{"version":"25"},"sbt":{"commands":[],"options":[]},"mill":{"options":[]},"tests":"full","migrationVersions":[],"sourcePatches":[]}
130Parsed config: Success(ProjectBuildConfig(ProjectsConfig(List(),Map()),Full,List()))
131Starting build...
132Projects: Set(ingestor-core, root, ingestor-app, elastic, ingestor-cli, lila-mongo, lila-game-export, client, app, api, core, e2e)
133Starting build for ProjectRef(file:/build/repo/,client) (client)... [0/12]
134OpenCB::Exclude Scala3 specific scalacOption `REQUIRE:-source:3.8` in Scala 2.12.20 module Global
135OpenCB::Filter out '-deprecation', matches setting pattern '^-?-deprecation'
136OpenCB::Filter out '-feature', matches setting pattern '^-?-feature'
137OpenCB::Filter out '-Xfatal-warnings', matches setting pattern '^-?-Xfatal-warnings'
138Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/client/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
139[info] compiling 16 Scala sources to /build/repo/modules/core/target/scala-3.8.0-RC3/classes ...
140[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/IndexString.scala]
141[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/DateTimeFormat.scala]
142[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/Ids.scala]
143[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/PlayerIds.scala]
144[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/DateTime.scala]
145[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/IdString.scala]
146[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/SizeFormat.scala]
147[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/FromFormat.scala]
148[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/IndexFormat.scala]
149[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/IdFormat.scala]
150[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/SizeInt.scala]
151[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/FromInt.scala]
152[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/core/Strings.scala]
153[info] done compiling
154Dec 04, 2025 3:22:44 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
155INFO: Removing unused OpenAPI components: [#/components/schemas/HealthCheckOutput]
156Dec 04, 2025 3:22:44 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
157INFO: Removing unused OpenAPI components: [#/components/schemas/CountInput, #/components/schemas/SearchOutput, #/components/schemas/InternalServerError, #/components/schemas/SearchInput, #/components/schemas/CountOutput]
158[info] compiling 19 Scala sources to /build/repo/modules/api/target/scala-3.8.0-RC3/classes ...
159[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/IntRange.scala]
160[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/SearchOutput.scala]
161[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/Order.scala]
162[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/SortBlogsBy.scala]
163[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/DateRange.scala]
164[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/GameSorting.scala]
165[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/StudySortField.scala]
166[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/CountInput.scala]
167[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/Query.scala]
168[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/ElasticStatus.scala]
169[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/CountOutput.scala]
170[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/SearchService.scala]
171[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/Perfs.scala]
172[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/InternalServerError.scala]
173[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/SearchInput.scala]
174[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/StudySorting.scala]
175[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/HealthCheckOutput.scala]
176[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/spec/HealthService.scala]
177[info] done compiling
178[info] compiling 3 Scala sources to /build/repo/modules/client/target/scala-3.8.0-RC3/classes ...
179[info] done compiling
180[info] compiling 16 Scala sources to /build/repo/modules/core/target/scala-3.8.0-RC3/classes ...
181[info] done compiling
182Dec 04, 2025 3:22:55 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
183INFO: Removing unused OpenAPI components: [#/components/schemas/HealthCheckOutput]
184Dec 04, 2025 3:22:55 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
185INFO: Removing unused OpenAPI components: [#/components/schemas/CountInput, #/components/schemas/SearchOutput, #/components/schemas/InternalServerError, #/components/schemas/SearchInput, #/components/schemas/CountOutput]
186Starting build for ProjectRef(file:/build/repo/,lila-mongo) (lila-mongo)... [1/12]
187Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/lila-mongo/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
188[info] compiling 12 Scala sources to /build/repo/modules/lila-mongo/target/scala-3.8.0-RC3/classes ...
189[warn] -- [E222] Syntax Warning: /build/repo/modules/lila-mongo/src/main/scala/mongo.game.scala:2:8
190[warn] 2 |package ingestor
191[warn] |^
192[warn] |The package name `mongo.game$package` will be encoded on the classpath, and can lead to undefined behaviour.
193[warn] 3 |import cats.effect.*
194[warn] 4 |import cats.syntax.all.*
195[warn] 5 |import chess.Clock.Config
196[warn] 6 |import chess.Speed
197[warn] 7 |import chess.variant.*
198[warn] 8 |import com.mongodb.client.model.changestream.FullDocument
199[warn] 9 |import com.mongodb.client.model.changestream.OperationType.*
200[warn] 10 |import io.circe.*
201[warn] 11 |import mongo4cats.circe.*
202[warn] 12 |import mongo4cats.collection.MongoCollection
203[warn] 13 |import mongo4cats.database.MongoDatabase
204[warn] 14 |import mongo4cats.models.collection.ChangeStreamDocument
205[warn] 15 |import mongo4cats.operations.{ Aggregate, Filter, Projection }
206[warn] 16 |import org.typelevel.log4cats.syntax.*
207[warn] 17 |import org.typelevel.log4cats.{ Logger, LoggerFactory }
208[warn] 18 |import java.time.Instant
209[warn] 19 |import scala.concurrent.duration.*
210[warn] 20 |import Repo.{ *, given }
211[warn] 21 |object GameRepo:
212[warn] 22 | private val interestedOperations = List(UPDATE, DELETE).map(_.getValue)
213[warn] 23 | private val eventFilter = Filter.in("operationType", interestedOperations)
214[warn] 24 | private val interestedEventFields =
215[warn] 25 | List(
216[warn] 26 | "operationType",
217[warn] 27 | "clusterTime",
218[warn] 28 | "documentKey._id",
219[warn] 29 | "fullDocument"
220[warn] 30 | ) // TODO only include interestedFields
221[warn] 31 | private val eventProjection = Projection.include(interestedEventFields)
222[warn] 32 | // https://github.com/lichess-org/lila/blob/65e6dd88e99cfa0068bc790a4518a6edb3513f54/modules/gameSearch/src/main/GameSearchApi.scala#L52
223[warn] 33 | val gameFilter: Filter =
224[warn] 34 | // Filter games that finished
225[warn] 35 | // https://github.com/lichess-org/scalachess/blob/18edf46a50445048fdc2ee5a83752e5b3884f490/core/src/main/scala/Status.scala#L18-L27
226[warn] 36 | val statusFilter = Filter.gte("s", 30)
227[warn] 37 | val noImportFilter = Filter.ne("so", 7)
228[warn] 38 | // us fields is the list of player ids, if it's missing then it's
229[warn] 39 | // an all anonymous (or anonymous vs stockfish) game
230[warn] 40 | val noAllAnonFilter = Filter.exists("us")
231[warn] 41 | statusFilter.and(noImportFilter).and(noAllAnonFilter)
232[warn] 42 | // https://github.com/lichess-org/lila/blob/65e6dd88e99cfa0068bc790a4518a6edb3513f54/modules/gameSearch/src/main/GameSearchApi.scala#L52
233[warn] 43 | val changeFilter: Filter =
234[warn] 44 | // Filter games that finished
235[warn] 45 | // https://github.com/lichess-org/scalachess/blob/18edf46a50445048fdc2ee5a83752e5b3884f490/core/src/main/scala/Status.scala#L18-L27
236[warn] 46 | val statusFilter = Filter.gte("fullDocument.s", 30)
237[warn] 47 | val noImportFilter = Filter.ne("fullDocument.so", 7)
238[warn] 48 | // us fields is the list of player ids, if it's missing then it's
239[warn] 49 | // an all anonymous (or anonymous vs stockfish) game
240[warn] 50 | val noAllAnonFilter = Filter.exists("fullDocument.us")
241[warn] 51 | statusFilter.and(noImportFilter).and(noAllAnonFilter)
242[warn] 52 | private val aggregate =
243[warn] 53 | Aggregate.matchBy(eventFilter.and(changeFilter)).combinedWith(Aggregate.project(eventProjection))
244[warn] 54 | def apply(mongo: MongoDatabase[IO], config: IngestorConfig.Game)(using
245[warn] 55 | LoggerFactory[IO]
246[warn] 56 | ): IO[Repo[DbGame]] =
247[warn] 57 | given Logger[IO] = LoggerFactory[IO].getLogger
248[warn] 58 | mongo.getCollectionWithCodec[DbGame]("game5").map(apply(config))
249[warn] 59 | def apply(config: IngestorConfig.Game)(games: MongoCollection[IO, DbGame])(using
250[warn] 60 | Logger[IO]
251[warn] 61 | ): Repo[DbGame] = new:
252[warn] 62 | def watch(since: Option[Instant]): fs2.Stream[IO, Result[DbGame]] =
253[warn] 63 | changes(since)
254[warn] 64 | .map: events =>
255[warn] 65 | val lastEventTimestamp = events.lastOption.flatMap(_.clusterTime).flatMap(_.asInstant)
256[warn] 66 | val (toDelete, toIndex) = events.partition(_.operationType == DELETE)
257[warn] 67 | Result(
258[warn] 68 | toIndex.flatMap(_.fullDocument),
259[warn] 69 | toDelete.flatMap(_.docId.map(Id.apply)),
260[warn] 70 | lastEventTimestamp
261[warn] 71 | )
262[warn] 72 | def fetchAll(since: Instant, until: Instant): fs2.Stream[IO, Result[DbGame]] =
263[warn] 73 | val filter = range(F.createdAt)(since, until.some)
264[warn] 74 | fs2.Stream.eval(info"Fetching games from $since to $until") *>
265[warn] 75 | games
266[warn] 76 | .find(filter.and(gameFilter))
267[warn] 77 | // .hint("ca_-1")
268[warn] 78 | .boundedStream(config.batchSize)
269[warn] 79 | .chunkN(config.batchSize)
270[warn] 80 | .map(_.toList)
271[warn] 81 | .metered(1.second) // to avoid overloading the elasticsearch
272[warn] 82 | .map(ds => Result(ds, Nil, None))
273[warn] 83 | private def changes(since: Option[Instant]): fs2.Stream[IO, List[ChangeStreamDocument[DbGame]]] =
274[warn] 84 | val builder = games.watch(aggregate)
275[warn] 85 | since
276[warn] 86 | .fold(builder)(x => builder.startAtOperationTime(x.asBsonTimestamp))
277[warn] 87 | .fullDocument(FullDocument.UPDATE_LOOKUP) // this is required for update event
278[warn] 88 | .batchSize(config.batchSize)
279[warn] 89 | .boundedStream(config.batchSize)
280[warn] 90 | .groupWithin(config.batchSize, config.timeWindows.second)
281[warn] 91 | .evalTap(
282[warn] 92 | _.traverse_(x =>
283[warn] 93 | info"Received $x without p0 or p1 fields".whenA(x.fullDocument.exists(_.shouldDebug))
284[warn] 94 | )
285[warn] 95 | )
286[warn] 96 | .map(_.toList.distincByDocId)
287[warn] 97 | object F:
288[warn] 98 | val createdAt = "ca"
289[warn] 99 | val updatedAt = "ua"
290[warn] 100 |type PlayerId = String
291[warn] 101 |case class DbGame(
292[warn] 102 | id: String, // _id
293[warn] 103 | players: List[PlayerId], // us
294[warn] 104 | winnerId: Option[PlayerId], // wid
295[warn] 105 | createdAt: Instant, // ca
296[warn] 106 | movedAt: Instant, // ua
297[warn] 107 | ply: Int, // t
298[warn] 108 | analysed: Option[Boolean], // an
299[warn] 109 | whitePlayer: Option[DbPlayer], // p0
300[warn] 110 | blackPlayer: Option[DbPlayer], // p1
301[warn] 111 | playerIds: String, // is
302[warn] 112 | binaryPieces: Option[Array[Byte]], // ps
303[warn] 113 | huffmanPgn: Option[Array[Byte]], // hp
304[warn] 114 | status: Int, // s
305[warn] 115 | encodedClock: Option[Array[Byte]], // c
306[warn] 116 | moveTimes: Option[Array[Byte]], // mt
307[warn] 117 | encodedWhiteClock: Option[Array[Byte]], // cw
308[warn] 118 | encodedBlackClock: Option[Array[Byte]], // cb
309[warn] 119 | rated: Option[Boolean], // ra
310[warn] 120 | variant: Option[Int], // v
311[warn] 121 | source: Option[Int], // so
312[warn] 122 | winnerColor: Option[Boolean] // w
313[warn] 123 |):
314[warn] 124 | def clockConfig: Option[Config] = encodedClock.flatMap(ClockDecoder.read)
315[warn] 125 | def clockInit: Option[Int] = clockConfig.map(_.limitSeconds.value)
316[warn] 126 | def clockInc: Option[Int] = clockConfig.map(_.incrementSeconds.value)
317[warn] 127 | def whiteId: Option[PlayerId] = players.headOption
318[warn] 128 | def blackId: Option[PlayerId] = players.lift(1)
319[warn] 129 | def variantOrDefault: Variant = Variant.idOrDefault(variant.map(Variant.Id.apply))
320[warn] 130 | def speed: Speed = Speed(clockConfig)
321[warn] 131 | def loser: Option[PlayerId] = players.find(_.some != winnerId)
322[warn] 132 | def aiLevel: Option[Int] = whitePlayer.flatMap(_.aiLevel).orElse(blackPlayer.flatMap(_.aiLevel))
323[warn] 133 | def shouldDebug =
324[warn] 134 | whitePlayer.isEmpty || blackPlayer.isEmpty
325[warn] 135 |object DbGame:
326[warn] 136 | // format: off
327[warn] 137 | given Decoder[DbGame] = Decoder.forProduct21(
328[warn] 138 | "_id", "us", "wid", "ca", "ua", "t", "an", "p0", "p1", "is", "ps",
329[warn] 139 | "hp", "s", "c", "mt", "cw", "cb", "ra", "v", "so", "w")(DbGame.apply)
330[warn] 140 | // format: on
331[warn] 141 | // We don't write to the database so We don't need to implement this
332[warn] 142 | given Encoder[DbGame] = new Encoder[DbGame]:
333[warn] 143 | def apply(a: DbGame): Json = ???
334[warn] 144 |case class DbPlayer(
335[warn] 145 | rating: Option[Int],
336[warn] 146 | ratingDiff: Option[Int],
337[warn] 147 | berserk: Option[Boolean],
338[warn] 148 | aiLevel: Option[Int],
339[warn] 149 | provisional: Option[Boolean],
340[warn] 150 | name: Option[String]
341[warn] 151 |)
342[warn] 152 |object DbPlayer:
343[warn] 153 | given Decoder[DbPlayer] = Decoder.forProduct6("e", "d", "be", "ai", "p", "na")(DbPlayer.apply)
344[warn] 154 | given Encoder[DbPlayer] = Encoder.forProduct6("e", "d", "be", "ai", "p", "na")(p =>
345[warn] 155 | (p.rating, p.ratingDiff, p.berserk, p.aiLevel, p.provisional, p.name)
346[warn] 156 | )
347[warn] 157 |object ClockDecoder:
348[warn] 158 | import chess.*
349[warn] 159 | private def readClockLimit(i: Int) = Clock.LimitSeconds(if i < 181 then i * 60 else (i - 180) * 15)
350[warn] 160 | private inline def toInt(inline b: Byte): Int = b & 0xff
351[warn] 161 | def read(ba: Array[Byte]): Option[Clock.Config] =
352[warn] 162 | ba.take(2).map(toInt) match
353[warn] 163 | case Array(b1, b2) => Clock.Config(readClockLimit(b1), Clock.IncrementSeconds(b2)).some
354[warn] 164 | case _ => None
355[warn] |---------------------------------------------------------------------------
356[warn] | Explanation (enabled by `-explain`)
357[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
358[warn] | Tools may not handle directories whose names differ from their corresponding package names.
359[warn] | For example, `p-q` is encoded as `p$minusq` when written to the file system.
360[warn] |
361[warn] | Package objects derive their names from the file names, so files such as `myfile.test.scala`
362[warn] | or `myfile-test.scala` can produce encoded names for the generated package objects.
363[warn] |
364[warn] | In this case, the name `mongo.game$package` is encoded as `mongo$u002Egame$package`.
365[warn] ---------------------------------------------------------------------------
366[warn] one warning found
367[info] done compiling
368Starting build for ProjectRef(file:/build/repo/,core) (core)... [2/12]
369Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/core/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
370Starting build for ProjectRef(file:/build/repo/,api) (api)... [3/12]
371Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/api/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
372Starting build for ProjectRef(file:/build/repo/,lila-game-export) (lila-game-export)... [4/12]
373Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/lila-game-export/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
374[info] compiling 3 Scala sources to /build/repo/modules/lila-game-export/target/scala-3.8.0-RC3/classes ...
375[info] done compiling
376[info] compiling 1 Scala source to /build/repo/modules/lila-game-export/target/scala-3.8.0-RC3/test-classes ...
377[info] done compiling
378[info] lila.search.game.csv.CliTest
379[info] + export command with all required options 73ms
380[info] + export command with custom database 5ms
381[info] + export command with custom batch settings 4ms
382[info] + export command with watch flag 2ms
383Starting build for ProjectRef(file:/build/repo/,root) (root)... [5/12]
384Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -Xsemanticdb, -semanticdb-target, /build/repo/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
385Starting build for ProjectRef(file:/build/repo/,e2e) (e2e)... [6/12]
386Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -Xsemanticdb, -semanticdb-target, /build/repo/modules/e2e/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
387[info] compiling 24 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC3/classes ...
388[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/TextField.scala]
389[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/Study2Source.scala]
390[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/DateField.scala]
391[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/TeamSource.scala]
392[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/IntField.scala]
393[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/ForumSource.scala]
394[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/KeywordField.scala]
395[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/StudySource.scala]
396[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/UblogSource.scala]
397[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/ShortField.scala]
398[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/BooleanField.scala]
399[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/GameSource.scala]
400[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC3/src_managed/main/smithy4s/lila/search/es/KeywordSubfield.scala]
401[info] done compiling
402[info] compiling 11 Scala sources to /build/repo/modules/app/target/scala-3.8.0-RC3/classes ...
403[info] compiling 7 Scala sources to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC3/classes ...
404[warn] -- [E222] Syntax Warning: /build/repo/modules/app/src/main/scala/http.middleware.scala:2:8
405[warn] 2 |package app
406[warn] |^
407[warn] |The package name `http.middleware$package` will be encoded on the classpath, and can lead to undefined behaviour.
408[warn] 3 |import cats.effect.IO
409[warn] 4 |import org.http4s.*
410[warn] 5 |import org.http4s.otel4s.middleware.metrics.OtelMetrics
411[warn] 6 |import org.http4s.server.middleware.*
412[warn] 7 |import org.typelevel.log4cats.LoggerFactory
413[warn] 8 |import org.typelevel.otel4s.metrics.MeterProvider
414[warn] 9 |import scala.concurrent.duration.*
415[warn] 10 |type Middleware = HttpRoutes[IO] => HttpRoutes[IO]
416[warn] 11 |def MkMiddleware(config: HttpServerConfig)(using LoggerFactory[IO], MeterProvider[IO]): IO[Middleware] =
417[warn] 12 | def verboseLogger =
418[warn] 13 | RequestLogger.httpRoutes[IO](true, true).andThen(ResponseLogger.httpRoutes[IO, Request[IO]](true, true))
419[warn] 14 | def logger =
420[warn] 15 | if config.apiLogger then verboseLogger
421[warn] 16 | else ApiErrorLogger.instance(using LoggerFactory[IO].getLogger)
422[warn] 17 | OtelMetrics
423[warn] 18 | .serverMetricsOps[IO]()
424[warn] 19 | .map(org.http4s.server.middleware.Metrics[IO](_, None))
425[warn] 20 | .map: metrics =>
426[warn] 21 | logger.andThen(AutoSlash(_)).andThen(Timeout(60.seconds)).andThen(metrics)
427[warn] |----------------------------------------------------------------------------
428[warn] | Explanation (enabled by `-explain`)
429[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
430[warn] | Tools may not handle directories whose names differ from their corresponding package names.
431[warn] | For example, `p-q` is encoded as `p$minusq` when written to the file system.
432[warn] |
433[warn] | Package objects derive their names from the file names, so files such as `myfile.test.scala`
434[warn] | or `myfile-test.scala` can produce encoded names for the generated package objects.
435[warn] |
436[warn] | In this case, the name `http.middleware$package` is encoded as `http$u002Emiddleware$package`.
437[warn] ----------------------------------------------------------------------------
438[warn] -- [E222] Syntax Warning: /build/repo/modules/app/src/main/scala/http.routes.prometheus.scala:2:8
439[warn] 2 |package app
440[warn] |^
441[warn] |The package name `http.routes.prometheus$package` will be encoded on the classpath, and can lead to undefined behaviour.
442[warn] 3 |import cats.effect.IO
443[warn] 4 |import org.http4s.HttpRoutes
444[warn] 5 |import org.http4s.server.Router
445[warn] 6 |import org.typelevel.otel4s.sdk.exporter.prometheus.*
446[warn] 7 |import org.typelevel.otel4s.sdk.metrics.exporter.MetricExporter
447[warn] 8 |def MkPrometheusRoutes(using exporter: MetricExporter.Pull[IO]): HttpRoutes[IO] =
448[warn] 9 | val writerConfig = PrometheusWriter.Config.default
449[warn] 10 | val prometheusRoutes = PrometheusHttpRoutes.routes[IO](exporter, writerConfig)
450[warn] 11 | Router("/metrics" -> prometheusRoutes)
451[warn] |----------------------------------------------------------------------------
452[warn] | Explanation (enabled by `-explain`)
453[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
454[warn] | Tools may not handle directories whose names differ from their corresponding package names.
455[warn] | For example, `p-q` is encoded as `p$minusq` when written to the file system.
456[warn] |
457[warn] | Package objects derive their names from the file names, so files such as `myfile.test.scala`
458[warn] | or `myfile-test.scala` can produce encoded names for the generated package objects.
459[warn] |
460[warn] | In this case, the name `http.routes.prometheus$package` is encoded as `http$u002Eroutes$u002Eprometheus$package`.
461[warn] ----------------------------------------------------------------------------
462[warn] -- [E222] Syntax Warning: /build/repo/modules/app/src/main/scala/http.routes.scala:2:8
463[warn] 2 |package app
464[warn] |^
465[warn] |The package name `http.routes$package` will be encoded on the classpath, and can lead to undefined behaviour.
466[warn] 3 |import cats.data.NonEmptyList
467[warn] 4 |import cats.effect.{ IO, Resource }
468[warn] 5 |import cats.syntax.all.*
469[warn] 6 |import lila.search.spec.*
470[warn] 7 |import org.http4s.HttpRoutes
471[warn] 8 |import org.typelevel.log4cats.LoggerFactory
472[warn] 9 |import org.typelevel.otel4s.metrics.MeterProvider
473[warn] 10 |import smithy4s.http4s.SimpleRestJsonBuilder
474[warn] 11 |def Routes(
475[warn] 12 | resources: AppResources,
476[warn] 13 | config: HttpServerConfig
477[warn] 14 |)(using LoggerFactory[IO], MeterProvider[IO]): Resource[IO, HttpRoutes[IO]] =
478[warn] 15 | val healthServiceImpl = HealthServiceImpl(resources.esClient)
479[warn] 16 | val searchServiceImpl = SearchServiceImpl(resources.esClient)
480[warn] 17 | val search: Resource[IO, HttpRoutes[IO]] =
481[warn] 18 | SimpleRestJsonBuilder.routes(searchServiceImpl).resource
482[warn] 19 | val health: Resource[IO, HttpRoutes[IO]] =
483[warn] 20 | SimpleRestJsonBuilder.routes(healthServiceImpl).resource
484[warn] 21 | def docs = smithy4s.http4s.swagger.docs[IO](SearchService, HealthService)
485[warn] 22 | val apiRoutes =
486[warn] 23 | NonEmptyList
487[warn] 24 | .of(search, health)
488[warn] 25 | .sequence
489[warn] 26 | .map(_.reduceK)
490[warn] 27 | val allRoutes =
491[warn] 28 | if config.enableDocs then apiRoutes.map(_ <+> docs)
492[warn] 29 | else apiRoutes
493[warn] 30 | allRoutes.evalMap(routes => MkMiddleware(config).map(md => md.apply(routes)))
494[warn] |----------------------------------------------------------------------------
495[warn] | Explanation (enabled by `-explain`)
496[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
497[warn] | Tools may not handle directories whose names differ from their corresponding package names.
498[warn] | For example, `p-q` is encoded as `p$minusq` when written to the file system.
499[warn] |
500[warn] | Package objects derive their names from the file names, so files such as `myfile.test.scala`
501[warn] | or `myfile-test.scala` can produce encoded names for the generated package objects.
502[warn] |
503[warn] | In this case, the name `http.routes$package` is encoded as `http$u002Eroutes$package`.
504[warn] ----------------------------------------------------------------------------
505[info] done compiling
506[info] [patched file /build/repo/modules/app/target/scala-3.8.0-RC3/src_managed/main/sbt-buildinfo/BuildInfo.scala]
507[warn] three warnings found
508[info] done compiling
509[info] compiling 24 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC3/classes ...
510[info] done compiling
511[info] compiling 2 Scala sources to /build/repo/modules/app/target/scala-3.8.0-RC3/classes ...
512[info] compiling 1 Scala source to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC3/classes ...
513[info] done compiling
514[info] done compiling
515[info] compiling 4 Scala sources to /build/repo/modules/e2e/target/scala-3.8.0-RC3/test-classes ...
516[info] done compiling
517SLF4J(W): A number (5) of logging calls during the initialization phase have been intercepted and are
518SLF4J(W): now being replayed. These are subject to the filtering rules of the underlying logging system.
519SLF4J(W): See also https://www.slf4j.org/codes.html#replay
5202025-12-04 15:24:32,538 [io-compute-2] INFO o.t.i.PullPolicy - Image pull policy will be performed by: DefaultPullPolicy()
5212025-12-04 15:24:32,541 [io-compute-2] INFO o.t.u.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
5222025-12-04 15:24:32,541 [io-compute-2] INFO o.t.DockerClientFactory - Testcontainers version: 2.0.2
5232025-12-04 15:24:33,170 [io-compute-3] INFO o.t.d.DockerClientProviderStrategy - Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
5242025-12-04 15:24:33,201 [io-compute-3] INFO o.t.DockerClientFactory - Docker host IP address is 172.17.0.1
5252025-12-04 15:24:33,221 [io-compute-3] INFO o.t.DockerClientFactory - Connected to docker:
526 Server Version: 28.0.4
527 API Version: 1.48
528 Operating System: Ubuntu 22.04.5 LTS
529 Total Memory: 15995 MB
5302025-12-04 15:24:33,246 [io-compute-2] INFO o.h.e.s.EmberServerBuilderCompanionPlatform - Ember-Server service bound to address: [::]:9999
5312025-12-04 15:24:33,248 [io-compute-2] INFO lila.search.app.App - lila-search started at /[0:0:0:0:0:0:0:0]:9999
5322025-12-04 15:24:33,250 [io-compute-2] INFO lila.search.app.App - BuildInfo: version: 3.4.1-SNAPSHOT, gitHeadCommit: 2465445
5332025-12-04 15:24:33,273 [io-compute-3] INFO t.t.13.0 - Pulling docker image: testcontainers/ryuk:0.13.0. Please be patient; this may take some time but only needs to be done once.
5342025-12-04 15:24:33,280 [io-compute-3] INFO o.t.u.RegistryAuthLocator - Failure when attempting to lookup auth config. Please ignore if you don't have images in an authenticated registry. Details: (dockerImageName: testcontainers/ryuk:latest, configFile: /root/.docker/config.json, configEnv: DOCKER_AUTH_CONFIG). Falling back to docker-java default behaviour. Exception message: Status 404: No config supplied. Checked in order: /root/.docker/config.json (file not found), DOCKER_AUTH_CONFIG (not set)
5352025-12-04 15:24:33,759 [docker-java-stream--792291873] INFO t.t.13.0 - Starting to pull image
5362025-12-04 15:24:33,781 [docker-java-stream--792291873] INFO t.t.13.0 - Pulling image layers: 0 pending, 0 downloaded, 0 extracted, (0 bytes/0 bytes)
5372025-12-04 15:24:33,916 [docker-java-stream--792291873] INFO t.t.13.0 - Pulling image layers: 1 pending, 1 downloaded, 0 extracted, (211 KB/? MB)
5382025-12-04 15:24:33,923 [docker-java-stream--792291873] INFO t.t.13.0 - Pulling image layers: 1 pending, 1 downloaded, 1 extracted, (211 KB/? MB)
539[INFO] [12/04/2025 15:24:34.112] [io-compute-2] [CoordinatedShutdown(akka://default)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
540[info] lila.search.test.CompatSuite
541[info] + search endpoint 304ms
542[info] + bad search study endpoint 33ms
543[info] + count endpoint 304ms
5442025-12-04 15:24:34,550 [docker-java-stream--792291873] INFO t.t.13.0 - Pulling image layers: 0 pending, 2 downloaded, 1 extracted, (4 MB/6 MB)
5452025-12-04 15:24:34,599 [docker-java-stream--792291873] INFO t.t.13.0 - Pulling image layers: 0 pending, 2 downloaded, 2 extracted, (6 MB/6 MB)
5462025-12-04 15:24:34,609 [io-compute-3] INFO t.t.13.0 - Image testcontainers/ryuk:0.13.0 pull took PT1.334796904S
5472025-12-04 15:24:34,640 [io-compute-3] INFO t.t.13.0 - Creating container for image: testcontainers/ryuk:0.13.0
5482025-12-04 15:24:34,723 [io-compute-3] INFO t.t.13.0 - Container testcontainers/ryuk:0.13.0 is starting: aedf583617aff620d34f94d0dffb09244727c6a1780743cbb731aeae238c2179
5492025-12-04 15:24:35,075 [io-compute-3] INFO t.t.13.0 - Container testcontainers/ryuk:0.13.0 started in PT0.435079179S
5502025-12-04 15:24:35,078 [io-compute-3] INFO o.t.u.RyukResourceReaper - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
5512025-12-04 15:24:35,079 [io-compute-3] INFO o.t.DockerClientFactory - Checking the system...
5522025-12-04 15:24:35,079 [io-compute-3] INFO o.t.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0
5532025-12-04 15:24:35,082 [io-compute-3] INFO t.e.10.1 - Pulling docker image: elasticsearch:7.10.1. Please be patient; this may take some time but only needs to be done once.
5542025-12-04 15:24:35,266 [docker-java-stream-1089867659] INFO t.e.10.1 - Starting to pull image
5552025-12-04 15:24:35,267 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 0 downloaded, 0 extracted, (0 bytes/0 bytes)
5562025-12-04 15:24:35,521 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 8 pending, 1 downloaded, 0 extracted, (77 KB/? MB)
5572025-12-04 15:24:35,612 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 7 pending, 2 downloaded, 0 extracted, (4 MB/? MB)
5582025-12-04 15:24:35,719 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 6 pending, 3 downloaded, 0 extracted, (9 MB/? MB)
5592025-12-04 15:24:35,849 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 5 pending, 4 downloaded, 0 extracted, (16 MB/? MB)
5602025-12-04 15:24:36,005 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 4 pending, 5 downloaded, 0 extracted, (25 MB/? MB)
5612025-12-04 15:24:36,163 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 3 pending, 6 downloaded, 0 extracted, (41 MB/? MB)
5622025-12-04 15:24:36,358 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 2 pending, 7 downloaded, 0 extracted, (45 MB/? MB)
5632025-12-04 15:24:39,763 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 0 extracted, (198 MB/? MB)
5642025-12-04 15:24:42,563 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 1 extracted, (308 MB/? MB)
5652025-12-04 15:24:44,416 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 1 extracted, (384 MB/384 MB)
5662025-12-04 15:24:44,422 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 2 extracted, (384 MB/384 MB)
5672025-12-04 15:24:44,444 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 3 extracted, (384 MB/384 MB)
5682025-12-04 15:24:47,825 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 4 extracted, (384 MB/384 MB)
5692025-12-04 15:24:47,838 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 5 extracted, (384 MB/384 MB)
5702025-12-04 15:24:47,856 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 6 extracted, (384 MB/384 MB)
5712025-12-04 15:24:47,871 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 7 extracted, (384 MB/384 MB)
5722025-12-04 15:24:47,930 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 8 extracted, (384 MB/384 MB)
5732025-12-04 15:24:47,954 [docker-java-stream-1089867659] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 9 extracted, (384 MB/384 MB)
5742025-12-04 15:24:47,961 [docker-java-stream-1089867659] INFO t.e.10.1 - Pull complete. 9 layers, pulled in 12s (downloaded 384 MB at 32 MB/s)
5752025-12-04 15:24:47,961 [io-compute-3] INFO t.e.10.1 - Image elasticsearch:7.10.1 pull took PT12.879341641S
5762025-12-04 15:24:47,964 [io-compute-3] INFO t.e.10.1 - Creating container for image: elasticsearch:7.10.1
5772025-12-04 15:24:48,059 [io-compute-3] INFO t.e.10.1 - Container elasticsearch:7.10.1 is starting: 31f8cbe8d19fa2a697131a19273d5599c938989c2dfce48b6dbf245301b686ba
5782025-12-04 15:24:58,101 [io-compute-3] INFO t.e.10.1 - Container elasticsearch:7.10.1 started in PT10.136328436S
5792025-12-04 15:24:58,296 [io-compute-2] INFO o.h.e.s.EmberServerBuilderCompanionPlatform - Ember-Server service bound to address: [::]:9999
5802025-12-04 15:24:58,297 [io-compute-2] INFO lila.search.app.App - lila-search started at /[0:0:0:0:0:0:0:0]:9999
5812025-12-04 15:24:58,300 [io-compute-2] INFO lila.search.app.App - BuildInfo: version: 3.4.1-SNAPSHOT, gitHeadCommit: 2465445
582[info] lila.search.app.test.IntegrationSuite
583[info] + health check should return healthy 752ms
584[info] + forum 3s
585[info] + ublog 3s
586[info] + team 3s
587[info] + study 3s
588[info] + game 3s
589Starting build for ProjectRef(file:/build/repo/,ingestor-cli) (lila-search-cli)... [7/12]
590Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
591[info] compiling 3 Scala sources to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC3/classes ...
592[info] [patched file /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC3/src_managed/main/sbt-buildinfo/BuildInfo.scala]
593[info] done compiling
594[info] compiling 1 Scala source to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC3/classes ...
595[info] done compiling
596[info] compiling 1 Scala source to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC3/test-classes ...
597[info] done compiling
598[info] lila.search.ingestor.CLITest
599[info] + index command 63ms
600[info] + index command with watch flag 4ms
601Starting build for ProjectRef(file:/build/repo/,app) (lila-search-app)... [8/12]
602Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/app/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
603Starting build for ProjectRef(file:/build/repo/,ingestor-app) (lila-search-ingestor)... [9/12]
604Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/ingestor-app/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
605[info] compiling 2 Scala sources to /build/repo/modules/ingestor-app/target/scala-3.8.0-RC3/classes ...
606[info] [patched file /build/repo/modules/ingestor-app/target/scala-3.8.0-RC3/src_managed/main/sbt-buildinfo/BuildInfo.scala]
607[info] done compiling
608[info] compiling 1 Scala source to /build/repo/modules/ingestor-app/target/scala-3.8.0-RC3/classes ...
609[info] done compiling
610Starting build for ProjectRef(file:/build/repo/,ingestor-core) (ingestor-core)... [10/12]
611Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/ingestor-core/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
612[info] compiling 1 Scala source to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC3/test-classes ...
613[info] done compiling
614[info] lila.search.ingestor.HasDocIdTest
615[info] + distincByDocId is empty when input is empty 7ms
616[info] + distincByDocId is empty when all docIds are none 374ms
617[info] + distincByDocId contains only item with defined docId 379ms
618[info] + distincByDocId is idempotent 384ms
619[info] + distincByDocId == reverse.distincBy.reverse 368ms
620Starting build for ProjectRef(file:/build/repo/,elastic) (elastic)... [11/12]
621Compile scalacOptions: -encoding, utf8, -unchecked, -language:experimental.macros, -language:higherKinds, -language:implicitConversions, -Xkind-projector, -Wvalue-discard, -Wnonunit-statement, -Wunused:implicits, -Wunused:explicits, -Wunused:imports, -Wunused:locals, -Wunused:params, -Wunused:privates, -release, 21, -indent, -rewrite, -explain, -Wall, -Xsemanticdb, -semanticdb-target, /build/repo/modules/elastic/target/scala-3.8.0-RC3/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
622[info] compiling 2 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC3/test-classes ...
623[info] done compiling
624SLF4J(W): No SLF4J providers were found.
625SLF4J(W): Defaulting to no-operation (NOP) logger implementation
626SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
627[info] lila.search.MappingComparisonSuite
628[info] + Study index: generated mappings match legacy mappings 88ms
629[info] + Game index: generated mappings match legacy mappings 88ms
630[info] + Forum index: generated mappings match legacy mappings 88ms
631[info] + Team index: generated mappings match legacy mappings 87ms
632[info] + Study2 index: generated mappings match legacy mappings 9ms
633[info] + Ublog index: generated mappings match legacy mappings 4ms
634
635************************
636Build summary:
637[{
638 "module": "client",
639 "compile": {"status": "ok", "tookMs": 23219, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
640 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
641 "test-compile": {"status": "ok", "tookMs": 2361, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
642 "test": {"status": "ok", "tookMs": 397, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
643 "publish": {"status": "skipped", "tookMs": 0},
644 "metadata": {
645 "crossScalaVersions": ["3.7.4"]
646}
647},{
648 "module": "lila-mongo",
649 "compile": {"status": "ok", "tookMs": 5398, "warnings": 1, "errors": 0, "sourceVersion": "3.8"},
650 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
651 "test-compile": {"status": "ok", "tookMs": 334, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
652 "test": {"status": "ok", "tookMs": 227, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
653 "publish": {"status": "ok", "tookMs": 3},
654 "metadata": {
655 "crossScalaVersions": ["3.7.4"]
656}
657},{
658 "module": "core",
659 "compile": {"status": "ok", "tookMs": 132, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
660 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
661 "test-compile": {"status": "ok", "tookMs": 159, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
662 "test": {"status": "ok", "tookMs": 153, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
663 "publish": {"status": "skipped", "tookMs": 0},
664 "metadata": {
665 "crossScalaVersions": ["3.7.4"]
666}
667},{
668 "module": "api",
669 "compile": {"status": "ok", "tookMs": 249, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
670 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
671 "test-compile": {"status": "ok", "tookMs": 284, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
672 "test": {"status": "ok", "tookMs": 286, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
673 "publish": {"status": "skipped", "tookMs": 0},
674 "metadata": {
675 "crossScalaVersions": ["3.7.4"]
676}
677},{
678 "module": "lila-game-export",
679 "compile": {"status": "ok", "tookMs": 1774, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
680 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
681 "test-compile": {"status": "ok", "tookMs": 1755, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
682 "test": {"status": "ok", "tookMs": 916, "passed": 4, "failed": 0, "ignored": 0, "skipped": 0, "total": 4, "byFramework": [{"framework": "unknown", "stats": {"passed": 4, "failed": 0, "ignored": 0, "skipped": 0, "total": 4}}]},
683 "publish": {"status": "ok", "tookMs": 3},
684 "metadata": {
685 "crossScalaVersions": ["3.7.4"]
686}
687},{
688 "module": "root",
689 "compile": {"status": "ok", "tookMs": 58, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
690 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
691 "test-compile": {"status": "ok", "tookMs": 77, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
692 "test": {"status": "ok", "tookMs": 57, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
693 "publish": {"status": "ok", "tookMs": 2},
694 "metadata": {
695 "crossScalaVersions": ["3.7.4"]
696}
697},{
698 "module": "e2e",
699 "compile": {"status": "ok", "tookMs": 11471, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
700 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
701 "test-compile": {"status": "ok", "tookMs": 9327, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
702 "test": {"status": "ok", "tookMs": 30829, "passed": 9, "failed": 0, "ignored": 0, "skipped": 0, "total": 9, "byFramework": [{"framework": "unknown", "stats": {"passed": 9, "failed": 0, "ignored": 0, "skipped": 0, "total": 9}}]},
703 "publish": {"status": "ok", "tookMs": 3},
704 "metadata": {
705 "crossScalaVersions": ["3.7.4"]
706}
707},{
708 "module": "lila-search-cli",
709 "compile": {"status": "ok", "tookMs": 1684, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
710 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
711 "test-compile": {"status": "ok", "tookMs": 1635, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
712 "test": {"status": "ok", "tookMs": 1263, "passed": 2, "failed": 0, "ignored": 0, "skipped": 0, "total": 2, "byFramework": [{"framework": "unknown", "stats": {"passed": 2, "failed": 0, "ignored": 0, "skipped": 0, "total": 2}}]},
713 "publish": {"status": "ok", "tookMs": 2},
714 "metadata": {
715 "crossScalaVersions": ["3.7.4"]
716}
717},{
718 "module": "lila-search-app",
719 "compile": {"status": "ok", "tookMs": 366, "warnings": 3, "errors": 0, "sourceVersion": "3.8"},
720 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
721 "test-compile": {"status": "ok", "tookMs": 435, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
722 "test": {"status": "ok", "tookMs": 425, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
723 "publish": {"status": "ok", "tookMs": 3},
724 "metadata": {
725 "crossScalaVersions": ["3.7.4"]
726}
727},{
728 "module": "lila-search-ingestor",
729 "compile": {"status": "ok", "tookMs": 1205, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
730 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
731 "test-compile": {"status": "ok", "tookMs": 885, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
732 "test": {"status": "ok", "tookMs": 649, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
733 "publish": {"status": "ok", "tookMs": 3},
734 "metadata": {
735 "crossScalaVersions": ["3.7.4"]
736}
737},{
738 "module": "ingestor-core",
739 "compile": {"status": "ok", "tookMs": 647, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
740 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
741 "test-compile": {"status": "ok", "tookMs": 1497, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
742 "test": {"status": "ok", "tookMs": 1501, "passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5, "byFramework": [{"framework": "unknown", "stats": {"passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5}}]},
743 "publish": {"status": "ok", "tookMs": 11},
744 "metadata": {
745 "crossScalaVersions": ["3.7.4"]
746}
747},{
748 "module": "elastic",
749 "compile": {"status": "ok", "tookMs": 302, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
750 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
751 "test-compile": {"status": "ok", "tookMs": 1494, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
752 "test": {"status": "ok", "tookMs": 891, "passed": 6, "failed": 0, "ignored": 0, "skipped": 0, "total": 6, "byFramework": [{"framework": "unknown", "stats": {"passed": 6, "failed": 0, "ignored": 0, "skipped": 0, "total": 6}}]},
753 "publish": {"status": "ok", "tookMs": 3},
754 "metadata": {
755 "crossScalaVersions": ["3.7.4"]
756}
757}]
758************************
759[success] Total time: 192 s (0:03:12.0), completed Dec 4, 2025, 3:25:29 PM
760[0JChecking patch project/plugins.sbt...
761Checking patch build.sbt...
762Applied patch project/plugins.sbt cleanly.
763Applied patch build.sbt cleanly.