-
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
[WIP][SPARK-23435][SPARKR][TESTS] Update testthat to >= 2.0.0 #27328
Conversation
Test build #117261 has finished for PR 27328 at commit
|
cc @felixcheung |
If it works, we should install the latest |
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.
@zero323, thanks for putting your efforts here. As long as the tests and CRAN check pass, it should be good to go.
Hmmm... So it looks like it actually yields some additional errors on Windows.
Especially the last two are worrying. I'll investigate once I put my hands on some Windows environment. |
Test build #117325 has finished for PR 27328 at commit
|
Test build #117328 has finished for PR 27328 at commit
|
Test build #117330 has finished for PR 27328 at commit
|
I've checked some of the failures, and it is pretty clear that these tests must have been silenced somehow.
Let's see what else surfaces downstream. |
Test build #117332 has finished for PR 27328 at commit
|
Signed-off-by: zero323 <[email protected]>
It seems like the lines input is not recognized as a valid JSON when used on Windows CP1252. It is not clear for me why I didn't fail before, as I can reproduce this issue outside tests.
Test build #117355 has finished for PR 27328 at commit
|
Test build #117358 has finished for PR 27328 at commit
|
Test build #117359 has finished for PR 27328 at commit
|
Test build #117367 has finished for PR 27328 at commit
|
NOOOOOOOOOOOO!!!!!!!!11111one i really don't want to touch the extremely fragile R "ecosystem" unless i have to. but, this looks like i probably should... :( i'll experiment w/upgrading we also might need to backport this change for the 2.4 branch if it causes those builds to fail. created a sub-task in jira for this: https://issues.apache.org/jira/browse/SPARK-30637 |
welp, uninstalling 1.0.2 and reinstalling 2.0.0 on my staging worker went smoothly... which makes me nervous lol. :)
|
Test build #117371 has finished for PR 27328 at commit
|
Test build #117374 has finished for PR 27328 at commit
|
Test build #117376 has finished for PR 27328 at commit
|
If you don't mind me asking ‒ have you thought about moving R environments to ananconda. If I recall correctly some discussions on dev, you we're pretty enthusiastic about using it with Python. |
@shaneknapp, I know what's like (#27328 (comment)) .. lol .. this has been the pain in the ass in the dev env because nowadays many R libraries have a higher version of |
### What changes were proposed in this pull request? - Update `testthat` to >= 2.0.0 - Replace of `testthat:::run_tests` with `testthat:::test_package_dir` - Add trivial assertions for tests, without any expectations, to avoid skipping. - Update related docs. ### Why are the changes needed? `testthat` version has been frozen by [SPARK-22817](https://issues.apache.org/jira/browse/SPARK-22817) / #20003, but 1.0.2 is pretty old, and we shouldn't keep things in this state forever. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? - Existing CI pipeline: - Windows build on AppVeyor, R 3.6.2, testthtat 2.3.1 - Linux build on Jenkins, R 3.1.x, testthat 1.0.2 - Additional builds with thesthat 2.3.1 using [sparkr-build-sandbox](https://github.com/zero323/sparkr-build-sandbox) on c7ed64a R 3.4.4 (image digest ec9032f8cf98) ``` docker pull zero323/sparkr-build-sandbox:3.4.4 docker run zero323/sparkr-build-sandbox:3.4.4 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` 3.5.3 (image digest 0b1759ee4d1d) ``` docker pull zero323/sparkr-build-sandbox:3.5.3 docker run zero323/sparkr-build-sandbox:3.5.3 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` and 3.6.2 (image digest 6594c8ceb72f) ``` docker pull zero323/sparkr-build-sandbox:3.6.2 docker run zero323/sparkr-build-sandbox:3.6.2 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ```` Corresponding [asciicast](https://asciinema.org/) are available as 10.5281/zenodo.3629431 [](https://doi.org/10.5281/zenodo.3629431) (a bit to large to burden asciinema.org, but can run locally via `asciinema play`). ---------------------------- Continued from #27328 Closes #27359 from zero323/SPARK-23435. Authored-by: zero323 <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
- Update `testthat` to >= 2.0.0 - Replace of `testthat:::run_tests` with `testthat:::test_package_dir` - Add trivial assertions for tests, without any expectations, to avoid skipping. - Update related docs. `testthat` version has been frozen by [SPARK-22817](https://issues.apache.org/jira/browse/SPARK-22817) / apache#20003, but 1.0.2 is pretty old, and we shouldn't keep things in this state forever. No. - Existing CI pipeline: - Windows build on AppVeyor, R 3.6.2, testthtat 2.3.1 - Linux build on Jenkins, R 3.1.x, testthat 1.0.2 - Additional builds with thesthat 2.3.1 using [sparkr-build-sandbox](https://github.com/zero323/sparkr-build-sandbox) on c7ed64a R 3.4.4 (image digest ec9032f8cf98) ``` docker pull zero323/sparkr-build-sandbox:3.4.4 docker run zero323/sparkr-build-sandbox:3.4.4 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` 3.5.3 (image digest 0b1759ee4d1d) ``` docker pull zero323/sparkr-build-sandbox:3.5.3 docker run zero323/sparkr-build-sandbox:3.5.3 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` and 3.6.2 (image digest 6594c8ceb72f) ``` docker pull zero323/sparkr-build-sandbox:3.6.2 docker run zero323/sparkr-build-sandbox:3.6.2 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ```` Corresponding [asciicast](https://asciinema.org/) are available as 10.5281/zenodo.3629431 [](https://doi.org/10.5281/zenodo.3629431) (a bit to large to burden asciinema.org, but can run locally via `asciinema play`). ---------------------------- Continued from apache#27328 Closes apache#27359 from zero323/SPARK-23435. Authored-by: zero323 <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
### What changes were proposed in this pull request? This PR backports #27359: - Update `testthat` to >= 2.0.0 - Replace of `testthat:::run_tests` with `testthat:::test_package_dir` - Add trivial assertions for tests, without any expectations, to avoid skipping. - Update related docs. ### Why are the changes needed? `testthat` version has been frozen by [SPARK-22817](https://issues.apache.org/jira/browse/SPARK-22817) / #20003, but 1.0.2 is pretty old, and we shouldn't keep things in this state forever. ### Does this PR introduce any user-facing change? No. ### How was this patch tested? - Existing CI pipeline: - Windows build on AppVeyor, R 3.6.2, testthtat 2.3.1 - Linux build on Jenkins, R 3.1.x, testthat 1.0.2 - Additional builds with thesthat 2.3.1 using [sparkr-build-sandbox](https://github.com/zero323/sparkr-build-sandbox) on c7ed64a R 3.4.4 (image digest ec9032f8cf98) ``` docker pull zero323/sparkr-build-sandbox:3.4.4 docker run zero323/sparkr-build-sandbox:3.4.4 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` 3.5.3 (image digest 0b1759ee4d1d) ``` docker pull zero323/sparkr-build-sandbox:3.5.3 docker run zero323/sparkr-build-sandbox:3.5.3 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ``` and 3.6.2 (image digest 6594c8ceb72f) ``` docker pull zero323/sparkr-build-sandbox:3.6.2 docker run zero323/sparkr-build-sandbox:3.6.2 zero323 --branch SPARK-23435 --commit c7ed64a --public-key https://keybase.io/zero323/pgp_keys.asc ```` Corresponding [asciicast](https://asciinema.org/) are available as 10.5281/zenodo.3629431 [](https://doi.org/10.5281/zenodo.3629431) (a bit to large to burden asciinema.org, but can run locally via `asciinema play`). ---------------------------- Continued from #27328 Closes #27379 from HyukjinKwon/testthat-2.0. Authored-by: zero323 <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
i just tried moving to anaconda and it doesn't seem to support versions high enough of many of the packages that we require (for example, testthat is 1.0.7 or something IIRC). |
2.3.1 is available from forge, and if nothing changed, the remaining ones are as well. I should have working environment files stashed somewhere, if that helps, but there probably in some place I won't be able to access for a week or two. |
a week of two is fine, and i'm more than happy to play w/an environment
file and see if that works.
…On Fri, Feb 28, 2020 at 12:46 PM Maciej ***@***.***> wrote:
@shaneknapp <https://github.com/shaneknapp>
i just tried moving to anaconda and it doesn't seem to support versions
high enough of many of the packages that we require (for example, testthat
is 1.0.7 or something IIRC).
2.3.1 is available <https://github.com/conda-forge/r-testthat-feedstock>
from forge, and if nothing changed, the remaining ones are as well. I
should have working environment files stashed somewhere, if that helps, but
there probably in some place I won't be able to access for a week or two.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#27328?email_source=notifications&email_token=AAMIHLFM2YJV2U6PBNNOTHTRFFZ2HA5CNFSM4KKOGNIKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENKDGWA#issuecomment-592720728>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMIHLEYO4EBWKDDS7HVIGTRFFZ2HANCNFSM4KKOGNIA>
.
|
actually, it seems that i've gotten the R suite of these are on ubuntu 18.04LTS dev workers, but i'm about to release them to the general ubuntu worker pool and reimage the old ubuntu 16 workers w/18. YAY! |
What changes were proposed in this pull request?
testthat
to >= 2.0.0testthat:::run_tests
withtestthat:::test_package_dir
Why are the changes needed?
testthat
version has been frozen by SPARK-22817 / #20003, but 1.0.2 is pretty old, and we shouldn't keep things in this state forever.Does this PR introduce any user-facing change?
No.
How was this patch tested?
Existing tests.
Note
This change leads to
in
test_utils
cleanClosure
test, which requires further investigation.CC @HyukjinKwon