From 9b4a181da052f31a023d18e7f598e0c081e3d79d Mon Sep 17 00:00:00 2001 From: David Li Date: Mon, 26 Sep 2022 13:02:49 -0400 Subject: [PATCH] ARROW-17840: [Java] Disable flaky JaCoCo coverage check (#14231) The check doesn't add much value, and makes things flaky because whether a branch is covered or not can come down to chance based on where exactly an exception occurs. Authored-by: David Li Signed-off-by: David Li --- java/flight/flight-sql-jdbc-driver/pom.xml | 125 ++------------------- 1 file changed, 9 insertions(+), 116 deletions(-) diff --git a/java/flight/flight-sql-jdbc-driver/pom.xml b/java/flight/flight-sql-jdbc-driver/pom.xml index f374cd5b36195..3513b709e07cd 100644 --- a/java/flight/flight-sql-jdbc-driver/pom.xml +++ b/java/flight/flight-sql-jdbc-driver/pom.xml @@ -32,7 +32,6 @@ ${project.parent.version} ${project.name} ${project.version} - ${project.build.directory}/coverage-reports/jacoco-ut.html @@ -154,6 +153,15 @@ + + maven-surefire-plugin + + false + + ${project.basedir}/../../../testing/data + + + org.apache.maven.plugins maven-shade-plugin @@ -250,121 +258,6 @@ - - org.jacoco - jacoco-maven-plugin - 0.8.8 - - - - prepare-agent - - - - ${jacoco.ut.execution.data.file} - - surefireArgLine - - - - - report - test - - report - - - - ${jacoco.ut.execution.data.file} - - - - - - check - - check - - - ${jacoco.ut.execution.data.file} - - - CLASS - - org.apache.arrow.driver.jdbc.utils.ArrowFlightConnectionConfigImpl - - org.apache.arrow.driver.jdbc.utils.UrlParser - - - - BRANCH - COVEREDRATIO - 0.80 - - - - - - - - - - - - jdk8 - - 1.8 - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - ${surefireArgLine} - - **/IT*.java - - false - - ${project.basedir}/../../../testing/data - - - - - - - - - jdk9+ - - [9,] - - - - - org.apache.maven.plugins - maven-surefire-plugin - - - ${surefireArgLine} --add-opens=java.base/java.nio=ALL-UNNAMED - - **/IT*.java - - false - - ${project.basedir}/../../../testing/data - - - - - - -