diff --git a/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts b/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts index ecdd63bd9..e3639a9d5 100644 --- a/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts @@ -76,6 +76,13 @@ tasks { exceptionFormat = TestExceptionFormat.FULL showStandardStreams = true } + + configure { + // only care about code coverage for code in this repository + // (in particular avoiding netty classes which sometimes end up + // causing sporadic CI failures) + includes = listOf("io/opentelemetry/contrib/**") + } } withType().configureEach { diff --git a/consistent-sampling/build.gradle.kts b/consistent-sampling/build.gradle.kts index 88cdf543a..66fca90c9 100644 --- a/consistent-sampling/build.gradle.kts +++ b/consistent-sampling/build.gradle.kts @@ -12,3 +12,14 @@ dependencies { testImplementation("org.hipparchus:hipparchus-core:4.0.1") testImplementation("org.hipparchus:hipparchus-stat:4.0.1") } + +tasks { + withType().configureEach { + develocity.testRetry { + // TODO (trask) fix flaky tests and remove this workaround + if (System.getenv().containsKey("CI")) { + maxRetries.set(5) + } + } + } +} diff --git a/jmx-scraper/build.gradle.kts b/jmx-scraper/build.gradle.kts index 061fdd03e..9e2878549 100644 --- a/jmx-scraper/build.gradle.kts +++ b/jmx-scraper/build.gradle.kts @@ -82,7 +82,7 @@ tasks { systemProperty("gradle.project.version", "${project.version}") develocity.testRetry { - // You can see tests that were retried by this mechanism in the collected test reports and build scans. + // TODO (trask) fix flaky tests and remove this workaround if (System.getenv().containsKey("CI")) { maxRetries.set(5) }