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

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


The following commit(s) were added to refs/heads/master by this push:
     new cc254e6e9c2e [SPARK-46318][PYTHON][INFRA] Exclude ported 
pyspark.loose_version from the code coverage report
cc254e6e9c2e is described below

commit cc254e6e9c2e690c98ece8b399aa3763d01893a6
Author: Hyukjin Kwon <gurwls...@apache.org>
AuthorDate: Fri Dec 8 15:09:38 2023 +0900

    [SPARK-46318][PYTHON][INFRA] Exclude ported pyspark.loose_version from the 
code coverage report
    
    ### What changes were proposed in this pull request?
    
    This PR proposes to exclude ported (from Python) `pyspark.loose_version` 
from the code coverage report.
    
    ### Why are the changes needed?
    
    For correct test coverage report, and make it easier to read.
    
    
https://app.codecov.io/gh/apache/spark/blob/master/python%2Fpyspark%2Floose_version.py
    
    ### Does this PR introduce _any_ user-facing change?
    
    No, dev-only.
    
    ### How was this patch tested?
    
    Manually tested.
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    No.
    
    Closes #44248 from HyukjinKwon/SPARK-46318.
    
    Authored-by: Hyukjin Kwon <gurwls...@apache.org>
    Signed-off-by: Hyukjin Kwon <gurwls...@apache.org>
---
 python/run-tests-with-coverage | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/python/run-tests-with-coverage b/python/run-tests-with-coverage
index 339964096188..f6b6d965254d 100755
--- a/python/run-tests-with-coverage
+++ b/python/run-tests-with-coverage
@@ -60,10 +60,10 @@ find $COVERAGE_DIR/coverage_data -size 0 -print0 | xargs -0 
rm -fr
 echo "Combining collected coverage data under $COVERAGE_DIR/coverage_data"
 $COV_EXEC combine
 echo "Creating XML report file at python/coverage.xml"
-$COV_EXEC xml --ignore-errors --include "pyspark/*" --omit 
"pyspark/cloudpickle/*" --omit "pyspark/sql/connect/proto/*"
+$COV_EXEC xml --ignore-errors --include "pyspark/*" --omit 
"pyspark/cloudpickle/*" --omit "pyspark/sql/connect/proto/*" --omit 
"python/pyspark/loose_version.py"
 echo "Reporting the coverage data at $COVERAGE_DIR/coverage_data/coverage"
-$COV_EXEC report --include "pyspark/*" --omit "pyspark/cloudpickle/*" --omit 
"pyspark/sql/connect/proto/*"
+$COV_EXEC report --include "pyspark/*" --omit "pyspark/cloudpickle/*" --omit 
"pyspark/sql/connect/proto/*" --omit "python/pyspark/loose_version.py"
 echo "Generating HTML files for PySpark coverage under $COVERAGE_DIR/htmlcov"
-$COV_EXEC html --ignore-errors --include "pyspark/*" --directory 
"$COVERAGE_DIR/htmlcov" --omit "pyspark/cloudpickle/*" --omit 
"pyspark/sql/connect/proto/*"
+$COV_EXEC html --ignore-errors --include "pyspark/*" --directory 
"$COVERAGE_DIR/htmlcov" --omit "pyspark/cloudpickle/*" --omit 
"pyspark/sql/connect/proto/*" --omit "python/pyspark/loose_version.py"
 
 popd


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to