This is an automated email from the ASF dual-hosted git repository.

erose pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new 9bdac501a7 HDDS-10584. Exclude proto3 classes from coverage (#6431)
9bdac501a7 is described below

commit 9bdac501a73498506db7cc8f0c67c6aa95d6b216
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Mar 25 20:16:31 2024 +0100

    HDDS-10584. Exclude proto3 classes from coverage (#6431)
---
 hadoop-ozone/dev-support/checks/coverage.sh | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/hadoop-ozone/dev-support/checks/coverage.sh 
b/hadoop-ozone/dev-support/checks/coverage.sh
index c88fe1950b..81b0bc8169 100755
--- a/hadoop-ozone/dev-support/checks/coverage.sh
+++ b/hadoop-ozone/dev-support/checks/coverage.sh
@@ -30,7 +30,7 @@ JACOCO_VERSION=$(mvn help:evaluate 
-Dexpression=jacoco.version -q -DforceStdout)
 
 #Install jacoco cli
 mvn --non-recursive --no-transfer-progress \
-  org.apache.maven.plugins:maven-dependency-plugin:3.1.2:copy \
+  org.apache.maven.plugins:maven-dependency-plugin:copy \
   -Dartifact=org.jacoco:org.jacoco.cli:${JACOCO_VERSION}:jar:nodeps
 
 jacoco() {
@@ -49,10 +49,8 @@ find hadoop-ozone/dist/target/*/share/ozone/lib -name 
'hdds-*.jar' -or -name 'oz
     xargs -n1 unzip -o -q -d target/coverage-classes
 
 #Exclude some classes from the coverage
-find target/coverage-classes -name proto -type d | xargs rm -rf
-find target/coverage-classes -name generated -type d | xargs rm -rf
-find target/coverage-classes -name v1 -type d | xargs rm -rf
-find target/coverage-classes -name freon -type d | xargs rm -rf
+find target/coverage-classes -type d \( -name proto -or -name proto3 -or -name 
generated -or -name v1 -or -name freon \) \
+  | xargs rm -rf
 
 #generate the reports
 jacoco report "$REPORT_DIR/jacoco-all.exec" --classfiles 
target/coverage-classes --html "$REPORT_DIR/all" --xml "$REPORT_DIR/all.xml"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to