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
|
2020-10-28 08:32:09 -04:00
|
|
|
.bsp/
|
2016-04-27 20:35:25 -04:00
|
|
|
.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/
|
2019-12-04 18:31:23 -05:00
|
|
|
docs/_site/
|
2012-09-16 18:28:52 -04:00
|
|
|
docs/api
|
[SPARK-34433][DOCS] Lock Jekyll version by Gemfile and Bundler
### What changes were proposed in this pull request?
Improving the documentation and release process by pinning Jekyll version by Gemfile and Bundler.
Some files and their responsibilities within this PR:
- `docs/.bundle/config` is used to specify a directory "docs/.local_ruby_bundle" which will be used as destination to install the ruby packages into instead of the global one which requires root access
- `docs/Gemfile` is specifying the required Jekyll version and other top level gem versions
- `docs/Gemfile.lock` is generated by the "bundle install". This file contains the exact resolved versions of all the gems including the top level gems and all the direct and transitive dependencies of those gems. When this file is generated it contains a platform related section "PLATFORMS" (in my case after the generation it was "universal-darwin-19"). Still this file must be under version control as when the version of a gem does not fit to the one specified in `Gemfile` an error comes (i.e. if the `Gemfile.lock` was generated for Jekyll 4.1.0 and its version is updated in the `Gemfile` to 4.2.0 then it triggers the error: "The bundle currently has jekyll locked at 4.1.0."). This is solution is also suggested officially in [its documentation](https://bundler.io/rationale.html#checking-your-code-into-version-control). To get rid of the specific platform (like "universal-darwin-19") first we have to add "ruby" as platform [which means this should work on every platform where Ruby runs](https://guides.rubygems.org/what-is-a-gem/)) by running "bundle lock --add-platform ruby" then the specific platform can be removed by "bundle lock --remove-platform universal-darwin-19".
After this the correct process to update Jekyll version is the following:
1. update the version in `Gemfile`
2. run "bundle update" which updates the `Gemfile.lock`
3. commit both files
This process for version update is tested for details please check the testing section.
### Why are the changes needed?
Using different Jekyll versions can generate different output documents.
This PR standardize the process.
### Does this PR introduce _any_ user-facing change?
No, assuming the release was done via docker by using `do-release-docker.sh`.
In that case there should be no difference at all as the same Jekyll version is specified in the Gemfile.
### How was this patch tested?
#### Testing document generation
Doc generation step was triggered via the docker release:
```
$ ./do-release-docker.sh -d ~/working -n -s docs
...
========================
= Building documentation...
Command: /opt/spark-rm/release-build.sh docs
Log file: docs.log
Skipping publish step.
```
The docs.log contains the followings:
```
Building Spark docs
Fetching gem metadata from https://rubygems.org/.........
Using bundler 2.2.9
Fetching rb-fsevent 0.10.4
Fetching forwardable-extended 2.6.0
Fetching public_suffix 4.0.6
Fetching colorator 1.1.0
Fetching eventmachine 1.2.7
Fetching http_parser.rb 0.6.0
Fetching ffi 1.14.2
Fetching concurrent-ruby 1.1.8
Installing colorator 1.1.0
Installing forwardable-extended 2.6.0
Installing rb-fsevent 0.10.4
Installing public_suffix 4.0.6
Installing http_parser.rb 0.6.0 with native extensions
Installing eventmachine 1.2.7 with native extensions
Installing concurrent-ruby 1.1.8
Fetching rexml 3.2.4
Fetching liquid 4.0.3
Installing ffi 1.14.2 with native extensions
Installing rexml 3.2.4
Installing liquid 4.0.3
Fetching mercenary 0.4.0
Installing mercenary 0.4.0
Fetching rouge 3.26.0
Installing rouge 3.26.0
Fetching safe_yaml 1.0.5
Installing safe_yaml 1.0.5
Fetching unicode-display_width 1.7.0
Installing unicode-display_width 1.7.0
Fetching webrick 1.7.0
Installing webrick 1.7.0
Fetching pathutil 0.16.2
Fetching kramdown 2.3.0
Fetching terminal-table 2.0.0
Fetching addressable 2.7.0
Fetching i18n 1.8.9
Installing terminal-table 2.0.0
Installing pathutil 0.16.2
Installing i18n 1.8.9
Installing addressable 2.7.0
Installing kramdown 2.3.0
Fetching kramdown-parser-gfm 1.1.0
Installing kramdown-parser-gfm 1.1.0
Fetching rb-inotify 0.10.1
Fetching sassc 2.4.0
Fetching em-websocket 0.5.2
Installing rb-inotify 0.10.1
Installing em-websocket 0.5.2
Installing sassc 2.4.0 with native extensions
Fetching listen 3.4.1
Installing listen 3.4.1
Fetching jekyll-watch 2.2.1
Installing jekyll-watch 2.2.1
Fetching jekyll-sass-converter 2.1.0
Installing jekyll-sass-converter 2.1.0
Fetching jekyll 4.2.0
Installing jekyll 4.2.0
Fetching jekyll-redirect-from 0.16.0
Installing jekyll-redirect-from 0.16.0
Bundle complete! 4 Gemfile dependencies, 30 gems now installed.
Bundled gems are installed into `./.local_ruby_bundle`
```
#### Testing Jekyll (or other gem) update
First locally I reverted Jekyll to 4.1.0:
```
$ rm Gemfile.lock
$ rm -rf .local_ruby_bundle
# edited Gemfile to use version 4.1.0
$ cat Gemfile
source "https://rubygems.org"
gem "jekyll", "4.1.0"
gem "rouge", "3.26.0"
gem "jekyll-redirect-from", "0.16.0"
gem "webrick", "1.7"
$ bundle install
...
```
Testing Jekyll version before the update:
```
$ bundle exec jekyll --version
jekyll 4.1.0
```
Imitating Jekyll update coming from git by reverting my local changes:
```
$ git checkout Gemfile
Updated 1 path from the index
$ cat Gemfile
source "https://rubygems.org"
gem "jekyll", "4.2.0"
gem "rouge", "3.26.0"
gem "jekyll-redirect-from", "0.16.0"
gem "webrick", "1.7"
$ git checkout Gemfile.lock
Updated 1 path from the index
```
Run the install:
```
$ bundle install
...
```
Checking the updated Jekyll version:
```
$ bundle exec jekyll --version
jekyll 4.2.0
```
Closes #31559 from attilapiros/pin-jekyll-version.
Lead-authored-by: “attilapiros” <piros.attila.zsolt@gmail.com>
Co-authored-by: Hyukjin Kwon <gurwls223@gmail.com>
Co-authored-by: Attila Zsolt Piros <2017933+attilapiros@users.noreply.github.com>
Signed-off-by: HyukjinKwon <gurwls223@apache.org>
2021-02-17 22:17:57 -05:00
|
|
|
docs/.local_ruby_bundle
|
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
|
2019-08-07 19:55:11 -04:00
|
|
|
python/.eggs/
|
2016-11-16 17:22:15 -05:00
|
|
|
python/deps
|
2019-12-04 18:31:23 -05:00
|
|
|
python/docs/_site/
|
2020-07-27 04:49:21 -04:00
|
|
|
python/docs/source/reference/api/
|
[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
|
2020-10-19 15:50:01 -04:00
|
|
|
.mypy_cache/
|
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
|
2020-09-01 20:43:32 -04:00
|
|
|
docs/.jekyll-cache
|
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
|
2019-01-22 19:27:24 -05:00
|
|
|
|
|
|
|
# For SBT
|
|
|
|
.jvmopts
|