This is an automated email from the ASF dual-hosted git repository.
nodece pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/pulsar.git
The following commit(s) were added to refs/heads/master by this push:
new 768df20b636 [improve][build] Disable test retry when running tests in
IntelliJ (#25814)
768df20b636 is described below
commit 768df20b63600e8816a2868b42fdbb6be9f034b8
Author: Lari Hotari <[email protected]>
AuthorDate: Tue May 19 11:24:52 2026 +0300
[improve][build] Disable test retry when running tests in IntelliJ (#25814)
---
.../conventions/src/main/kotlin/pulsar.java-conventions.gradle.kts | 4 +++-
tests/integration/build.gradle.kts | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git
a/build-logic/conventions/src/main/kotlin/pulsar.java-conventions.gradle.kts
b/build-logic/conventions/src/main/kotlin/pulsar.java-conventions.gradle.kts
index ee61c0b094d..bb0fc131a29 100644
--- a/build-logic/conventions/src/main/kotlin/pulsar.java-conventions.gradle.kts
+++ b/build-logic/conventions/src/main/kotlin/pulsar.java-conventions.gradle.kts
@@ -171,7 +171,9 @@ tasks.withType<Test>().configureEach {
maxParallelForks = 4
val failFastValue =
providers.gradleProperty("testFailFast").getOrElse("true").toBoolean()
failFast = failFastValue
- systemProperty("testRetryCount",
providers.gradleProperty("testRetryCount").getOrElse("1"))
+ val ideaActive = providers.systemProperty("idea.active").map {
it.toBoolean() }.getOrElse(false)
+ val defaultTestRetryCount = if (ideaActive) "0" else "1"
+ systemProperty("testRetryCount",
providers.gradleProperty("testRetryCount").getOrElse(defaultTestRetryCount))
systemProperty("testFailFast", failFastValue.toString())
jvmArgs(
"--add-opens", "java.base/jdk.internal.loader=ALL-UNNAMED",
diff --git a/tests/integration/build.gradle.kts
b/tests/integration/build.gradle.kts
index d9aaed47f21..35bcab80b4b 100644
--- a/tests/integration/build.gradle.kts
+++ b/tests/integration/build.gradle.kts
@@ -98,7 +98,9 @@ val integrationTest by tasks.registering(Test::class) {
val failFastValue =
providers.gradleProperty("testFailFast").getOrElse("true").toBoolean()
failFast = failFastValue
- systemProperty("testRetryCount",
providers.gradleProperty("testRetryCount").getOrElse("1"))
+ val ideaActive = providers.systemProperty("idea.active").map {
it.toBoolean() }.getOrElse(false)
+ val defaultTestRetryCount = if (ideaActive) "0" else "1"
+ systemProperty("testRetryCount",
providers.gradleProperty("testRetryCount").getOrElse(defaultTestRetryCount))
systemProperty("testFailFast", failFastValue.toString())
systemProperty("currentVersion", project.version.toString())