Uh oh!
There was an error while loading. Please reload this page.
[SPARK-30733][R][HOTFIX] Fix SparkR tests per testthat and R version upgrade, and disable CRAN - #27460
[SPARK-30733][R][HOTFIX] Fix SparkR tests per testthat and R version upgrade, and disable CRAN#27460HyukjinKwon wants to merge 6 commits into
Conversation
HyukjinKwon
commented
Feb 5, 2020
Please let me test this via Jenkins considering the urgency. |
HyukjinKwon
commented
Feb 5, 2020
cc @dongjoon-hyun and @viirya |
aa31161 to
2b3b274CompareSparkQA
commented
Feb 5, 2020
Test build #117871 has finished for PR 27460 at commit
|
viirya
commented
Feb 5, 2020
via email
Will look into it later today after dinner. …On Tue, Feb 4, 2020, 18:13 Hyukjin Kwon ***@***.***> wrote:
cc @dongjoon-hyun <https://github.com/dongjoon-hyun> and @viirya
<https://github.com/viirya>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27460?email_source=notifications&email_token=AAAQZ57LAKKNOGERDQV7EYTRBIOFVA5CNFSM4KQDEZ52YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKZ4ZBY#issuecomment-582208647>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAQZ53GJMLLDDRLLW6RPIDRBIOFVANCNFSM4KQDEZ5Q>
.
|
dongjoon-hyun
commented
Feb 5, 2020
cc @felixcheung and @shivaram , too. |
shivaram
commented
Feb 5, 2020
Thanks @HyukjinKwon -- Changes LGTM if Jenkins tests pass |
dongjoon-hyun
commented
Feb 5, 2020
So far, it looks good except the following. I'm not sure why |
dongjoon-hyun
left a comment
There was a problem hiding this comment.
+1, LGTM. For Arrow, we can check later.
Since this PR is a HOTFIX, please merge this first.
dongjoon-hyun
commented
Feb 5, 2020
Thank you so much for quick fix, @HyukjinKwon ! |
SparkQA
commented
Feb 5, 2020
Test build #117872 has finished for PR 27460 at commit
|
dongjoon-hyun
commented
Feb 5, 2020
Oh, it seems that there are another instances. |
viirya
left a comment
There was a problem hiding this comment.
Thanks @HyukjinKwon for quick fix!
f453529 to
493f04aCompare493f04a to
3113c53CompareHyukjinKwon
commented
Feb 5, 2020
Thanks all @dongjoon-hyun, @viirya, @shivaram. I am sure now all instances are fixed. I will merge as soon as the tests pass. |
SparkQA
commented
Feb 5, 2020
Test build #117878 has finished for PR 27460 at commit
|
SparkQA
commented
Feb 5, 2020
Test build #117881 has finished for PR 27460 at commit
|
Okay, the tests passed and warnings all are fixed.
|
dongjoon-hyun
commented
Feb 5, 2020
Yes, now it's blocked by |
HyukjinKwon
commented
Feb 5, 2020
Argh .. |
Uh oh!
There was an error while loading. Please reload this page.
SparkQA
commented
Feb 5, 2020
Test build #117891 has finished for PR 27460 at commit
|
This reverts commit 9aa87c3.
SparkQA
commented
Feb 5, 2020
Test build #117894 has finished for PR 27460 at commit
|
SparkQA
commented
Feb 5, 2020
Test build #117904 has finished for PR 27460 at commit
|
HyukjinKwon
commented
Feb 5, 2020
I am going to merge to unblock other PRs. |
…upgrade, and disable CRAN ### What changes were proposed in this pull request? There are currently the R test failures after upgrading `testthat` to 2.0.0, and R version 3.5.2 as of SPARK-23435. This PR targets to fix the tests and make the tests pass. See the explanations and causes below: ``` test_context.R:49: failure: Check masked functions length(maskedCompletely) not equal to length(namesOfMaskedCompletely). 1/1 mismatches [1] 6 - 4 == 2 test_context.R:53: failure: Check masked functions sort(maskedCompletely, na.last = TRUE) not equal to sort(namesOfMaskedCompletely, na.last = TRUE). 5/6 mismatches x[2]: "endsWith" y[2]: "filter" x[3]: "filter" y[3]: "not" x[4]: "not" y[4]: "sample" x[5]: "sample" y[5]: NA x[6]: "startsWith" y[6]: NA ``` From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out. ``` test_includePackage.R:31: error: include inside function package or namespace load failed for ���plyr���: package ���plyr��� was installed by an R version with different internals; it needs to be reinstalled for use with this R version Seems it's a package installation issue. Looks like plyr has to be re-installed. ``` From my cursory look, previously installed `plyr` remains and it's not compatible with the new R version. I fixed accordingly and Jenkins will test it out. ``` test_sparkSQL.R:499: warning: SPARK-17811: can create DataFrame containing NA as date and time Your system is mis-configured: ���/etc/localtime��� is not a symlink ``` Seems a env problem. I suppressed the warnings for now. ``` test_sparkSQL.R:499: warning: SPARK-17811: can create DataFrame containing NA as date and time It is strongly recommended to set envionment variable TZ to ���America/Los_Angeles��� (or equivalent) ``` Seems a env problem. I suppressed the warnings for now. ``` test_sparkSQL.R:1814: error: string operators unable to find an inherited method for function ���startsWith��� for signature ���"character"��� 1: expect_true(startsWith("Hello World", "Hello")) at /home/jenkins/workspace/SparkPullRequestBuilder2/R/pkg/tests/fulltests/test_sparkSQL.R:1814 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: startsWith("Hello World", "Hello") 5: (function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable) if (length(methods) == 1L) return(methods[[1L]]) else if (length(methods) == 0L) { cnames <- paste0("\"", vapply(classes, as.character, ""), "\"", collapse = ", ") stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdefgeneric), sQuote(cnames)), domain = NA) } else stop("Internal error in finding inherited methods; didn't return a unique method", domain = NA) })(list("character"), new("nonstandardGenericFunction", .Data = function (x, prefix) { standardGeneric("startsWith") }, generic = structure("startsWith", package = "SparkR"), package = "SparkR", group = list(), valueClass = character(0), signature = c("x", "prefix"), default = NULL, skeleton = (function (x, prefix) stop("invalid call in method dispatch to 'startsWith' (no default method)", domain = NA))(x, prefix)), <environment>) 6: stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdefgeneric), sQuote(cnames)), domain = NA) ``` From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out. Also, this PR causes a CRAN check failure as below: ``` * creating vignettes ... ERROR Error: processing vignette 'sparkr-vignettes.Rmd' failed with diagnostics: package ���htmltools��� was installed by an R version with different internals; it needs to be reinstalled for use with this R version ``` This PR disables it for now. ### Why are the changes needed? To unblock other PRs. ### Does this PR introduce any user-facing change? No. Test only and dev only. ### How was this patch tested? No. I am going to use Jenkins to test. Closes#27460 from HyukjinKwon/r-test-failure. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit e2d984a) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…upgrade, and disable CRAN ### What changes were proposed in this pull request? There are currently the R test failures after upgrading `testthat` to 2.0.0, and R version 3.5.2 as of SPARK-23435. This PR targets to fix the tests and make the tests pass. See the explanations and causes below: ``` test_context.R:49: failure: Check masked functions length(maskedCompletely) not equal to length(namesOfMaskedCompletely). 1/1 mismatches [1] 6 - 4 == 2 test_context.R:53: failure: Check masked functions sort(maskedCompletely, na.last = TRUE) not equal to sort(namesOfMaskedCompletely, na.last = TRUE). 5/6 mismatches x[2]: "endsWith" y[2]: "filter" x[3]: "filter" y[3]: "not" x[4]: "not" y[4]: "sample" x[5]: "sample" y[5]: NA x[6]: "startsWith" y[6]: NA ``` From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out. ``` test_includePackage.R:31: error: include inside function package or namespace load failed for ���plyr���: package ���plyr��� was installed by an R version with different internals; it needs to be reinstalled for use with this R version Seems it's a package installation issue. Looks like plyr has to be re-installed. ``` From my cursory look, previously installed `plyr` remains and it's not compatible with the new R version. I fixed accordingly and Jenkins will test it out. ``` test_sparkSQL.R:499: warning: SPARK-17811: can create DataFrame containing NA as date and time Your system is mis-configured: ���/etc/localtime��� is not a symlink ``` Seems a env problem. I suppressed the warnings for now. ``` test_sparkSQL.R:499: warning: SPARK-17811: can create DataFrame containing NA as date and time It is strongly recommended to set envionment variable TZ to ���America/Los_Angeles��� (or equivalent) ``` Seems a env problem. I suppressed the warnings for now. ``` test_sparkSQL.R:1814: error: string operators unable to find an inherited method for function ���startsWith��� for signature ���"character"��� 1: expect_true(startsWith("Hello World", "Hello")) at /home/jenkins/workspace/SparkPullRequestBuilder2/R/pkg/tests/fulltests/test_sparkSQL.R:1814 2: quasi_label(enquo(object), label) 3: eval_bare(get_expr(quo), get_env(quo)) 4: startsWith("Hello World", "Hello") 5: (function (classes, fdef, mtable) { methods <- .findInheritedMethods(classes, fdef, mtable) if (length(methods) == 1L) return(methods[[1L]]) else if (length(methods) == 0L) { cnames <- paste0("\"", vapply(classes, as.character, ""), "\"", collapse = ", ") stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdefgeneric), sQuote(cnames)), domain = NA) } else stop("Internal error in finding inherited methods; didn't return a unique method", domain = NA) })(list("character"), new("nonstandardGenericFunction", .Data = function (x, prefix) { standardGeneric("startsWith") }, generic = structure("startsWith", package = "SparkR"), package = "SparkR", group = list(), valueClass = character(0), signature = c("x", "prefix"), default = NULL, skeleton = (function (x, prefix) stop("invalid call in method dispatch to 'startsWith' (no default method)", domain = NA))(x, prefix)), <environment>) 6: stop(gettextf("unable to find an inherited method for function %s for signature %s", sQuote(fdefgeneric), sQuote(cnames)), domain = NA) ``` From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out. Also, this PR causes a CRAN check failure as below: ``` * creating vignettes ... ERROR Error: processing vignette 'sparkr-vignettes.Rmd' failed with diagnostics: package ���htmltools��� was installed by an R version with different internals; it needs to be reinstalled for use with this R version ``` This PR disables it for now. ### Why are the changes needed? To unblock other PRs. ### Does this PR introduce any user-facing change? No. Test only and dev only. ### How was this patch tested? No. I am going to use Jenkins to test. Closes#27460 from HyukjinKwon/r-test-failure. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit e2d984a) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
HyukjinKwon
commented
Feb 5, 2020
Merged to master, branch-3.0, and branch-2.4. |
@shaneknapp to summarize what happen so far:
|
HyukjinKwon
commented
Feb 5, 2020
ah cc @zero323 too. |
zero323
commented
Feb 5, 2020
Thanks for working on this @HyukjinKwon! Side question ‒ is |
shaneknapp
commented
Feb 5, 2020
yeah, upgrading i'm currently continuing playing right now and will continue to update packages i find.
sounds good. i'm testing manually on a centos worker and will update this PR when i think i've got everything.
interesting. i'll install that too.
that is definitely odd. will investigate. have i mentioned how much i hate touching R? :) |
shaneknapp
commented
Feb 5, 2020
shaneknapp
commented
Feb 5, 2020
yes, 2.0.0:
|
zero323
commented
Feb 5, 2020
I know I shouldn't ask, but is there any chance to get it up to 2.3? 2.0 is already pretty old, and considering its entanglement with tidyverse it will sooner or later block something. And it would be nice to have it synced with Windows builds. |
shaneknapp
commented
Feb 5, 2020
as evidenced by the amount of time it took me to get the build system fixed, i'd rather wait until we absolutely MUST upgrade testthat to 2.3.x. |
shaneknapp
commented
Feb 5, 2020
i mean, i'll do it, but not until next week. after the past few hours of playing dependency whack-a-mole, i think i need a stiff drink. ;) |
HyukjinKwon
commented
Feb 6, 2020
Yeah, from my experience, touching R was really painful. So I tried to make the tests pass first to decouple the tests vs env issue to earn some enough time :-). Thanks, @shaneknapp. |
shaneknapp
commented
Feb 6, 2020
and thanks @HyukjinKwon for taking care of this last night. |
HyukjinKwon
commented
Feb 6, 2020
I opened a PR enable back at #27472 |
…ncoding to DESCRIPTION ### What changes were proposed in this pull request? This PR proposes to reenable CRAN check disabled at #27460. Given the tests #27468, seems we should also port #23823 together. ### Why are the changes needed? To check CRAN back. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? It was tested at #27468 and Jenkins should test it out. Closes#27472 from HyukjinKwon/SPARK-30737. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…ncoding to DESCRIPTION ### What changes were proposed in this pull request? This PR proposes to reenable CRAN check disabled at #27460. Given the tests #27468, seems we should also port #23823 together. ### Why are the changes needed? To check CRAN back. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? It was tested at #27468 and Jenkins should test it out. Closes#27472 from HyukjinKwon/SPARK-30737. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit b95ccb1) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
…ncoding to DESCRIPTION ### What changes were proposed in this pull request? This PR proposes to reenable CRAN check disabled at #27460. Given the tests #27468, seems we should also port #23823 together. ### Why are the changes needed? To check CRAN back. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? It was tested at #27468 and Jenkins should test it out. Closes#27472 from HyukjinKwon/SPARK-30737. Authored-by: HyukjinKwon <gurwls223@apache.org> Signed-off-by: HyukjinKwon <gurwls223@apache.org> (cherry picked from commit b95ccb1) Signed-off-by: HyukjinKwon <gurwls223@apache.org>
What changes were proposed in this pull request?
There are currently the R test failures after upgrading
testthatto 2.0.0, and R version 3.5.2 as of SPARK-23435. This PR targets to fix the tests and make the tests pass. See the explanations and causes below:From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out.
From my cursory look, previously installed
plyrremains and it's not compatible with the new R version. I fixed accordingly and Jenkins will test it out.Seems a env problem. I suppressed the warnings for now.
Seems a env problem. I suppressed the warnings for now.
From my cursory look, R base and R's version are mismatched. I fixed accordingly and Jenkins will test it out.
Also, this PR causes a CRAN check failure as below:
This PR disables it for now.
Why are the changes needed?
To unblock other PRs.
Does this PR introduce any user-facing change?
No. Test only and dev only.
How was this patch tested?
No. I am going to use Jenkins to test.