From 0196fd84103a2829f882ea209f95cb54c8e2f8e8 Mon Sep 17 00:00:00 2001 From: Wojciech Mazur Date: Thu, 7 Nov 2024 21:13:42 +0100 Subject: [PATCH] Exclude flakty tests from fs2 in community-build --- .../src/scala/dotty/communitybuild/projects.scala | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/community-build/src/scala/dotty/communitybuild/projects.scala b/community-build/src/scala/dotty/communitybuild/projects.scala index 31c1bb95743c..cbf1710e4ae9 100644 --- a/community-build/src/scala/dotty/communitybuild/projects.scala +++ b/community-build/src/scala/dotty/communitybuild/projects.scala @@ -691,7 +691,13 @@ object projects: lazy val fs2 = SbtCommunityProject( project = "fs2", - sbtTestCommand = "coreJVM/test; coreJS/test", // io/test requires JDK9+ + sbtTestCommand = List( + // Exclude flaky tests + """set core.jvm / Test / managedSources ~= { _.filterNot(_.getName == "BracketSuite.scala") }""", + """set core.js / Test / managedSources ~= { _.filterNot(_.getName == "BracketSuite.scala") }""", + "coreJVM/test", // io/test requires JDK9+ + "coreJS/test" + ).mkString("; "), sbtPublishCommand = "coreJVM/publishLocal; coreJS/publishLocal", scalacOptions = SbtCommunityProject.scalacOptions.filter(_ != "-Wsafe-init"), dependencies = List(cats, catsEffect3, munitCatsEffect, scalacheckEffect, scodecBits)