Skip to content

Conversation

@felixcheung
Copy link
Member

@felixcheung felixcheung commented Jun 10, 2017

What changes were proposed in this pull request?

Move all existing tests to non-installed directory so that it will never run by installing SparkR package

For a follow-up PR:

  • remove all skip_on_cran() calls in tests
  • clean up test timer
  • improve or change basic tests that do run on CRAN (if anyone has suggestion)

It looks like R CMD build pkg will still put pkg\tests (ie. the full tests) into the source package but R CMD INSTALL on such source package does not install these tests (and so R CMD check does not run them)

How was this patch tested?

  • unit tests, Jenkins
  • AppVeyor
  • make a source package, install it, R CMD check it - verify the full tests are not installed or run

@SparkQA
Copy link

SparkQA commented Jun 10, 2017

Test build #77884 has finished for PR 18264 at commit fffd8ed.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@felixcheung
Copy link
Member Author

everything passed, verified all tests are run on Jenkins/AppVeyor
will merge tonight

@felixcheung
Copy link
Member Author

felixcheung commented Jun 11, 2017

separate issue:
I found that removing the vignettes directory causes a NOTE with R CMD check and vignettes cannot be found when the package is loaded. so I guess back to square one

* checking for old-style vignette sources ... NOTE
Vignette sources only in ‘inst/doc’:
  ‘sparkr-vignettes.Rmd’
A ‘vignettes’ directory is required as from R 3.1.0
and these will not be indexed nor checked
> vignette(package="SparkR")
no vignettes found

though I see that in the policy we could request to skip building vignettes
https://cran.r-project.org/web/packages/policies.html
"If the package needs special treatment (for example if vignettes can only be run or re-built on the maintainer’s machine or take a very long time), say so on the submission form."

@felixcheung
Copy link
Member Author

merged to master/2.2

asfgit pushed a commit that referenced this pull request Jun 11, 2017
## What changes were proposed in this pull request?

Move all existing tests to non-installed directory so that it will never run by installing SparkR package

For a follow-up PR:
- remove all skip_on_cran() calls in tests
- clean up test timer
- improve or change basic tests that do run on CRAN (if anyone has suggestion)

It looks like `R CMD build pkg` will still put pkg\tests (ie. the full tests) into the source package but `R CMD INSTALL` on such source package does not install these tests (and so `R CMD check` does not run them)

## How was this patch tested?

- [x] unit tests, Jenkins
- [x] AppVeyor
- [x] make a source package, install it, `R CMD check` it - verify the full tests are not installed or run

Author: Felix Cheung <[email protected]>

Closes #18264 from felixcheung/rtestset.

(cherry picked from commit dc4c351)
Signed-off-by: Felix Cheung <[email protected]>
@asfgit asfgit closed this in dc4c351 Jun 11, 2017
asfgit pushed a commit that referenced this pull request Jun 13, 2017
## What changes were proposed in this pull request?

Fix test file path. This is broken in #18264 and undetected since R-only changes don't build core and subsequent post-commit with the change built fine (again because it wasn't building core)

actually appveyor builds everything but it's not running scala suites ...

## How was this patch tested?

jenkins
srowen gatorsmile

Author: Felix Cheung <[email protected]>

Closes #18283 from felixcheung/rsubmitsuite.

(cherry picked from commit 278ba7a)
Signed-off-by: Felix Cheung <[email protected]>
asfgit pushed a commit that referenced this pull request Jun 13, 2017
## What changes were proposed in this pull request?

Fix test file path. This is broken in #18264 and undetected since R-only changes don't build core and subsequent post-commit with the change built fine (again because it wasn't building core)

actually appveyor builds everything but it's not running scala suites ...

## How was this patch tested?

jenkins
srowen gatorsmile

Author: Felix Cheung <[email protected]>

Closes #18283 from felixcheung/rsubmitsuite.
dataknocker pushed a commit to dataknocker/spark that referenced this pull request Jun 16, 2017
## What changes were proposed in this pull request?

Move all existing tests to non-installed directory so that it will never run by installing SparkR package

For a follow-up PR:
- remove all skip_on_cran() calls in tests
- clean up test timer
- improve or change basic tests that do run on CRAN (if anyone has suggestion)

It looks like `R CMD build pkg` will still put pkg\tests (ie. the full tests) into the source package but `R CMD INSTALL` on such source package does not install these tests (and so `R CMD check` does not run them)

## How was this patch tested?

- [x] unit tests, Jenkins
- [x] AppVeyor
- [x] make a source package, install it, `R CMD check` it - verify the full tests are not installed or run

Author: Felix Cheung <[email protected]>

Closes apache#18264 from felixcheung/rtestset.
dataknocker pushed a commit to dataknocker/spark that referenced this pull request Jun 16, 2017
## What changes were proposed in this pull request?

Fix test file path. This is broken in apache#18264 and undetected since R-only changes don't build core and subsequent post-commit with the change built fine (again because it wasn't building core)

actually appveyor builds everything but it's not running scala suites ...

## How was this patch tested?

jenkins
srowen gatorsmile

Author: Felix Cheung <[email protected]>

Closes apache#18283 from felixcheung/rsubmitsuite.
felixcheung added a commit to felixcheung/spark that referenced this pull request Sep 9, 2017
## What changes were proposed in this pull request?

Fix test file path. This is broken in apache#18264 and undetected since R-only changes don't build core and subsequent post-commit with the change built fine (again because it wasn't building core)

actually appveyor builds everything but it's not running scala suites ...

## How was this patch tested?

jenkins
srowen gatorsmile

Author: Felix Cheung <[email protected]>

Closes apache#18283 from felixcheung/rsubmitsuite.

(cherry picked from commit 278ba7a)
Signed-off-by: Felix Cheung <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants