@@ -276,6 +276,18 @@ object Build {
276
276
val config = develocityConfiguration.value
277
277
val buildScan = config.buildScan
278
278
val buildCache = config.buildCache
279
+ // disable test retry on compilation test classes
280
+ val noRetryTestClasses = Set (
281
+ " dotty.tools.dotc.BestEffortOptionsTests" ,
282
+ " dotty.tools.dotc.CompilationTests" ,
283
+ " dotty.tools.dotc.FromTastyTests" ,
284
+ " dotty.tools.dotc.IdempotencyTests" ,
285
+ " dotty.tools.dotc.ScalaJSCompilationTests" ,
286
+ " dotty.tools.dotc.TastyBootstrapTests" ,
287
+ " dotty.tools.dotc.coverage.CoverageTests" ,
288
+ " dotty.tools.dotc.transform.PatmatExhaustivityTest" ,
289
+ " dotty.tools.repl.ScriptedTests"
290
+ )
279
291
config
280
292
.withProjectId(ProjectId (" scala3" ))
281
293
.withServer(config.server.withUrl(Some (url(" https://develocity.scala-lang.org" ))))
@@ -293,6 +305,13 @@ object Build {
293
305
.withLocal(buildCache.local.withEnabled(false ))
294
306
.withRemote(buildCache.remote.withEnabled(false ))
295
307
)
308
+ .withTestRetryConfiguration(
309
+ config.testRetryConfiguration
310
+ .withFlakyTestPolicy(FlakyTestPolicy .Fail )
311
+ .withMaxRetries(1 )
312
+ .withMaxFailures(10 )
313
+ .withClassesFilter((className, _) => ! noRetryTestClasses.contains(className))
314
+ )
296
315
}
297
316
)
298
317
0 commit comments