Skip to content

Commit bde784f

Browse files
committed
Fix JacocoTaskExtension import error
Remove explicit import for JacocoTaskExtension as it's automatically available when the jacoco plugin is applied, similar to how it's used in jfr-events module.
1 parent abdaef8 commit bde784f

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

.github/workflows/stress-test-the-build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ jobs:
1919
- windows-latest
2020
test-java-version:
2121
- 8
22-
run-number: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
22+
a: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
23+
b: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
2324
fail-fast: false
2425
steps:
2526
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import io.opentelemetry.gradle.OtelJavaExtension
22
import org.gradle.api.tasks.testing.logging.TestExceptionFormat
3-
import org.gradle.testing.jacoco.tasks.JacocoTaskExtension
43

54
plugins {
65
`java-library`
@@ -72,10 +71,11 @@ tasks {
7271
showStandardStreams = true
7372
}
7473

75-
// Configure JaCoCo agent to exclude problematic Netty buffer classes that can cause
76-
// instrumentation conflicts and sporadic test failures
7774
configure<JacocoTaskExtension> {
78-
excludes = listOf("**/io/netty/buffer/*Event*")
75+
// only care about code coverage for code in this repository
76+
// (in particular avoiding netty classes which sometimes end up
77+
// causing sporadic CI failures)
78+
includes = listOf("io/opentelemetry/contrib/**")
7979
}
8080
}
8181

0 commit comments

Comments
 (0)