Skip to content

Commit e503584

Browse files
authored
Fix sporadic CI failures (#2148)
1 parent 40bfdac commit e503584

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

buildSrc/src/main/kotlin/otel.java-conventions.gradle.kts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,13 @@ tasks {
7676
exceptionFormat = TestExceptionFormat.FULL
7777
showStandardStreams = true
7878
}
79+
80+
configure<JacocoTaskExtension> {
81+
// only care about code coverage for code in this repository
82+
// (in particular avoiding netty classes which sometimes end up
83+
// causing sporadic CI failures)
84+
includes = listOf("io/opentelemetry/contrib/**")
85+
}
7986
}
8087

8188
withType<Javadoc>().configureEach {

consistent-sampling/build.gradle.kts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,14 @@ dependencies {
1212
testImplementation("org.hipparchus:hipparchus-core:4.0.1")
1313
testImplementation("org.hipparchus:hipparchus-stat:4.0.1")
1414
}
15+
16+
tasks {
17+
withType<Test>().configureEach {
18+
develocity.testRetry {
19+
// TODO (trask) fix flaky tests and remove this workaround
20+
if (System.getenv().containsKey("CI")) {
21+
maxRetries.set(5)
22+
}
23+
}
24+
}
25+
}

jmx-scraper/build.gradle.kts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ tasks {
8282
systemProperty("gradle.project.version", "${project.version}")
8383

8484
develocity.testRetry {
85-
// You can see tests that were retried by this mechanism in the collected test reports and build scans.
85+
// TODO (trask) fix flaky tests and remove this workaround
8686
if (System.getenv().containsKey("CI")) {
8787
maxRetries.set(5)
8888
}

0 commit comments

Comments
 (0)