2014-09-18 15:04:32 -04:00
|
|
|
*#*#
|
2016-04-27 20:35:25 -04:00
|
|
|
*.#*
|
2011-02-02 03:08:13 -05:00
|
|
|
*.iml
|
2016-04-27 20:35:25 -04:00
|
|
|
*.ipr
|
2014-01-03 02:01:38 -05:00
|
|
|
*.iws
|
2014-12-03 22:08:29 -05:00
|
|
|
*.pyc
|
2015-03-11 04:03:01 -04:00
|
|
|
*.pyo
|
2016-04-27 20:35:25 -04:00
|
|
|
*.swp
|
|
|
|
*~
|
|
|
|
.DS_Store
|
|
|
|
.cache
|
|
|
|
.classpath
|
|
|
|
.ensime
|
|
|
|
.ensime_cache/
|
|
|
|
.ensime_lucene
|
|
|
|
.generated-mima*
|
2011-02-02 03:08:13 -05:00
|
|
|
.idea/
|
2014-09-21 16:09:36 -04:00
|
|
|
.idea_modules/
|
2016-04-27 20:35:25 -04:00
|
|
|
.project
|
2016-07-22 07:40:41 -04:00
|
|
|
.pydevproject
|
2016-04-27 20:35:25 -04:00
|
|
|
.scala_dependencies
|
2012-06-29 02:52:33 -04:00
|
|
|
.settings
|
2016-04-27 20:35:25 -04:00
|
|
|
/lib/
|
|
|
|
R-unit-tests.log
|
|
|
|
R/unit-tests.out
|
2016-08-25 15:11:27 -04:00
|
|
|
R/cran-check.out
|
2016-09-24 04:03:11 -04:00
|
|
|
R/pkg/vignettes/sparkr-vignettes.html
|
2017-07-04 15:37:29 -04:00
|
|
|
R/pkg/tests/fulltests/Rplots.pdf
|
2016-04-27 20:35:25 -04:00
|
|
|
build/*.jar
|
[SPARK-4501][Core] - Create build/mvn to automatically download maven/zinc/scalac
Creates a top level directory script (as `build/mvn`) to automatically download zinc and the specific version of scala used to easily build spark. This will also download and install maven if the user doesn't already have it and all packages are hosted under the `build/` directory. Tested on both Linux and OSX OS's and both work. All commands pass through to the maven binary so it acts exactly as a traditional maven call would.
Author: Brennon York <brennon.york@capitalone.com>
Closes #3707 from brennonyork/SPARK-4501 and squashes the following commits:
0e5a0e4 [Brennon York] minor incorrect doc verbage (with -> this)
9b79e38 [Brennon York] fixed merge conflicts with dev/run-tests, properly quoted args in sbt/sbt, fixed bug where relative paths would fail if passed in from build/mvn
d2d41b6 [Brennon York] added blurb about leverging zinc with build/mvn
b979c58 [Brennon York] updated the merge conflict
c5634de [Brennon York] updated documentation to overview build/mvn, updated all points where sbt/sbt was referenced with build/sbt
b8437ba [Brennon York] set progress bars for curl and wget when not run on jenkins, no progress bar when run on jenkins, moved sbt script to build/sbt, wrote stub and warning under sbt/sbt which calls build/sbt, modified build/sbt to use the correct directory, fixed bug in build/sbt-launch-lib.bash to correctly pull the sbt version
be11317 [Brennon York] added switch to silence download progress only if AMPLAB_JENKINS is set
28d0a99 [Brennon York] updated to remove the python dependency, uses grep instead
7e785a6 [Brennon York] added silent and quiet flags to curl and wget respectively, added single echo output to denote start of a download if download is needed
14a5da0 [Brennon York] removed unnecessary zinc output on startup
1af4a94 [Brennon York] fixed bug with uppercase vs lowercase variable
3e8b9b3 [Brennon York] updated to properly only restart zinc if it was freshly installed
a680d12 [Brennon York] Added comments to functions and tested various mvn calls
bb8cc9d [Brennon York] removed package files
ef017e6 [Brennon York] removed OS complexities, setup generic install_app call, removed extra file complexities, removed help, removed forced install (defaults now), removed double-dash from cli
07bf018 [Brennon York] Updated to specifically handle pulling down the correct scala version
f914dea [Brennon York] Beginning final portions of localized scala home
69c4e44 [Brennon York] working linux and osx installers for purely local mvn build
4a1609c [Brennon York] finalizing working linux install for maven to local ./build/apache-maven folder
cbfcc68 [Brennon York] Changed the default sbt/sbt to build/sbt and added a build/mvn which will automatically download, install, and execute maven with zinc for easier build capability
2014-12-27 16:25:18 -05:00
|
|
|
build/apache-maven*
|
|
|
|
build/scala*
|
2016-04-27 20:35:25 -04:00
|
|
|
build/zinc*
|
|
|
|
cache
|
|
|
|
checkpoint
|
2014-09-18 15:04:32 -04:00
|
|
|
conf/*.cmd
|
2014-09-17 00:57:33 -04:00
|
|
|
conf/*.conf
|
2016-04-27 20:35:25 -04:00
|
|
|
conf/*.properties
|
|
|
|
conf/*.sh
|
2014-09-17 00:57:33 -04:00
|
|
|
conf/*.xml
|
2016-04-27 20:35:25 -04:00
|
|
|
conf/java-opts
|
2014-09-25 19:49:15 -04:00
|
|
|
conf/slaves
|
2016-04-27 20:35:25 -04:00
|
|
|
dependency-reduced-pom.xml
|
|
|
|
derby.log
|
|
|
|
dev/create-release/*final
|
|
|
|
dev/create-release/*txt
|
2017-02-13 06:22:31 -05:00
|
|
|
dev/pr-deps/
|
2016-04-27 20:35:25 -04:00
|
|
|
dist/
|
2012-09-03 02:05:40 -04:00
|
|
|
docs/_site
|
2012-09-16 18:28:52 -04:00
|
|
|
docs/api
|
2017-07-26 12:38:51 -04:00
|
|
|
sql/docs
|
|
|
|
sql/site
|
2010-11-14 01:07:08 -05:00
|
|
|
lib_managed/
|
2016-04-27 20:35:25 -04:00
|
|
|
lint-r-report.log
|
|
|
|
log/
|
|
|
|
logs/
|
|
|
|
out/
|
2010-11-14 01:07:08 -05:00
|
|
|
project/boot/
|
2011-02-08 20:06:07 -05:00
|
|
|
project/build/target/
|
|
|
|
project/plugins/lib_managed/
|
2016-04-27 20:35:25 -04:00
|
|
|
project/plugins/project/build.properties
|
2011-02-08 20:06:07 -05:00
|
|
|
project/plugins/src_managed/
|
2016-04-27 20:35:25 -04:00
|
|
|
project/plugins/target/
|
|
|
|
python/lib/pyspark.zip
|
2016-11-16 17:22:15 -05:00
|
|
|
python/deps
|
[SPARK-7721][PYTHON][TESTS] Adds PySpark coverage generation script
## What changes were proposed in this pull request?
Note that this PR was made based on the top of https://github.com/apache/spark/pull/20151. So, it almost leaves the main codes intact.
This PR proposes to add a script for the preparation of automatic PySpark coverage generation. Now, it's difficult to check the actual coverage in case of PySpark. With this script, it allows to run tests by the way we did via `run-tests` script before. The usage is exactly the same with `run-tests` script as this basically wraps it.
This script and PR alone should also be useful. I was asked about how to run this before, and seems some reviewers (including me) need this. It would be also useful to run it manually.
It usually requires a small diff in normal Python projects but PySpark cases are a bit different because apparently we are unable to track the coverage after it's forked. So, here, I made a custom worker that forces the coverage, based on the top of https://github.com/apache/spark/pull/20151.
I made a simple demo. Please take a look - https://spark-test.github.io/pyspark-coverage-site.
To show up the structure, this PR adds the files as below:
```
python
├── .coveragerc # Runtime configuration when we run the script.
├── run-tests-with-coverage # The script that has coverage support and wraps run-tests script.
└── test_coverage # Directories that have files required when running coverage.
├── conf
│ └── spark-defaults.conf # Having the configuration 'spark.python.daemon.module'.
├── coverage_daemon.py # A daemon having custom fix and wrapping our daemon.py
└── sitecustomize.py # Initiate coverage with COVERAGE_PROCESS_START
```
Note that this PR has a minor nit:
[This scope](https://github.com/apache/spark/blob/04e44b37cc04f62fbf9e08c7076349e0a4d12ea8/python/pyspark/daemon.py#L148-L169) in `daemon.py` is not in the coverage results as basically I am producing the coverage results in `worker.py` separately and then merging it. I believe it's not a big deal.
In a followup, I might have a site that has a single up-to-date PySpark coverage from the master branch as the fallback / default, or have a site that has multiple PySpark coverages and the site link will be left to each pull request.
## How was this patch tested?
Manually tested. Usage is the same with the existing Python test script - `./python/run-tests`. For example,
```
sh run-tests-with-coverage --python-executables=python3 --modules=pyspark-sql
```
Running this will generate HTMLs under `./python/test_coverage/htmlcov`.
Console output example:
```
sh run-tests-with-coverage --python-executables=python3,python --modules=pyspark-core
Running PySpark tests. Output is in /.../spark/python/unit-tests.log
Will test against the following Python executables: ['python3', 'python']
Will test the following Python modules: ['pyspark-core']
Starting test(python): pyspark.tests
Starting test(python3): pyspark.tests
...
Tests passed in 231 seconds
Combining collected coverage data under /.../spark/python/test_coverage/coverage_data
Reporting the coverage data at /...spark/python/test_coverage/coverage_data/coverage
Name Stmts Miss Branch BrPart Cover
--------------------------------------------------------------
pyspark/__init__.py 41 0 8 2 96%
...
pyspark/profiler.py 74 11 22 5 83%
pyspark/rdd.py 871 40 303 32 93%
pyspark/rddsampler.py 68 10 32 2 82%
...
--------------------------------------------------------------
TOTAL 8521 3077 2748 191 59%
Generating HTML files for PySpark coverage under /.../spark/python/test_coverage/htmlcov
```
Author: hyukjinkwon <gurwls223@gmail.com>
Closes #20204 from HyukjinKwon/python-coverage.
2018-01-22 08:12:50 -05:00
|
|
|
python/test_coverage/coverage_data
|
|
|
|
python/test_coverage/htmlcov
|
2016-11-16 17:22:15 -05:00
|
|
|
python/pyspark/python
|
2016-04-27 20:35:25 -04:00
|
|
|
reports/
|
|
|
|
scalastyle-on-compile.generated.xml
|
|
|
|
scalastyle-output.xml
|
|
|
|
scalastyle.txt
|
|
|
|
spark-*-bin-*.tgz
|
2012-10-01 18:08:20 -04:00
|
|
|
spark-tests.log
|
2016-04-27 20:35:25 -04:00
|
|
|
src_managed/
|
2012-12-30 23:00:42 -05:00
|
|
|
streaming-tests.log
|
2016-04-27 20:35:25 -04:00
|
|
|
target/
|
2013-08-23 02:02:09 -04:00
|
|
|
unit-tests.log
|
2016-04-27 20:35:25 -04:00
|
|
|
work/
|
2018-03-26 15:45:45 -04:00
|
|
|
docs/.jekyll-metadata
|
2014-05-02 00:32:43 -04:00
|
|
|
|
|
|
|
# For Hive
|
2014-05-04 02:13:51 -04:00
|
|
|
TempStatsStore/
|
2016-04-27 20:35:25 -04:00
|
|
|
metastore/
|
|
|
|
metastore_db/
|
2014-07-28 15:07:30 -04:00
|
|
|
sql/hive-thriftserver/test_warehouses
|
2016-04-27 20:35:25 -04:00
|
|
|
warehouse/
|
2016-05-05 17:33:14 -04:00
|
|
|
spark-warehouse/
|
2015-11-12 23:09:42 -05:00
|
|
|
|
|
|
|
# For R session data
|
|
|
|
.RData
|
2016-04-27 20:35:25 -04:00
|
|
|
.RHistory
|
2016-06-28 07:41:06 -04:00
|
|
|
.Rhistory
|
2016-07-22 07:40:41 -04:00
|
|
|
*.Rproj
|
|
|
|
*.Rproj.*
|
|
|
|
|
2016-08-15 14:03:03 -04:00
|
|
|
.Rproj.user
|