diff --git a/.github/workflows/scala3-build.yml b/.github/workflows/scala3-build.yml index 48a85f9597..24d2f4f2c0 100644 --- a/.github/workflows/scala3-build.yml +++ b/.github/workflows/scala3-build.yml @@ -30,7 +30,7 @@ jobs: sbt -jvm-opts .jvmopts-ci \ -Dakka.build.scalaVersion=3.0 \ -Dakka.test.multi-in-test=false \ - -Dakka.test.tags.exclude=performance,timing,long-running \ + -Dakka.test.tags.exclude=performance,timing,long-running,gh-exclude \ akka-actor-tests/test \ akka-actor-testkit-typed/test \ akka-actor-typed/compile \ diff --git a/akka-actor-tests/src/test/scala/akka/event/EventStreamSpec.scala b/akka-actor-tests/src/test/scala/akka/event/EventStreamSpec.scala index 374eeb2089..f60a3ac36e 100644 --- a/akka-actor-tests/src/test/scala/akka/event/EventStreamSpec.scala +++ b/akka-actor-tests/src/test/scala/akka/event/EventStreamSpec.scala @@ -10,7 +10,7 @@ import com.typesafe.config.ConfigFactory import language.postfixOps import akka.actor._ -import akka.testkit.{ AkkaSpec, TestProbe } +import akka.testkit.{ AkkaSpec, GHExcludeTest, TestProbe } object EventStreamSpec { @@ -315,7 +315,8 @@ class EventStreamSpec extends AkkaSpec(EventStreamSpec.config) { } } - "unsubscribe the actor, when it subscribes already in terminated state" in { + // Excluded in GH Actions: https://github.com/akka/akka/issues/30460 + "unsubscribe the actor, when it subscribes already in terminated state" taggedAs GHExcludeTest in { val sys = ActorSystem("EventStreamSpecUnsubscribeTerminated", configUnhandledWithDebug) try { diff --git a/akka-actor-tests/src/test/scala/akka/io/UdpConnectedIntegrationSpec.scala b/akka-actor-tests/src/test/scala/akka/io/UdpConnectedIntegrationSpec.scala index f27b46396d..a3e67a066e 100644 --- a/akka-actor-tests/src/test/scala/akka/io/UdpConnectedIntegrationSpec.scala +++ b/akka-actor-tests/src/test/scala/akka/io/UdpConnectedIntegrationSpec.scala @@ -10,6 +10,7 @@ import scala.concurrent.duration._ import akka.actor.ActorRef import akka.testkit.AkkaSpec +import akka.testkit.GHExcludeTest import akka.testkit.ImplicitSender import akka.testkit.SocketUtil.temporaryServerAddresses import akka.testkit.TestProbe @@ -125,7 +126,8 @@ class UdpConnectedIntegrationSpec extends AkkaSpec(""" } // #26903 - "be able to send and receive when server goes away (and comes back)" in { + // Excluded in GH Actions: https://github.com/akka/akka/issues/30462 + "be able to send and receive when server goes away (and comes back)" taggedAs GHExcludeTest in { val addresses = temporaryServerAddresses(2, udp = true) val serverAddress = addresses(0) val clientAddress = addresses(1) diff --git a/akka-actor-typed-tests/src/test/scala/akka/actor/typed/pubsub/LocalPubSubSpec.scala b/akka-actor-typed-tests/src/test/scala/akka/actor/typed/pubsub/LocalPubSubSpec.scala index 8934f6353f..ef6f647770 100644 --- a/akka-actor-typed-tests/src/test/scala/akka/actor/typed/pubsub/LocalPubSubSpec.scala +++ b/akka-actor-typed-tests/src/test/scala/akka/actor/typed/pubsub/LocalPubSubSpec.scala @@ -8,6 +8,7 @@ import scala.concurrent.duration._ import org.scalatest.wordspec.AnyWordSpecLike +import akka.testkit.GHExcludeTest import akka.actor.testkit.typed.scaladsl.LogCapturing import akka.actor.testkit.typed.scaladsl.LoggingTestKit import akka.actor.testkit.typed.scaladsl.ScalaTestWithActorTestKit @@ -17,7 +18,8 @@ class LocalPubSubSpec extends ScalaTestWithActorTestKit with AnyWordSpecLike wit "A pub-sub topic running locally" must { - "publish to all local subscriber actors of a topic" in { + // Excluded in GH Actions: https://github.com/akka/akka/issues/30466 + "publish to all local subscriber actors of a topic" taggedAs GHExcludeTest in { val fruitTopic = LoggingTestKit.debug("Topic list updated").withCheckExcess(false).expect { testKit.spawn(Topic[String]("fruit")) diff --git a/akka-stream-tests/src/test/scala/akka/stream/scaladsl/HubSpec.scala b/akka-stream-tests/src/test/scala/akka/stream/scaladsl/HubSpec.scala index 3d0c290888..844f7e8769 100644 --- a/akka-stream-tests/src/test/scala/akka/stream/scaladsl/HubSpec.scala +++ b/akka-stream-tests/src/test/scala/akka/stream/scaladsl/HubSpec.scala @@ -17,7 +17,7 @@ import akka.stream.testkit.Utils.TE import akka.stream.testkit.scaladsl.StreamTestKit._ import akka.stream.testkit.scaladsl.TestSink import akka.stream.testkit.scaladsl.TestSource -import akka.testkit.EventFilter +import akka.testkit.{ EventFilter, GHExcludeTest } class HubSpec extends StreamSpec { @@ -199,7 +199,8 @@ class HubSpec extends StreamSpec { downstream.expectComplete() } - "immediately cancel new producers while draining" in assertAllStagesStopped { + // Excluded in GH Actions: https://github.com/akka/akka/issues/30464 + "immediately cancel new producers while draining" taggedAs GHExcludeTest in assertAllStagesStopped { val downstream = TestSubscriber.probe[Int]() val (sink, draining) = MergeHub.sourceWithDraining[Int](16).take(20).toMat(Sink.fromSubscriber(downstream))(Keep.left).run() diff --git a/akka-testkit/src/test/scala/akka/testkit/TestTags.scala b/akka-testkit/src/test/scala/akka/testkit/TestTags.scala index 591a520aba..5fe665b94f 100644 --- a/akka-testkit/src/test/scala/akka/testkit/TestTags.scala +++ b/akka-testkit/src/test/scala/akka/testkit/TestTags.scala @@ -9,3 +9,5 @@ import org.scalatest.Tag object TimingTest extends Tag("timing") object LongRunningTest extends Tag("long-running") object PerformanceTest extends Tag("performance") + +object GHExcludeTest extends Tag("gh-exclude")