Bring back code coverage verification
MODIFY
.circleci/config.yml
.circleci/config.yml
@@ -229,12 +229,12 @@ workflows:
filters:
tags:
only: /.*/
- # - test_8:
- # requires:
- # - build
- # filters:
- # tags:
- # only: /.*/
+ - test_8:
+ requires:
+ - build
+ filters:
+ tags:
+ only: /.*/
- test_latest8:
requires:
- build

MODIFY
agent-tooling/agent-tooling.gradle
agent-tooling/agent-tooling.gradle
@@ -3,7 +3,8 @@ apply from: "${rootDir}/gradle/java.gradle"
minimumBranchCoverage = 0.6
minimumInstructionCoverage = 0.8
excludedClassesCoverage += [
- 'io.opentelemetry.auto.tooling.*'
+ 'io.opentelemetry.auto.tooling.*',
+ 'io.opentelemetry.auto.typed.*'
]
configurations {

MODIFY
gradle/java.gradle
gradle/java.gradle
@@ -10,7 +10,7 @@ apply from: "$rootDir/gradle/spotbugs.gradle"
def applyCodeCoverage = !(
project.path.startsWith(":smoke-tests") ||
- project.path == ":java-agent" ||
+ project.path == ":opentelemetry-auto" ||
project.path == ":load-generator" ||
project.path.startsWith(":benchmark") ||
project.path.startsWith(":instrumentation"))

MODIFY
testing/src/main/groovy/io/opentelemetry/auto/test/InMemoryExporter.java
testing/src/main/groovy/io/opentelemetry/auto/test/InMemoryExporter.java
@@ -89,7 +89,7 @@ public class InMemoryExporter implements SpanProcessor {
if (!spanOrders.containsKey(span.getSpanId())) {
// this happens on some tests where there are sporadic background traces,
// e.g. Elasticsearch "RefreshAction"
- log.debug("span ended that was started prior to ListWriter clear(): {}", span);
+ log.debug("span ended that was started prior to clear(): {}", span);
return;
}
boolean found = false;

MODIFY
testing/testing.gradle
testing/testing.gradle
@@ -7,7 +7,7 @@ excludedClassesCoverage += [
'io.opentelemetry.auto.test.base.*',
'io.opentelemetry.auto.test.log.*',
'io.opentelemetry.auto.test.AgentTestRunner',
- 'io.opentelemetry.auto.test.ListWriter.*',
+ 'io.opentelemetry.auto.test.InMemoryExporter.*',
'io.opentelemetry.auto.test.utils.*',
// Avoid applying jacoco instrumentation to classes instrumented by tested agent
'context.ContextTestInstrumentation**',

MODIFY
utils/thread-utils/thread-utils.gradle
utils/thread-utils/thread-utils.gradle
@@ -2,7 +2,7 @@ apply from: "${rootDir}/gradle/java.gradle"
// TODO: add more tests
excludedClassesCoverage += [
- 'datadog.common.exec*'
+ 'io.opentelemetry.auto.common.exec.*'
]
dependencies {

Bring back code coverage verification (#357)