You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Coverage is computed in the after_success() step, failures are not reported. The tests seem to run fine, but not from covr. This is also the reason why coverage reports aren't uploaded. Can you try covr::package_coverage() locally? You can also run the tic steps locally with e.g. tic::after_success().
I managed to create a minimal reproducible example here. The following lines are crucial:
test_that("styler like works", {
dir<- tempfile("styler")
dir.create(dir)
path_temp<- file.path(dir, "repeated_parsing-in.R")
path_perm<-rprojroot::find_testthat_root_file("parsing", "repeated_parsing-in.R")
file.copy(path_perm, dir)
# identical paths, but only path_out workspath_out<-styler:::construct_out(path_perm)
path_out2<-rprojroot::find_testthat_root_file("parsing", "repeated_parsing-out.R")
identical(path_out, path_out2)
#> TRUEref<-enc::read_lines_enc(path_out2) # does not work with path_outresult<-enc::read_lines_enc(path_temp)
unlink(dir)
})
Creation of the path with styler:::construct_out() is identical with rprojroot::find_testthat_root_file() but covr does not give the same results. Maybe worthwhile an issue in r-lib/covr?
Ok, covr fixed for now. Reason why it did not work still unclear to me. @jonmcalder any interest in fixing the note introduced with #233? Afterwards, we should change tic so that a note leads to a failing built.
Activity
krlmlr commentedon Nov 3, 2017
We also need to fix the NOTE: https://travis-ci.org/r-lib/styler/jobs/296269960#L1673
Coverage is computed in the
after_success()step, failures are not reported. The tests seem to run fine, but not from covr. This is also the reason why coverage reports aren't uploaded. Can you trycovr::package_coverage()locally? You can also run the tic steps locally with e.g.tic::after_success().lorenzwalthert commentedon Nov 3, 2017
Right, the note...
But
tic::after_success()does not run successfully from what I see.https://travis-ci.org/r-lib/styler/jobs/296269960#L1748
I think the styling via the command line does fail in
tic::after_success(), but the very same code does not fail withtic::script().I get the same error with
covrlocally.This is the offending code, namely
enc::read_lines_enc(construct_out(path_perm))krlmlr commentedon Nov 3, 2017
What happens if you extract a variable from
construct_out(path_perm)?lorenzwalthert commentedon Nov 3, 2017
like
?
krlmlr commentedon Nov 3, 2017
Yes.
lorenzwalthert commentedon Nov 3, 2017
It gives the same error.
krlmlr commentedon Nov 3, 2017
Can we just skip the test if covr is running? No idea why it would succeed when running manually but not in covr.
lorenzwalthert commentedon Nov 5, 2017
I managed to create a minimal reproducible example here. The following lines are crucial:
Creation of the path with
styler:::construct_out()is identical withrprojroot::find_testthat_root_file()butcovrdoes not give the same results. Maybe worthwhile an issue in r-lib/covr?lorenzwalthert commentedon Nov 7, 2017
Ok, covr fixed for now. Reason why it did not work still unclear to me. @jonmcalder any interest in fixing the note introduced with #233? Afterwards, we should change
ticso that a note leads to a failing built.lorenzwalthert commentedon Nov 7, 2017
Reference: r-lib/covr#290
get rid of unexported function call from knitr. r-lib#272.
5 remaining items
rmdcheck notes are errors. Closes r-lib#272.
get rid of unexported function call from knitr. r-lib#272.
rmdcheck notes are errors. Closes r-lib#272.
lorenzwalthert commentedon Nov 8, 2017
@krlmlr we don't get appveyor builds anymore. Any idea why?
krlmlr commentedon Nov 8, 2017
@hadley: I guess we need to manually move styler to the r-lib org on AppVeyor. Happy to, but not sure if I have the relevant permissions.
hadley commentedon Nov 8, 2017
Appveyor works really poorly with organisations
krlmlr commentedon Nov 8, 2017
Yes, it didn't pick up the rename of rstats-db to r-dbi either. Added a new login "r-lib" for the organization, invited the r-lib team as AppVeyor administrators, and added the styler project as https://ci.appveyor.com/project/r-lib/styler. We should see there if pushes trigger builds.
lorenzwalthert commentedon Nov 10, 2017
Ok, thanks @krlmlr. But I don't get why the build shows passing if it actually fails (like this one). What's missing?
krlmlr commentedon Nov 12, 2017
Looking into it, currently blocked by appveyor/ci#1929.
lorenzwalthert commentedon Nov 16, 2017
Now also the travis build fails, although code was not changed, i.e. I just pushed "bump2" to trigger another CI run.
lorenzwalthert commentedon Nov 16, 2017
Ok, now it seems to work again with travis, no idea why...
Merge branch 'master' into f-#272-appveyor-failures
Merge branch 'b-#272-appveyor', closes #272