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 d02674713ac [SPARK-46297][PYTHON][INFRA] Exclude generated files from
the code coverage report
d02674713ac is described below
commit d02674713ac2183a622f280b7f979678ab35a920
Author: Hyukjin Kwon <[email protected]>
AuthorDate: Thu Dec 7 12:05:51 2023 +0900
[SPARK-46297][PYTHON][INFRA] Exclude generated files from the code coverage
report
### What changes were proposed in this pull request?
This PR proposes to exclude generated files from the code coverage report,
`pyspark/sql/connect/proto/*`.
### Why are the changes needed?
For correct test coverage report, and make it easier to read.
https://app.codecov.io/gh/apache/spark/commit/1a651753f4e760643d719add3b16acd311454c76/tree/python/pyspark/sql/connect/proto
### 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 #44225 from HyukjinKwon/SPARK-46297.
Authored-by: Hyukjin Kwon <[email protected]>
Signed-off-by: Hyukjin Kwon <[email protected]>
---
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 0ca054dcdf1..33996409618 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/*"
+$COV_EXEC xml --ignore-errors --include "pyspark/*" --omit
"pyspark/cloudpickle/*" --omit "pyspark/sql/connect/proto/*"
echo "Reporting the coverage data at $COVERAGE_DIR/coverage_data/coverage"
-$COV_EXEC report --include "pyspark/*" --omit "pyspark/cloudpickle/*"
+$COV_EXEC report --include "pyspark/*" --omit "pyspark/cloudpickle/*" --omit
"pyspark/sql/connect/proto/*"
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/*"
+$COV_EXEC html --ignore-errors --include "pyspark/*" --directory
"$COVERAGE_DIR/htmlcov" --omit "pyspark/cloudpickle/*" --omit
"pyspark/sql/connect/proto/*"
popd
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]