-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-17326][SPARKR] Fix tests with HiveContext in SparkR not to be skipped always #14889
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
Conversation
|
cc @rxin, @felixcheung and @shivaram |
|
Thanks @HyukjinKwon - This is a great catch. LGTM pending tests. |
|
LGTM thanks! |
|
Test build #64700 has finished for PR 14889 at commit
|
|
btw, do you know why the "skipped" message is not in the Jenkins log? |
|
@felixcheung Ah, you meant just message within |
|
|
|
thanks for fixing this. I thought skipped tests are easy to miss so it would be great (maybe as a separate PR) if there is a way we could detect what's being skipped from within Jenkins. |
|
@felixcheung It seems due to the differences of Do you mind if I ask what version is used in Jenkins (if you know)? It seems I can't find. |
|
shane knapp manages Jenkins, he should know.
Does the newer testthat have any minimal R version requirement? We are running R 3.1.1 (the minimal required R version) in Jenkins.
|
|
It seems okay with minimal version. It seems 3.1+ (if my understanding is correct, https://github.com/hadley/testthat/blob/v1.0.0/DESCRIPTION#L13). I will try to look into this deeper. |
|
I just ran this on one of the Jenkins machines |
|
could we update testthat on Jenkins box? I think that would automagically bubble up the skipped test. |
|
let's merge this fix and follow up if there is a better way to track skipped tests separately? |
|
Yeah lets open a separate JIRA to update testthat on the Jenkins boxes. LGTM. Merging this to master and branch-2.0 |
…skipped always ## What changes were proposed in this pull request? Currently, `HiveContext` in SparkR is not being tested and always skipped. This is because the initiation of `TestHiveContext` is being failed due to trying to load non-existing data paths (test tables). This is introduced from #14005 This enables the tests with SparkR. ## How was this patch tested? Manually, **Before** (on Mac OS) ``` ... Skipped ------------------------------------------------------------------------ 1. create DataFrame from RDD (test_sparkSQL.R#200) - Hive is not build with SparkSQL, skipped 2. test HiveContext (test_sparkSQL.R#1041) - Hive is not build with SparkSQL, skipped 3. read/write ORC files (test_sparkSQL.R#1748) - Hive is not build with SparkSQL, skipped 4. enableHiveSupport on SparkSession (test_sparkSQL.R#2480) - Hive is not build with SparkSQL, skipped 5. sparkJars tag in SparkContext (test_Windows.R#21) - This test is only for Windows, skipped ... ``` **After** (on Mac OS) ``` ... Skipped ------------------------------------------------------------------------ 1. sparkJars tag in SparkContext (test_Windows.R#21) - This test is only for Windows, skipped ... ``` Please refer the tests below (on Windows) - Before: https://ci.appveyor.com/project/HyukjinKwon/spark/build/45-test123 - After: https://ci.appveyor.com/project/HyukjinKwon/spark/build/46-test123 Author: hyukjinkwon <[email protected]> Closes #14889 from HyukjinKwon/SPARK-17326. (cherry picked from commit 50bb142) Signed-off-by: Shivaram Venkataraman <[email protected]>
What changes were proposed in this pull request?
Currently,
HiveContextin SparkR is not being tested and always skipped.This is because the initiation of
TestHiveContextis being failed due to trying to load non-existing data paths (test tables).This is introduced from #14005
This enables the tests with SparkR.
How was this patch tested?
Manually,
Before (on Mac OS)
After (on Mac OS)
Please refer the tests below (on Windows)