This is an automated email from the ASF dual-hosted git repository.
lzljs3620320 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-paimon.git
The following commit(s) were added to refs/heads/master by this push:
new eb875d246 [CI] Fix the problem that the code coverage metric is empty
(#899)
eb875d246 is described below
commit eb875d246f0f756c87f8fb0736275e327c2c5e43
Author: Guangdong Liu <[email protected]>
AuthorDate: Fri Apr 14 15:43:04 2023 +0800
[CI] Fix the problem that the code coverage metric is empty (#899)
---
pom.xml | 1 +
tools/ci/sonar_check.sh | 10 +++++++++-
2 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 79f6fb292..6fe63f92e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -433,6 +433,7 @@ under the License.
<test.randomization.seed>${test.randomization.seed}</test.randomization.seed>
<test.flink.main.version>${test.flink.main.version}</test.flink.main.version>
<test.flink.version>${test.flink.version}</test.flink.version>
+
<jacoco-agent.destfile>${project.build.directory}/jacoco.exec</jacoco-agent.destfile>
</systemPropertyVariables>
<argLine>-Xms256m -Xmx2048m
-Dmvn.forkNumber=${surefire.forkNumber} -XX:+UseG1GC</argLine>
</configuration>
diff --git a/tools/ci/sonar_check.sh b/tools/ci/sonar_check.sh
index 3551929fd..3d93984ef 100644
--- a/tools/ci/sonar_check.sh
+++ b/tools/ci/sonar_check.sh
@@ -18,4 +18,12 @@ if [ ! "$SONAR_TOKEN" ]; then
echo "SONAR_TOKEN environment is null, skip check"
exit 0
fi
-./mvnw --batch-mode verify sonar:sonar -Dmaven.test.skip=true
-Dsonar.host.url=https://sonarcloud.io -Dsonar.organization=apache
-Dsonar.projectKey=apache_incubator-paimon
-Dsonar.core.codeCoveragePlugin=jacoco
-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml
-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false
-Dmaven.wagon.httpconnectionManager.ttlSeconds=120
+./mvnw --batch-mode verify sonar:sonar \
+-Dmaven.test.skip=true -Dsonar.host.url=https://sonarcloud.io \
+-Dsonar.organization=apache \
+-Dsonar.projectKey=apache_incubator-paimon \
+-Dsonar.core.codeCoveragePlugin=jacoco \
+-Dsonar.coverage.jacoco.xmlReportPaths=target/site/jacoco/jacoco.xml \
+-Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false \
+-Dsonar.exclusions=,paimon-benchmark/src/**/*,test/**/*.java \
+-Dmaven.wagon.httpconnectionManager.ttlSeconds=120