Skip to content

Commit

Permalink
[jacoco] exclude spark extension since it doesnot contain test (#3230)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankfliu committed May 31, 2024
1 parent 8955f6f commit ab1490e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions engines/ml/xgboost/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ val xgbFlavor = if (isGpu) "-gpu" else ""

val exclusion by configurations.registering

@Suppress("UnstableApiUsage")
dependencies {
api(project(":api"))
api(libs.commons.logging)
Expand Down
2 changes: 1 addition & 1 deletion engines/pytorch/pytorch-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ publishing.repositories {
}
}

val flavorNames = file(BINARY_ROOT).list() ?: emptyArray()
val flavorNames: Array<String> = file(BINARY_ROOT).list() ?: emptyArray()
for (flavor in flavorNames) {

val platformNames = BINARY_ROOT.resolve(flavor).list() ?: emptyArray()
Expand Down
1 change: 1 addition & 0 deletions engines/tensorflow/tensorflow-api/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ group = "ai.djl.tensorflow"

val exclusion by configurations.registering

@Suppress("UnstableApiUsage")
dependencies {
api(libs.bytedeco.javacpp)
api(libs.google.protobuf)
Expand Down
3 changes: 2 additions & 1 deletion engines/tensorflow/tensorflow-native/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ version = libs.versions.tensorflow.get() + if (isRelease) "" else "-SNAPSHOT"

val download by configurations.registering

@Suppress("UnstableApiUsage")
dependencies {
download("org.tensorflow:tensorflow-core-api:0.5.0:linux-x86_64-gpu")
download("org.tensorflow:tensorflow-core-api:0.5.0:linux-x86_64")
Expand Down Expand Up @@ -127,7 +128,7 @@ signing {
}

val BINARY_ROOT = buildDirectory / "download"
val flavorNames = BINARY_ROOT.list() ?: emptyArray()
val flavorNames: Array<String> = BINARY_ROOT.list() ?: emptyArray()
for (flavor in flavorNames) {

val platformNames = (BINARY_ROOT / flavor).list() ?: emptyArray()
Expand Down
5 changes: 3 additions & 2 deletions jacoco/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,14 @@ dependencies {
jacocoAggregation(project(":extensions:tokenizers"))
jacocoAggregation(project(":extensions:tablesaw"))
jacocoAggregation(project(":extensions:timeseries"))
if (JavaVersion.current() < JavaVersion.VERSION_19)
jacocoAggregation(project(":extensions:spark"))
jacocoAggregation(project(":integration"))
jacocoAggregation(project(":model-zoo"))
// if (JavaVersion.current() < JavaVersion.VERSION_19)
// jacocoAggregation(project(":extensions:spark"))
}

reporting {
@Suppress("UnstableApiUsage")
reports {
register<JacocoCoverageReport>("testCodeCoverageReport") {
testType = TestSuiteType.UNIT_TEST
Expand Down

0 comments on commit ab1490e

Please sign in to comment.