Help with Travis error #434

Closed
randyzwitch opened this Issue Mar 30, 2016 · 2 comments

Comments

Projects
None yet
2 participants
@randyzwitch

Not even sure how this is possible...running same code using testthat I pass locally but fail on Travis.

I was getting time outs at 10 minutes, so I broke up my tests into separate files; I use the filter option for my tests, such as the following (which causes the error on Travis)

library(testthat)
test_check("RSiteCatalyst", filter = "summary")

Travis (fails)

Checking with: R CMD check RSiteCatalyst_1.4.7.20160325.tar.gz --as-cran
777.74s$ R CMD check "${PKG_TARBALL}" --as-cran; CHECK_RET=$?
* using log directory/home/travis/build/randyzwitch/RSiteCatalyst/RSiteCatalyst.Rcheck* using R version 3.2.4 Revised (2016-03-16 r70338)
* using platform: x86_64-pc-linux-gnu (64-bit)
* using session charset: UTF-8
* using option--as-cran* checking for fileRSiteCatalyst/DESCRIPTION... OK
* checking extension type ... Package
* this is packageRSiteCatalystversion1.4.7.20160325* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether packageRSiteCatalystcan be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking loading without being on the library search path ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking for unstated dependencies intests... OK
* checking tests ...
  Runningtestthat-build.RRunningtestthat-get.R’ [4s/275s]
  Runningtestthat-queuefallout.R’ [1s/49s]
  Runningtestthat-queueovertime.R’ [2s/189s]
  Runningtestthat-queuepathing.R’ [2s/43s]
  Runningtestthat-queueranked.R’ [2s/192s]
  Runningtestthat-queuesummary.RERROR
Running the tests intests/testthat-queuesummary.Rfailed.
Last 13 lines of output:
  'citation()' on how to cite R or R packages in publications.

  Type 'demo()' for some demos, 'help()' for on-line help, or
  'help.start()' for an HTML browser interface to help.
  Type 'q()' to quit R.

  > library(testthat)
  > test_check("RSiteCatalyst", filter = "summary")
  Loading required package: RSiteCatalyst
  Error in test_files(paths, reporter = reporter, env = env, ...) : 
    No matching test file in dir
  Calls: test_check ... run_tests -> with_top_env -> test_dir -> test_files
  Execution halted
* checking PDF version of manual ... OK
* DONE
Status: 1 ERROR
See/home/travis/build/randyzwitch/RSiteCatalyst/RSiteCatalyst.Rcheck/00check.logfor details.
0.14schecking tests ... ERROR
Running the tests intests/testthat-queuesummary.Rfailed.
Last 13 lines of output:
  'citation()' on how to cite R or R packages in publications.

  Type 'demo()' for some demos, 'help()' for on-line help, or
  'help.start()' for an HTML browser interface to help.
  Type 'q()' to quit R.

  > library(testthat)
  > test_check("RSiteCatalyst", filter = "summary")
  Loading required package: RSiteCatalyst
  Error in test_files(paths, reporter = reporter, env = env, ...) : 
    No matching test file in dir
  Calls: test_check ... run_tests -> with_top_env -> test_dir -> test_files
  Execution halted DONE
Status: 1 ERROR 

Local, OSX:

==> devtools::check()

Updating RSiteCatalyst documentation
Loading RSiteCatalyst
Setting env vars ---------------------------------------------------------------
CFLAGS  : -Wall -pedantic
CXXFLAGS: -Wall -pedantic
Building RSiteCatalyst ---------------------------------------------------------
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore CMD build '/Users/randyzwitch/RSiteCatalyst'  \
  --no-resave-data --no-manual 

* checking for file/Users/randyzwitch/RSiteCatalyst/DESCRIPTION... OK
* preparingRSiteCatalyst:
* checking DESCRIPTION meta-information ... OK
* checking for LF line-endings in source and make files
* checking for empty or unneeded directories
* buildingRSiteCatalyst_1.4.7.20160325.tar.gzSetting env vars ---------------------------------------------------------------
_R_CHECK_CRAN_INCOMING_ : FALSE
_R_CHECK_FORCE_SUGGESTS_: FALSE
Checking RSiteCatalyst ---------------------------------------------------------
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ  \
  --no-save --no-restore CMD check  \
  '/var/folders/52/wl2rr05s3xgd8jy28j0_7bhm0000gn/T//RtmpcAcdP1/RSiteCatalyst_1.4.7.20160325.tar.gz'  \
  --as-cran --run-donttest --timings 

* using log directory/Users/randyzwitch/RSiteCatalyst.Rcheck* using R version 3.2.4 (2016-03-10)
* using platform: x86_64-apple-darwin13.4.0 (64-bit)
* using session charset: UTF-8
* using options--run-donttest --as-cran* checking for fileRSiteCatalyst/DESCRIPTION... OK
* checking extension type ... Package
* this is packageRSiteCatalystversion1.4.7.20160325* checking package namespace information ... OK
* checking package dependencies ... OK
* checking if this is a source package ... OK
* checking if there is a namespace ... OK
* checking for executable files ... OK
* checking for hidden files and directories ... OK
* checking for portable file names ... OK
* checking for sufficient/correct file permissions ... OK
* checking whether packageRSiteCatalystcan be installed ... OK
* checking installed package size ... OK
* checking package directory ... OK
* checking DESCRIPTION meta-information ... OK
* checking top-level files ... OK
* checking for left-over files ... OK
* checking index information ... OK
* checking package subdirectories ... OK
* checking R files for non-ASCII characters ... OK
* checking R files for syntax errors ... OK
* checking whether the package can be loaded ... OK
* checking whether the package can be loaded with stated dependencies ... OK
* checking whether the package can be unloaded cleanly ... OK
* checking whether the namespace can be loaded with stated dependencies ... OK
* checking whether the namespace can be unloaded cleanly ... OK
* checking dependencies in R code ... OK
* checking S3 generic/method consistency ... OK
* checking replacement functions ... OK
* checking foreign function calls ... OK
* checking R code for possible problems ... OK
* checking Rd files ... OK
* checking Rd metadata ... OK
* checking Rd line widths ... OK
* checking Rd cross-references ... OK
* checking for missing documentation entries ... OK
* checking for code/documentation mismatches ... OK
* checking Rd \usage sections ... OK
* checking Rd contents ... OK
* checking for unstated dependencies in examples ... OK
* checking examples ... OK
* checking for unstated dependencies intests... OK
* checking tests ...
  Runningtestthat-build.RRunningtestthat-get.R’ [4s/291s]
  Runningtestthat-queuefallout.R’ [1s/65s]
  Runningtestthat-queueovertime.R’ [3s/215s]
  Runningtestthat-queuepathing.R’ [1s/63s]
  Runningtestthat-queueranked.R’ [3s/193s]
  Runningtestthat-queuesummary.R’ [1s/111s]
  Runningtestthat-queuetrended.R’ [12s/309s]
  Runningtestthat-save.ROK
* checking PDF version of manual ... [2s/166s]
 OK
* DONE
Status: OK



R CMD check succeeded

I realize this falls into a gray area of where the bug might actually be, but any help is appreciated.

@randyzwitch randyzwitch referenced this issue in randyzwitch/RSiteCatalyst Mar 30, 2016

Closed

Fix failing tests/Update dates #160

@jimhester

This comment has been minimized.

Show comment
Hide comment
@jimhester

jimhester Apr 1, 2016

Member

Your filter is for summary but your file is called test-QueueSummary.R.

OS X has a case insensitive filesystem, but linux is case sensitive so the filter does not find any files.

Member

jimhester commented Apr 1, 2016

Your filter is for summary but your file is called test-QueueSummary.R.

OS X has a case insensitive filesystem, but linux is case sensitive so the filter does not find any files.

@randyzwitch

This comment has been minimized.

Show comment
Hide comment
@randyzwitch

randyzwitch Apr 1, 2016

Thank you so much. Of all the things I considered, I wouldn't have thought about case sensitivity.

Thank you so much. Of all the things I considered, I wouldn't have thought about case sensitivity.

@randyzwitch randyzwitch closed this Apr 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment