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

haonan pushed a commit to branch optimize_cov
in repository https://gitbox.apache.org/repos/asf/tsfile.git


The following commit(s) were added to refs/heads/optimize_cov by this push:
     new 31e6939b fix more
31e6939b is described below

commit 31e6939b028e842921b0df4f3170de7c55c9bd2a
Author: HTHou <[email protected]>
AuthorDate: Fri Aug 2 16:42:14 2024 +0800

    fix more
---
 .github/workflows/code-coverage.yml |   2 +-
 java/copy-code-coverage-sources.sh  |  35 ------------
 java/pom.xml                        | 105 ------------------------------------
 3 files changed, 1 insertion(+), 141 deletions(-)

diff --git a/.github/workflows/code-coverage.yml 
b/.github/workflows/code-coverage.yml
index 452c935d..281ebe4c 100644
--- a/.github/workflows/code-coverage.yml
+++ b/.github/workflows/code-coverage.yml
@@ -37,4 +37,4 @@ jobs:
         uses: codecov/codecov-action@v4
         with:
           token: ${{ secrets.CODECOV_TOKEN }}
-          files: 
java/target/jacoco-merged-reports/jacoco.xml,cpp/target/build/test/coverage_report/index.html
+          files: 
java/tsfile/target/jacoco-merged-reports/jacoco.xml,cpp/target/build/test/coverage_report/index.html
diff --git a/java/copy-code-coverage-sources.sh 
b/java/copy-code-coverage-sources.sh
deleted file mode 100755
index 6ea8bc93..00000000
--- a/java/copy-code-coverage-sources.sh
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/usr/bin/env bash
-#
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#     http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-#
-
-for file in ./*/target/*.exec
-do
-  if [ -f $file ]; then
-    cp $file ./target/
-  fi
-done
-
-for file in ./*/target/classes
-do
-  if [ -f $file ]; then
-    echo "copy from" ${file}
-    cp -r $file ./target/
-  fi
-done
-
diff --git a/java/pom.xml b/java/pom.xml
index f267e3f4..9f207cd7 100644
--- a/java/pom.xml
+++ b/java/pom.xml
@@ -102,109 +102,4 @@
             </dependency>
         </dependencies>
     </dependencyManagement>
-    <profiles>
-        <profile>
-            <id>with-code-coverage</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.codehaus.mojo</groupId>
-                        <artifactId>exec-maven-plugin</artifactId>
-                        <executions>
-                            <execution>
-                                <id>make-cmake-executable</id>
-                                <goals>
-                                    <goal>exec</goal>
-                                </goals>
-                                <phase>process-resources</phase>
-                                <configuration>
-                                    <basedir>${project.basedir}</basedir>
-                                    <executable>chmod</executable>
-                                    <arguments>
-                                        <argument>+x</argument>
-                                        
<argument>copy-code-coverage-sources.sh</argument>
-                                    </arguments>
-                                </configuration>
-                            </execution>
-                            <execution>
-                                <id>collect-code-coverage-results</id>
-                                <goals>
-                                    <goal>exec</goal>
-                                </goals>
-                                <phase>post-integration-test</phase>
-                                <configuration>
-                                    
<executable>${project.basedir}/copy-code-coverage-sources.sh</executable>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                    <plugin>
-                        <groupId>org.jacoco</groupId>
-                        <artifactId>jacoco-maven-plugin</artifactId>
-                        <configuration>
-                            <rules>
-                                <rule 
implementation="org.jacoco.maven.RuleConfiguration">
-                                    <element>BUNDLE</element>
-                                    <limits>  
-                                        <!-- Cover methodes >=30%. (the plugin 
does not support
-                                        ignore getter and setter and toString 
etc..) -->
-                                        <limit 
implementation="org.jacoco.report.check.Limit">
-                                            <counter>METHOD</counter>
-                                            <value>COVEREDRATIO</value>
-                                            <minimum>0.00</minimum>
-                                        </limit>
-                                        <!-- if-else, swtich etc.. >=70% -->
-                                        <limit 
implementation="org.jacoco.report.check.Limit">
-                                            <counter>BRANCH</counter>
-                                            <value>COVEREDRATIO</value>
-                                            <minimum>0.00</minimum>
-                                        </limit>
-                                        <!-- class files >=95% -->
-                                        <limit 
implementation="org.jacoco.report.check.Limit">
-                                            <counter>CLASS</counter>
-                                            <value>COVEREDRATIO</value>
-                                            <minimum>0.00</minimum>
-                                        </limit>
-                                    </limits>
-                                </rule>
-                            </rules>
-                        </configuration>
-                        <executions>
-                            <!-- see 
https://natritmeyer.com/howto/reporting-aggregated-unit-and-integration-test-coverage-with-jacoco/-->
-                            <execution>
-                                <id>merge-unit-and-integration-final</id>
-                                <goals>
-                                    <goal>merge</goal>
-                                </goals>
-                                <phase>post-integration-test</phase>
-                                <configuration>
-                                    <fileSets>
-                                        <fileSet>
-                                            
<directory>${project.build.directory}/</directory>
-                                            <includes>
-                                                <include>*.exec</include>
-                                            </includes>
-                                        </fileSet>
-                                    </fileSets>
-                                    
<destFile>${project.build.directory}/merged.exec</destFile>
-                                </configuration>
-                            </execution>
-                            <execution>
-                                <id>create-merged-report-final</id>
-                                <goals>
-                                    <goal>report</goal>
-                                    <goal>check</goal>
-                                </goals>
-                                <phase>post-integration-test</phase>
-                                <configuration>
-                                    
<dataFile>${project.build.directory}/merged.exec</dataFile>
-                                    
<outputDirectory>${project.build.directory}/jacoco-merged-reports</outputDirectory>
-                                </configuration>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
 </project>

Reply via email to