Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change behavior of simulateRemotePods to use the Pods API #142

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

ghostdogpr
Copy link
Collaborator

Existing option simulateRemotePods was only forcing serialization of sent messages but not responses. Instead, it is now using the actual Pods API when sending to a local shard which means it's going to go through the whole transport.

@@ -13,7 +13,7 @@ val sttpVersion = "3.9.6"
val calibanVersion = "2.8.1"
val redis4catsVersion = "1.5.2"
val redissonVersion = "3.27.1"
val scalaKryoVersion = "1.0.2"
val scalaKryoVersion = "1.2.0"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They fixed an issue with the serialization of Scala 3 enums.

@@ -212,6 +212,13 @@ lazy val commonSettings = Def.settings(
"com.dimafeng" %% "testcontainers-scala-core" % testContainersVersion % Test
),
Test / fork := true,
Test / javaOptions ++= Seq(
// Kryo requires this with the recent versions of Java
"--add-opens=java.base/java.util=ALL-UNNAMED",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Needed to serialize Exception which we do in tests.

stringClient.hSet(config.podsKey, pods.map { case (k, v) => k.toString -> v.version }).unit
stringClient
.hSet(config.podsKey, pods.map { case (k, v) => k.toString -> v.version })
.when(pods.nonEmpty)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I found that this was failing when saving an empty list.

@ghostdogpr ghostdogpr merged commit 73c4c5e into series/2.x Sep 19, 2024
5 checks passed
@ghostdogpr ghostdogpr deleted the remote-pods branch September 19, 2024 03:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants