-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-16577][SPARKR] Add CRAN documentation checks to run-tests.sh #14759
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
349d95d
61f4584
96216ac
9de5e59
5df8936
2bde2b4
e040455
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -26,14 +26,30 @@ rm -f $LOGFILE | |
| SPARK_TESTING=1 $FWDIR/../bin/spark-submit --driver-java-options "-Dlog4j.configuration=file:$FWDIR/log4j.properties" --conf spark.hadoop.fs.default.name="file:///" $FWDIR/pkg/tests/run-all.R 2>&1 | tee -a $LOGFILE | ||
| FAILED=$((PIPESTATUS[0]||$FAILED)) | ||
|
|
||
| # Also run the documentation tests for CRAN | ||
| CRAN_CHECK_LOG_FILE=$FWDIR/cran-check.out | ||
| rm -f $CRAN_CHECK_LOG_FILE | ||
| CRAN_CHECK_OPTIONS="--no-tests --no-manual" $FWDIR/check-cran.sh 2>&1 | tee -a $CRAN_CHECK_LOG_FILE | ||
| FAILED=$((PIPESTATUS[0]||$FAILED)) | ||
|
|
||
| HAS_CRAN_WARNING="$(grep -c WARNING $CRAN_CHECK_LOG_FILE)" | ||
|
||
|
|
||
| if [[ $FAILED != 0 ]]; then | ||
| cat $LOGFILE | ||
| echo -en "\033[31m" # Red | ||
| echo "Had test failures; see logs." | ||
| echo -en "\033[0m" # No color | ||
| exit -1 | ||
| else | ||
| echo -en "\033[32m" # Green | ||
| echo "Tests passed." | ||
| echo -en "\033[0m" # No color | ||
| if [[ $HAS_CRAN_WARNING != 0 ]]; then | ||
| cat $CRAN_CHECK_LOG_FILE | ||
| echo -en "\033[31m" # Red | ||
| echo "Had CRAN check warnings; see logs." | ||
| echo -en "\033[0m" # No color | ||
| exit -1 | ||
| else | ||
| echo -en "\033[32m" # Green | ||
| echo "Tests passed." | ||
| echo -en "\033[0m" # No color | ||
| fi | ||
| fi | ||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think as the next step should generate the manual as a part of this test too? Agree not critical for now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I've turned it off because of the lack of latex packages on Jenkins. I dont think this matters for now as the PDF manual isn't something we use. But we can revisit this later if required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right. I think pdf is generally available for each package posted on CRAN?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah - I think it will get generated by CRAN online (we submit a source package to them I think) - We will also do a check before we release a package.