From 98237200c2f8705aa8363add5ff03e7bb1aa9e7c Mon Sep 17 00:00:00 2001
From: David Li
Date: Sun, 25 Sep 2022 07:30:54 -0400
Subject: [PATCH] ARROW-17840: [Java] Disable flaky JaCoCo coverage check
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.
---
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
-
-
-
-
-
-
-