-
Notifications
You must be signed in to change notification settings - Fork 28.5k
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
[SPARK-12034][SPARKR] Eliminate warnings in SparkR test cases. #10030
Conversation
This PR depends on SPARK-11781, will rebase it after the PR for SPARK-11781 get merged into master. |
Test build #46850 has finished for PR 10030 at commit
|
@@ -26,7 +26,7 @@ sc <- sparkR.init() | |||
sqlContext <- sparkRSQL.init(sc) | |||
|
|||
test_that("glm and predict", { | |||
training <- createDataFrame(sqlContext, iris) | |||
training <- suppressWarnings(createDataFrame(sqlContext, iris)) |
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.
could you add a note in JIRA SPARK-11976 that once that is fixed we should remove suppressWarnings
around DF from iris?
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.
there are a number of suppressWarnings in this PR. Instead of adding notes for them in this PR, I'd like to add a note in SPARK-11976 that cleaning these warnings is part of the job. Is it OK?
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, that's what I mean, add a note in SPARK-11976 to remove these.
alternatively, we could open another JIRA to change all these tests to use a different data frame that doesn't have column names with .
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.
added note in SPARK-11976
rebased to master |
Test build #46867 has finished for PR 10030 at commit
|
Hmm the recommendation in testthat [1] seems to be to put the tests in [1] https://github.com/hadley/testthat#integration-with-r-cmd-check |
@shivaram, I tried , that does not work. It seems right to put test cases in R/pkg/inst/tests/testthat, and after installation, the cases cases are available at 'R/lib/SparkR/tests/testthat'. I think |
@shivaram, could we merge this? |
@sun-rui Could you bring this update to date with master ? |
rebased to master |
Test build #47187 has finished for PR 10030 at commit
|
I'm sorry @sun-rui -- looks like some other merge conflicts now. Could you ping this thread once its up to date ? I will merge this PR asap after that. |
@shivaram, rebased again. I can successfully rebase it to master on my dev machine, don't know any other merge conflicts. Could you merge it before merging any other PR? |
Test build #47257 has finished for PR 10030 at commit
|
LGTM. Thanks @sun-rui -- Merging this to master and 1.6 |
This PR: 1. Suppress all known warnings. 2. Cleanup test cases and fix some errors in test cases. 3. Fix errors in HiveContext related test cases. These test cases are actually not run previously due to a bug of creating TestHiveContext. 4. Support 'testthat' package version 0.11.0 which prefers that test cases be under 'tests/testthat' 5. Make sure the default Hadoop file system is local when running test cases. 6. Turn on warnings into errors. Author: Sun Rui <[email protected]> Closes #10030 from sun-rui/SPARK-12034. (cherry picked from commit 39d677c) Signed-off-by: Shivaram Venkataraman <[email protected]>
This PR: