Retry all tests
MODIFY
agent-tooling/agent-tooling.gradle
agent-tooling/agent-tooling.gradle
-ext {
- retryTests = true
-}
-
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -277,9 +277,7 @@ tasks.withType(Test).configureEach {
enabled = isJavaVersionAllowed(JavaVersion.current()) && !project.rootProject.hasProperty("skipTests")
retry {
- // Retry is opt-in - we don't want our tests to be flaky but currently go ahead and retry them to allow CI
- // to work. Please continue remove this property from as many projects as possible. You can see tests that
- // were retried by this mechanism in the collected test reports and build scans.
- maxRetries = findProperty('retryTests') ? 5 : 0
+ // You can see tests that were retried by this mechanism in the collected test reports and build scans.
+ maxRetries = 5
}
}

MODIFY
instrumentation/akka-context-propagation/akka-context-propagation.gradle
instrumentation/akka-context-propagation/akka-context-propagation.gradle
-ext {
- retryTests = true
-}
-
apply from: "$rootDir/gradle/instrumentation.gradle"
apply from: "$rootDir/gradle/test-with-scala.gradle"

MODIFY
instrumentation/akka-http-10.0/akka-http-10.0.gradle
instrumentation/akka-http-10.0/akka-http-10.0.gradle
// Set properties before any plugins get loaded
ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
- retryTests = true
}
apply from: "$rootDir/gradle/instrumentation.gradle"

MODIFY
instrumentation/couchbase/couchbase-2.0/couchbase-2.0.gradle
instrumentation/couchbase/couchbase-2.0/couchbase-2.0.gradle
// Set properties before any plugins get loaded
ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
- retryTests = true
}
apply from: "$rootDir/gradle/instrumentation.gradle"

MODIFY
instrumentation/dropwizard-testing/dropwizard-testing.gradle
instrumentation/dropwizard-testing/dropwizard-testing.gradle
ext {
skipPublish = true
- retryTests = true
}
apply from: "$rootDir/gradle/instrumentation.gradle"

MODIFY
instrumentation/google-http-client-1.19/google-http-client-1.19.gradle
instrumentation/google-http-client-1.19/google-http-client-1.19.gradle
-ext {
- retryTests = true
-}
-
apply from: "$rootDir/gradle/instrumentation.gradle"
apply plugin: 'org.unbroken-dome.test-sets'

MODIFY
instrumentation/jms-1.1/jms-1.1.gradle
instrumentation/jms-1.1/jms-1.1.gradle
-ext {
- retryTests = true
-}
-
apply from: "$rootDir/gradle/instrumentation.gradle"
apply plugin: 'org.unbroken-dome.test-sets'
@@ -32,7 +28,8 @@ dependencies {
// required for Java 11+ . Latest version that runs on Java 7
testImplementation group: 'javax.annotation', name: 'javax.annotation-api', version: '1.2'
- testImplementation group: 'org.springframework', name: 'spring-jms', version: '4.3.21.RELEASE' // 4.x required for Java 7
+ // 4.x required for Java 7
+ testImplementation group: 'org.springframework', name: 'spring-jms', version: '4.3.21.RELEASE'
latestDepTestImplementation group: 'org.hornetq', name: 'hornetq-jms-client', version: '2.4.7.Final'
latestDepTestImplementation group: 'org.hornetq', name: 'hornetq-jms-server', version: '2.4.7.Final'

MODIFY
instrumentation/netty/netty-4.1/netty-4.1.gradle
instrumentation/netty/netty-4.1/netty-4.1.gradle
// Set properties before any plugins get loaded
ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
- retryTests = true
}
apply from: "$rootDir/gradle/instrumentation.gradle"

MODIFY
instrumentation/play/play-2.6/play-2.6.gradle
instrumentation/play/play-2.6/play-2.6.gradle
@@ -2,7 +2,6 @@ ext {
minJavaVersionForTests = JavaVersion.VERSION_1_8
// Play doesn't work with Java 9+ until 2.6.12
maxJavaVersionForTests = JavaVersion.VERSION_1_8
- retryTests = true
}
apply from: "$rootDir/gradle/instrumentation.gradle"

MODIFY
smoke-tests/wildfly/wildfly.gradle
smoke-tests/wildfly/wildfly.gradle
@@ -5,7 +5,6 @@ ext {
serverExtension = 'zip'
minJavaVersionForTests = JavaVersion.VERSION_1_8
- retryTests = true
}
repositories {

MODIFY
utils/thread-utils/thread-utils.gradle
utils/thread-utils/thread-utils.gradle
-ext {
- retryTests = true
-}
-
apply from: "$rootDir/gradle/java.gradle"
apply from: "$rootDir/gradle/publish.gradle"

Retry all tests (#941)