Build Logs
lichess-org/lila-search • 3.8.0-RC2:2025-11-28
Errors
1
Warnings
296
Total Lines
764
1##################################
2Clonning https://github.com/lichess-org/lila-search.git into /build/repo using revision
3##################################
4----
5Preparing build for 3.8.0-RC2
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-RC2
15Execute tests: true
16sbt project found:
17No prepare script found for project lichess-org/lila-search
18##################################
19Scala version: 3.8.0-RC2
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-RC2
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-RC2"
41"++3.8.0-RC2 -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-RC2 """{"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 7.788s.
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-RC2
78OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in e2e/crossScalaVersions
79OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in core/crossScalaVersions
80OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in ingestor-app/crossScalaVersions
81OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in api/crossScalaVersions
82OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in elastic/crossScalaVersions
83OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in ingestor-core/crossScalaVersions
84OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in app/crossScalaVersions
85OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in client/crossScalaVersions
86OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in lila-mongo/crossScalaVersions
87OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in ingestor-cli/crossScalaVersions
88OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in lila-game-export/crossScalaVersions
89OpenCB::Changing crossVersion 3.7.4 -> 3.8.0-RC2 in root/crossScalaVersions
90[info] set current project to root (in build file:/build/repo/)
91[info] Setting Scala version to 3.8.0-RC2 on 12 projects.
92[info] Switching Scala version on:
93[info] ingestor-core (3.8.0-RC2)
94[info] * root (3.8.0-RC2)
95[info] ingestor-app (3.8.0-RC2)
96[info] elastic (3.8.0-RC2)
97[info] ingestor-cli (3.8.0-RC2)
98[info] lila-mongo (3.8.0-RC2)
99[info] lila-game-export (3.8.0-RC2)
100[info] client (3.8.0-RC2)
101[info] app (3.8.0-RC2)
102[info] api (3.8.0-RC2)
103[info] core (3.8.0-RC2)
104[info] e2e (3.8.0-RC2)
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 Nov 28, 2025, 2:54:35 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-RC2/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-RC2/classes ...
140[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/FromInt.scala]
141[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/FromFormat.scala]
142[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/DateTime.scala]
143[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/PlayerIds.scala]
144[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/SizeFormat.scala]
145[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/IndexString.scala]
146[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/SizeInt.scala]
147[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/IdFormat.scala]
148[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/Strings.scala]
149[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/Ids.scala]
150[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/DateTimeFormat.scala]
151[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/IndexFormat.scala]
152[info] [patched file /build/repo/modules/core/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/core/IdString.scala]
153[info] done compiling
154Nov 28, 2025 2:55:00 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
155INFO: Removing unused OpenAPI components: [#/components/schemas/HealthCheckOutput]
156Nov 28, 2025 2:55:00 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-RC2/classes ...
159[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/Order.scala]
160[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/SortBlogsBy.scala]
161[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/IntRange.scala]
162[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/HealthService.scala]
163[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/GameSorting.scala]
164[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/InternalServerError.scala]
165[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/Perfs.scala]
166[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/DateRange.scala]
167[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/Query.scala]
168[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/SearchOutput.scala]
169[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/SearchInput.scala]
170[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/HealthCheckOutput.scala]
171[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/CountOutput.scala]
172[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/SearchService.scala]
173[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/ElasticStatus.scala]
174[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/StudySortField.scala]
175[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/CountInput.scala]
176[info] [patched file /build/repo/modules/api/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/spec/StudySorting.scala]
177[info] done compiling
178[info] compiling 3 Scala sources to /build/repo/modules/client/target/scala-3.8.0-RC2/classes ...
179[info] done compiling
180[info] compiling 16 Scala sources to /build/repo/modules/core/target/scala-3.8.0-RC2/classes ...
181[info] done compiling
182Nov 28, 2025 2:55:10 PM software.amazon.smithy.openapi.fromsmithy.mappers.RemoveUnusedComponents removalRound
183INFO: Removing unused OpenAPI components: [#/components/schemas/HealthCheckOutput]
184Nov 28, 2025 2:55:10 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
188[info] compiling 10 Scala sources to /build/repo/modules/lila-mongo/target/scala-3.8.0-RC2/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 | Nil,
261[warn] 71 | lastEventTimestamp
262[warn] 72 | )
263[warn] 73 | def fetch(since: Instant, until: Instant): fs2.Stream[IO, Result[DbGame]] =
264[warn] 74 | val filter = range(F.createdAt)(since, until.some)
265[warn] 75 | fs2.Stream.eval(info"Fetching games from $since to $until") *>
266[warn] 76 | games
267[warn] 77 | .find(filter.and(gameFilter))
268[warn] 78 | // .hint("ca_-1")
269[warn] 79 | .boundedStream(config.batchSize)
270[warn] 80 | .chunkN(config.batchSize)
271[warn] 81 | .map(_.toList)
272[warn] 82 | .metered(1.second) // to avoid overloading the elasticsearch
273[warn] 83 | .map(ds => Result(ds, Nil, Nil, None))
274[warn] 84 | private def changes(since: Option[Instant]): fs2.Stream[IO, List[ChangeStreamDocument[DbGame]]] =
275[warn] 85 | val builder = games.watch(aggregate)
276[warn] 86 | since
277[warn] 87 | .fold(builder)(x => builder.startAtOperationTime(x.asBsonTimestamp))
278[warn] 88 | .fullDocument(FullDocument.UPDATE_LOOKUP) // this is required for update event
279[warn] 89 | .batchSize(config.batchSize)
280[warn] 90 | .boundedStream(config.batchSize)
281[warn] 91 | .groupWithin(config.batchSize, config.timeWindows.second)
282[warn] 92 | .evalTap(
283[warn] 93 | _.traverse_(x =>
284[warn] 94 | info"Received $x without p0 or p1 fields".whenA(x.fullDocument.exists(_.shouldDebug))
285[warn] 95 | )
286[warn] 96 | )
287[warn] 97 | .map(_.toList.distincByDocId)
288[warn] 98 | object F:
289[warn] 99 | val createdAt = "ca"
290[warn] 100 | val updatedAt = "ua"
291[warn] 101 |type PlayerId = String
292[warn] 102 |case class DbGame(
293[warn] 103 | id: String, // _id
294[warn] 104 | players: List[PlayerId], // us
295[warn] 105 | winnerId: Option[PlayerId], // wid
296[warn] 106 | createdAt: Instant, // ca
297[warn] 107 | movedAt: Instant, // ua
298[warn] 108 | ply: Int, // t
299[warn] 109 | analysed: Option[Boolean], // an
300[warn] 110 | whitePlayer: Option[DbPlayer], // p0
301[warn] 111 | blackPlayer: Option[DbPlayer], // p1
302[warn] 112 | playerIds: String, // is
303[warn] 113 | binaryPieces: Option[Array[Byte]], // ps
304[warn] 114 | huffmanPgn: Option[Array[Byte]], // hp
305[warn] 115 | status: Int, // s
306[warn] 116 | encodedClock: Option[Array[Byte]], // c
307[warn] 117 | moveTimes: Option[Array[Byte]], // mt
308[warn] 118 | encodedWhiteClock: Option[Array[Byte]], // cw
309[warn] 119 | encodedBlackClock: Option[Array[Byte]], // cb
310[warn] 120 | rated: Option[Boolean], // ra
311[warn] 121 | variant: Option[Int], // v
312[warn] 122 | source: Option[Int], // so
313[warn] 123 | winnerColor: Option[Boolean] // w
314[warn] 124 |):
315[warn] 125 | def clockConfig: Option[Config] = encodedClock.flatMap(ClockDecoder.read)
316[warn] 126 | def clockInit: Option[Int] = clockConfig.map(_.limitSeconds.value)
317[warn] 127 | def clockInc: Option[Int] = clockConfig.map(_.incrementSeconds.value)
318[warn] 128 | def whiteId: Option[PlayerId] = players.headOption
319[warn] 129 | def blackId: Option[PlayerId] = players.lift(1)
320[warn] 130 | def variantOrDefault: Variant = Variant.idOrDefault(variant.map(Variant.Id.apply))
321[warn] 131 | def speed: Speed = Speed(clockConfig)
322[warn] 132 | def loser: Option[PlayerId] = players.find(_.some != winnerId)
323[warn] 133 | def aiLevel: Option[Int] = whitePlayer.flatMap(_.aiLevel).orElse(blackPlayer.flatMap(_.aiLevel))
324[warn] 134 | def shouldDebug =
325[warn] 135 | whitePlayer.isEmpty || blackPlayer.isEmpty
326[warn] 136 |object DbGame:
327[warn] 137 | // format: off
328[warn] 138 | given Decoder[DbGame] = Decoder.forProduct21(
329[warn] 139 | "_id", "us", "wid", "ca", "ua", "t", "an", "p0", "p1", "is", "ps",
330[warn] 140 | "hp", "s", "c", "mt", "cw", "cb", "ra", "v", "so", "w")(DbGame.apply)
331[warn] 141 | // format: on
332[warn] 142 | // We don't write to the database so We don't need to implement this
333[warn] 143 | given Encoder[DbGame] = new Encoder[DbGame]:
334[warn] 144 | def apply(a: DbGame): Json = ???
335[warn] 145 |case class DbPlayer(
336[warn] 146 | rating: Option[Int],
337[warn] 147 | ratingDiff: Option[Int],
338[warn] 148 | berserk: Option[Boolean],
339[warn] 149 | aiLevel: Option[Int],
340[warn] 150 | provisional: Option[Boolean],
341[warn] 151 | name: Option[String]
342[warn] 152 |)
343[warn] 153 |object DbPlayer:
344[warn] 154 | given Decoder[DbPlayer] = Decoder.forProduct6("e", "d", "be", "ai", "p", "na")(DbPlayer.apply)
345[warn] 155 | given Encoder[DbPlayer] = Encoder.forProduct6("e", "d", "be", "ai", "p", "na")(p =>
346[warn] 156 | (p.rating, p.ratingDiff, p.berserk, p.aiLevel, p.provisional, p.name)
347[warn] 157 | )
348[warn] 158 |object ClockDecoder:
349[warn] 159 | import chess.*
350[warn] 160 | private def readClockLimit(i: Int) = Clock.LimitSeconds(if i < 181 then i * 60 else (i - 180) * 15)
351[warn] 161 | private inline def toInt(inline b: Byte): Int = b & 0xff
352[warn] 162 | def read(ba: Array[Byte]): Option[Clock.Config] =
353[warn] 163 | ba.take(2).map(toInt) match
354[warn] 164 | case Array(b1, b2) => Clock.Config(readClockLimit(b1), Clock.IncrementSeconds(b2)).some
355[warn] 165 | case _ => None
356[warn] |---------------------------------------------------------------------------
357[warn] | Explanation (enabled by `-explain`)
358[warn] |- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
359[warn] | Tools may not handle directories whose names differ from their corresponding package names.
360[warn] | For example, `p-q` is encoded as `p$minusq` when written to the file system.
361[warn] |
362[warn] | Package objects derive their names from the file names, so files such as `myfile.test.scala`
363[warn] | or `myfile-test.scala` can produce encoded names for the generated package objects.
364[warn] |
365[warn] | In this case, the name `mongo.game$package` is encoded as `mongo$u002Egame$package`.
366[warn] ---------------------------------------------------------------------------
367[warn] one warning found
368[info] done compiling
369Starting build for ProjectRef(file:/build/repo/,core) (core)... [2/12]
370Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
371Starting build for ProjectRef(file:/build/repo/,api) (api)... [3/12]
372Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
373Starting build for ProjectRef(file:/build/repo/,lila-game-export) (lila-game-export)... [4/12]
374Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
375[info] compiling 3 Scala sources to /build/repo/modules/lila-game-export/target/scala-3.8.0-RC2/classes ...
376[info] done compiling
377[info] compiling 1 Scala source to /build/repo/modules/lila-game-export/target/scala-3.8.0-RC2/test-classes ...
378[info] done compiling
379[info] lila.search.game.csv.CliTest
380[info] + export command with all required options 68ms
381[info] + export command with custom database 4ms
382[info] + export command with custom batch settings 3ms
383[info] + export command with watch flag 3ms
384Starting build for ProjectRef(file:/build/repo/,root) (root)... [5/12]
385Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
386Starting build for ProjectRef(file:/build/repo/,e2e) (e2e)... [6/12]
387Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
388[info] compiling 22 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC2/classes ...
389[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/UblogSource.scala]
390[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/DateField.scala]
391[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/TeamSource.scala]
392[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/GameSource.scala]
393[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/ShortField.scala]
394[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/KeywordField.scala]
395[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/TextField.scala]
396[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/KeywordSubfield.scala]
397[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/StudySource.scala]
398[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/BooleanField.scala]
399[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/IntField.scala]
400[info] [patched file /build/repo/modules/elastic/target/scala-3.8.0-RC2/src_managed/main/smithy4s/lila/search/es/ForumSource.scala]
401[info] done compiling
402[info] compiling 11 Scala sources to /build/repo/modules/app/target/scala-3.8.0-RC2/classes ...
403[info] compiling 7 Scala sources to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC2/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-RC2/src_managed/main/sbt-buildinfo/BuildInfo.scala]
507[warn] three warnings found
508[info] done compiling
509[info] compiling 22 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC2/classes ...
510[info] done compiling
511[info] compiling 2 Scala sources to /build/repo/modules/app/target/scala-3.8.0-RC2/classes ...
512[info] compiling 1 Scala source to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC2/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-RC2/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-11-28 14:56:44,598 [io-compute-3] INFO o.t.i.PullPolicy - Image pull policy will be performed by: DefaultPullPolicy()
5212025-11-28 14:56:44,600 [io-compute-3] INFO o.t.u.ImageNameSubstitutor - Image name substitution will be performed by: DefaultImageNameSubstitutor (composite of 'ConfigurationFileImageNameSubstitutor' and 'PrefixingImageNameSubstitutor')
5222025-11-28 14:56:44,600 [io-compute-3] INFO o.t.DockerClientFactory - Testcontainers version: 1.21.1
5232025-11-28 14:56:45,060 [io-compute-1] INFO o.t.d.DockerClientProviderStrategy - Found Docker environment with local Unix socket (unix:///var/run/docker.sock)
5242025-11-28 14:56:45,079 [io-compute-1] INFO o.t.DockerClientFactory - Docker host IP address is 172.17.0.1
5252025-11-28 14:56:45,108 [io-compute-1] 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: 15994 MB
5302025-11-28 14:56:45,160 [io-compute-1] INFO t.t.11.0 - Pulling docker image: testcontainers/ryuk:0.11.0. Please be patient; this may take some time but only needs to be done once.
5312025-11-28 14:56:45,168 [io-compute-1] 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)
5322025-11-28 14:56:45,280 [io-compute-0] INFO o.h.e.s.EmberServerBuilderCompanionPlatform - Ember-Server service bound to address: [::]:9999
5332025-11-28 14:56:45,282 [io-compute-2] INFO lila.search.app.App - lila-search started at /[0:0:0:0:0:0:0:0]:9999
5342025-11-28 14:56:45,284 [io-compute-2] INFO lila.search.app.App - BuildInfo: version: 3.3.1-SNAPSHOT, gitHeadCommit: 0cd1d5f
5352025-11-28 14:56:45,555 [docker-java-stream--1327023394] INFO t.t.11.0 - Starting to pull image
5362025-11-28 14:56:45,580 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 0 pending, 0 downloaded, 0 extracted, (0 bytes/0 bytes)
5372025-11-28 14:56:45,791 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 2 pending, 1 downloaded, 0 extracted, (841 KB/? MB)
5382025-11-28 14:56:45,843 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 1 pending, 2 downloaded, 0 extracted, (876 KB/? MB)
5392025-11-28 14:56:45,877 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 0 pending, 3 downloaded, 0 extracted, (7 MB/10 MB)
5402025-11-28 14:56:45,947 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 0 pending, 3 downloaded, 1 extracted, (10 MB/10 MB)
5412025-11-28 14:56:46,047 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 0 pending, 3 downloaded, 2 extracted, (10 MB/10 MB)
5422025-11-28 14:56:46,106 [docker-java-stream--1327023394] INFO t.t.11.0 - Pulling image layers: 0 pending, 3 downloaded, 3 extracted, (10 MB/10 MB)
5432025-11-28 14:56:46,115 [io-compute-1] INFO t.t.11.0 - Image testcontainers/ryuk:0.11.0 pull took PT0.955209872S
5442025-11-28 14:56:46,189 [io-compute-1] INFO t.t.11.0 - Creating container for image: testcontainers/ryuk:0.11.0
545[INFO] [11/28/2025 14:56:46.198] [io-compute-3] [CoordinatedShutdown(akka://default)] Running CoordinatedShutdown with reason [ActorSystemTerminateReason]
546[info] lila.search.test.CompatSuite
547[info] + search endpoint 342ms
548[info] + bad search study endpoint 40ms
549[info] + count endpoint 340ms
5502025-11-28 14:56:46,304 [io-compute-1] INFO t.t.11.0 - Container testcontainers/ryuk:0.11.0 is starting: ccc37c596205c6ed3d2c324d3017ca4680f9d4f839d5c9042b30deb2f36ba5e9
5512025-11-28 14:56:46,674 [io-compute-1] INFO t.t.11.0 - Container testcontainers/ryuk:0.11.0 started in PT0.484365759S
5522025-11-28 14:56:46,678 [io-compute-1] INFO o.t.u.RyukResourceReaper - Ryuk started - will monitor and terminate Testcontainers containers on JVM exit
5532025-11-28 14:56:46,678 [io-compute-1] INFO o.t.DockerClientFactory - Checking the system...
5542025-11-28 14:56:46,678 [io-compute-1] INFO o.t.DockerClientFactory - ✔︎ Docker server version should be at least 1.6.0
5552025-11-28 14:56:46,680 [io-compute-1] 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.
5562025-11-28 14:56:47,043 [docker-java-stream-1560591884] INFO t.e.10.1 - Starting to pull image
5572025-11-28 14:56:47,044 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 0 downloaded, 0 extracted, (0 bytes/0 bytes)
5582025-11-28 14:56:47,315 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 8 pending, 1 downloaded, 0 extracted, (2 KB/? MB)
5592025-11-28 14:56:47,577 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 7 pending, 2 downloaded, 0 extracted, (21 MB/? MB)
5602025-11-28 14:56:47,771 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 6 pending, 3 downloaded, 0 extracted, (39 MB/? MB)
5612025-11-28 14:56:47,962 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 5 pending, 4 downloaded, 0 extracted, (56 MB/? MB)
5622025-11-28 14:56:48,121 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 4 pending, 5 downloaded, 0 extracted, (66 MB/? MB)
5632025-11-28 14:56:48,296 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 3 pending, 6 downloaded, 0 extracted, (83 MB/? MB)
5642025-11-28 14:56:48,464 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 2 pending, 7 downloaded, 0 extracted, (96 MB/? MB)
5652025-11-28 14:56:48,926 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 0 extracted, (141 MB/? MB)
5662025-11-28 14:56:51,166 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 1 extracted, (241 MB/? MB)
5672025-11-28 14:56:52,317 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 2 extracted, (283 MB/? MB)
5682025-11-28 14:56:52,358 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 1 pending, 8 downloaded, 3 extracted, (283 MB/? MB)
5692025-11-28 14:56:53,994 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 3 extracted, (381 MB/384 MB)
5702025-11-28 14:56:57,267 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 4 extracted, (384 MB/384 MB)
5712025-11-28 14:56:57,276 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 5 extracted, (384 MB/384 MB)
5722025-11-28 14:56:57,291 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 6 extracted, (384 MB/384 MB)
5732025-11-28 14:56:57,303 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 7 extracted, (384 MB/384 MB)
5742025-11-28 14:56:57,361 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 8 extracted, (384 MB/384 MB)
5752025-11-28 14:56:57,376 [docker-java-stream-1560591884] INFO t.e.10.1 - Pulling image layers: 0 pending, 9 downloaded, 9 extracted, (384 MB/384 MB)
5762025-11-28 14:56:57,383 [docker-java-stream-1560591884] INFO t.e.10.1 - Pull complete. 9 layers, pulled in 10s (downloaded 384 MB at 38 MB/s)
5772025-11-28 14:56:57,383 [io-compute-1] INFO t.e.10.1 - Image elasticsearch:7.10.1 pull took PT10.701985161S
5782025-11-28 14:56:57,387 [io-compute-1] INFO t.e.10.1 - Creating container for image: elasticsearch:7.10.1
5792025-11-28 14:56:57,403 [io-compute-1] INFO t.e.10.1 - Container elasticsearch:7.10.1 is starting: 3251c1870c634d4db437f9944150636af7b134de4fabb2a38addedbb02f5d707
5802025-11-28 14:57:06,982 [io-compute-1] INFO t.e.10.1 - Container elasticsearch:7.10.1 started in PT9.595489376S
5812025-11-28 14:57:07,136 [io-compute-3] INFO o.h.e.s.EmberServerBuilderCompanionPlatform - Ember-Server service bound to address: [::]:9999
5822025-11-28 14:57:07,136 [io-compute-3] INFO lila.search.app.App - lila-search started at /[0:0:0:0:0:0:0:0]:9999
5832025-11-28 14:57:07,137 [io-compute-3] INFO lila.search.app.App - BuildInfo: version: 3.3.1-SNAPSHOT, gitHeadCommit: 0cd1d5f
584[info] lila.search.app.test.IntegrationSuite
585[info] + health check should return healthy 786ms
586[info] + forum 3s
587[info] + ublog 3s
588[info] + team 2s
589[info] + study 3s
590[info] + game 3s
591Starting build for ProjectRef(file:/build/repo/,ingestor-cli) (lila-search-cli)... [7/12]
592Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
593[info] compiling 3 Scala sources to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC2/classes ...
594[info] [patched file /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC2/src_managed/main/sbt-buildinfo/BuildInfo.scala]
595[info] done compiling
596[info] compiling 1 Scala source to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC2/classes ...
597[info] done compiling
598[info] compiling 1 Scala source to /build/repo/modules/ingestor-cli/target/scala-3.8.0-RC2/test-classes ...
599[info] done compiling
600[info] lila.search.ingestor.CLITest
601[info] + index command 60ms
602[info] + index command with watch flag 2ms
603Starting build for ProjectRef(file:/build/repo/,app) (lila-search-app)... [8/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/app/target/scala-3.8.0-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
605Starting build for ProjectRef(file:/build/repo/,ingestor-app) (lila-search-ingestor)... [9/12]
606Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
607[info] compiling 2 Scala sources to /build/repo/modules/ingestor-app/target/scala-3.8.0-RC2/classes ...
608[info] [patched file /build/repo/modules/ingestor-app/target/scala-3.8.0-RC2/src_managed/main/sbt-buildinfo/BuildInfo.scala]
609[info] done compiling
610[info] compiling 1 Scala source to /build/repo/modules/ingestor-app/target/scala-3.8.0-RC2/classes ...
611[info] done compiling
612Starting build for ProjectRef(file:/build/repo/,ingestor-core) (ingestor-core)... [10/12]
613Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
614[info] compiling 1 Scala source to /build/repo/modules/ingestor-core/target/scala-3.8.0-RC2/test-classes ...
615[info] done compiling
616[info] lila.search.ingestor.HasDocIdTest
617[info] + distincByDocId is empty when input is empty 6ms
618[info] + distincByDocId is empty when all docIds are none 341ms
619[info] + distincByDocId contains only item with defined docId 346ms
620[info] + distincByDocId is idempotent 347ms
621[info] + distincByDocId == reverse.distincBy.reverse 334ms
622Starting build for ProjectRef(file:/build/repo/,elastic) (elastic)... [11/12]
623Compile 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-RC2/meta, -Wconf:msg=can be rewritten automatically under:s, -source:3.8
624[info] compiling 2 Scala sources to /build/repo/modules/elastic/target/scala-3.8.0-RC2/test-classes ...
625[info] done compiling
626SLF4J(W): No SLF4J providers were found.
627SLF4J(W): Defaulting to no-operation (NOP) logger implementation
628SLF4J(W): See https://www.slf4j.org/codes.html#noProviders for further details.
629[info] lila.search.MappingComparisonSuite
630[info] + Study index: generated mappings match legacy mappings 87ms
631[info] + Game index: generated mappings match legacy mappings 86ms
632[info] + Forum index: generated mappings match legacy mappings 86ms
633[info] + Team index: generated mappings match legacy mappings 84ms
634[info] + Ublog index: generated mappings match legacy mappings 4ms
635
636************************
637Build summary:
638[{
639 "module": "client",
640 "compile": {"status": "ok", "tookMs": 21303, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
641 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
642 "test-compile": {"status": "ok", "tookMs": 2235, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
643 "test": {"status": "ok", "tookMs": 331, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
644 "publish": {"status": "skipped", "tookMs": 0},
645 "metadata": {
646 "crossScalaVersions": ["3.7.4"]
647}
648},{
649 "module": "lila-mongo",
650 "compile": {"status": "ok", "tookMs": 5601, "warnings": 1, "errors": 0, "sourceVersion": "3.8"},
651 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
652 "test-compile": {"status": "ok", "tookMs": 207, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
653 "test": {"status": "ok", "tookMs": 169, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
654 "publish": {"status": "ok", "tookMs": 2},
655 "metadata": {
656 "crossScalaVersions": ["3.7.4"]
657}
658},{
659 "module": "core",
660 "compile": {"status": "ok", "tookMs": 98, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
661 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
662 "test-compile": {"status": "ok", "tookMs": 129, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
663 "test": {"status": "ok", "tookMs": 140, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
664 "publish": {"status": "skipped", "tookMs": 0},
665 "metadata": {
666 "crossScalaVersions": ["3.7.4"]
667}
668},{
669 "module": "api",
670 "compile": {"status": "ok", "tookMs": 194, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
671 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
672 "test-compile": {"status": "ok", "tookMs": 230, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
673 "test": {"status": "ok", "tookMs": 210, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
674 "publish": {"status": "skipped", "tookMs": 0},
675 "metadata": {
676 "crossScalaVersions": ["3.7.4"]
677}
678},{
679 "module": "lila-game-export",
680 "compile": {"status": "ok", "tookMs": 2093, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
681 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
682 "test-compile": {"status": "ok", "tookMs": 1520, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
683 "test": {"status": "ok", "tookMs": 835, "passed": 4, "failed": 0, "ignored": 0, "skipped": 0, "total": 4, "byFramework": [{"framework": "unknown", "stats": {"passed": 4, "failed": 0, "ignored": 0, "skipped": 0, "total": 4}}]},
684 "publish": {"status": "ok", "tookMs": 2},
685 "metadata": {
686 "crossScalaVersions": ["3.7.4"]
687}
688},{
689 "module": "root",
690 "compile": {"status": "ok", "tookMs": 41, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
691 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
692 "test-compile": {"status": "ok", "tookMs": 60, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
693 "test": {"status": "ok", "tookMs": 40, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
694 "publish": {"status": "ok", "tookMs": 2},
695 "metadata": {
696 "crossScalaVersions": ["3.7.4"]
697}
698},{
699 "module": "e2e",
700 "compile": {"status": "ok", "tookMs": 10622, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
701 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
702 "test-compile": {"status": "ok", "tookMs": 9543, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
703 "test": {"status": "ok", "tookMs": 27318, "passed": 9, "failed": 0, "ignored": 0, "skipped": 0, "total": 9, "byFramework": [{"framework": "unknown", "stats": {"passed": 9, "failed": 0, "ignored": 0, "skipped": 0, "total": 9}}]},
704 "publish": {"status": "ok", "tookMs": 3},
705 "metadata": {
706 "crossScalaVersions": ["3.7.4"]
707}
708},{
709 "module": "lila-search-cli",
710 "compile": {"status": "ok", "tookMs": 1648, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
711 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
712 "test-compile": {"status": "ok", "tookMs": 1702, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
713 "test": {"status": "ok", "tookMs": 1126, "passed": 2, "failed": 0, "ignored": 0, "skipped": 0, "total": 2, "byFramework": [{"framework": "unknown", "stats": {"passed": 2, "failed": 0, "ignored": 0, "skipped": 0, "total": 2}}]},
714 "publish": {"status": "ok", "tookMs": 2},
715 "metadata": {
716 "crossScalaVersions": ["3.7.4"]
717}
718},{
719 "module": "lila-search-app",
720 "compile": {"status": "ok", "tookMs": 340, "warnings": 3, "errors": 0, "sourceVersion": "3.8"},
721 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
722 "test-compile": {"status": "ok", "tookMs": 376, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
723 "test": {"status": "ok", "tookMs": 391, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
724 "publish": {"status": "ok", "tookMs": 2},
725 "metadata": {
726 "crossScalaVersions": ["3.7.4"]
727}
728},{
729 "module": "lila-search-ingestor",
730 "compile": {"status": "ok", "tookMs": 1248, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
731 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
732 "test-compile": {"status": "ok", "tookMs": 854, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
733 "test": {"status": "ok", "tookMs": 525, "passed": 0, "failed": 0, "ignored": 0, "skipped": 0, "total": 0, "byFramework": []},
734 "publish": {"status": "ok", "tookMs": 4},
735 "metadata": {
736 "crossScalaVersions": ["3.7.4"]
737}
738},{
739 "module": "ingestor-core",
740 "compile": {"status": "ok", "tookMs": 528, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
741 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
742 "test-compile": {"status": "ok", "tookMs": 1468, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
743 "test": {"status": "ok", "tookMs": 1336, "passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5, "byFramework": [{"framework": "unknown", "stats": {"passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5}}]},
744 "publish": {"status": "ok", "tookMs": 10},
745 "metadata": {
746 "crossScalaVersions": ["3.7.4"]
747}
748},{
749 "module": "elastic",
750 "compile": {"status": "ok", "tookMs": 257, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
751 "doc": {"status": "skipped", "tookMs": 0, "files": 0, "totalSizeKb": 0},
752 "test-compile": {"status": "ok", "tookMs": 1318, "warnings": 0, "errors": 0, "sourceVersion": "3.8"},
753 "test": {"status": "ok", "tookMs": 826, "passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5, "byFramework": [{"framework": "unknown", "stats": {"passed": 5, "failed": 0, "ignored": 0, "skipped": 0, "total": 5}}]},
754 "publish": {"status": "ok", "tookMs": 5},
755 "metadata": {
756 "crossScalaVersions": ["3.7.4"]
757}
758}]
759************************
760[success] Total time: 180 s (0:03:00.0), completed Nov 28, 2025, 2:57:35 PM
761[0JChecking patch project/plugins.sbt...
762Checking patch build.sbt...
763Applied patch project/plugins.sbt cleanly.
764Applied patch build.sbt cleanly.