Skip to content
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

Tests and vignettes failures #8

Closed
maelle opened this issue Dec 14, 2021 · 15 comments
Closed

Tests and vignettes failures #8

maelle opened this issue Dec 14, 2021 · 15 comments

Comments

@maelle
Copy link
Member

maelle commented Dec 14, 2021

👋 @jdeck88!

I was looking at this repo because of the docs building failure https://github.com/r-universe/ropensci/runs/4512022947?check_suite_focus=true

  • The vignette fails with the error in the log above.
  • Some tests also fail.

I see this repo used to be tested on Travis CI which we no longer recommend https://ropensci.org/blog/2020/11/19/moving-away-travis/ You can explore GitHub Actions, cf usethis support https://usethis.r-lib.org/reference/github_actions.html and r-lib examples https://github.com/r-lib/actions#readme

As your package wraps a web API I can also suggest skimming through https://books.ropensci.org/http-testing/

Happy to help if needed!

@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 6, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 6, 2022

Cool! However there is still an error on https://github.com/r-universe/ropensci/runs/4730373763?check_suite_focus=true

Writing 'articles/index.html'
Reading 'vignettes/rppo-vignette.Rmd'
-- RMarkdown error -------------------------------------------------------------
sending request for terms ...
No encoding supplied: defaulting to UTF-8.
sending request for data ...
plantphenology.org/api/v3/download/_search?q=%2Bgenus:Quercus+AND+%2BtermID:"obo:PPO_0002313"+AND+%2Byear:>=2013+AND+%2Byear:<=2013+AND+%2BdayOfYear:>=100+AND+%2BdayOfYear:<=110+AND+source:USA-NPN&source=latitude,longitude,year,dayOfYear,termID&limit=10
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Exiting with failure status due to previous errors
Quitting from lines 40-43 (rppo-vignette.Rmd) 
Error in file(file, "rt") : cannot open the connection
In addition: Warning messages:
1: In untar(tf, exdir = "./ppo_download") :
  '/bin/tar -xf '/tmp/RtmpwSEKHa/file2af16a73aba' -C './ppo_download'' returned error code 2
2: In file(file, "rt") :
  cannot open file 'ppo_download/data.csv': No such file or directory
--------------------------------------------------------------------------------
Error : Failed to render RMarkdown

If you can't reproduce this locally I can have a closer look this week or next.

@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 7, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 10, 2022

👋 @jdeck88!

You have a folder called ppo_download/ in .gitignore. If it needs to remain so (as opposed to "just" being in .Rbuildignore) then you should

@maelle
Copy link
Member Author

maelle commented Jan 25, 2022

👋 @jdeck88 Friendly reminder 😸

@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 28, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 31, 2022

See https://github.com/r-universe/ropensci/runs/4982345166?check_suite_focus=true, as ppo_downloads is listed in .gitignore that folder is present on your machine but not in the GitHub repo which creates the failure

 Quitting from lines 40-43 (rppo-vignette.Rmd) 
Error in file(file, "rt") : cannot open the connection
In addition: Warning messages:
1: In untar(tf, exdir = "./ppo_download") :
  '/bin/tar -xf '/tmp/RtmpuUCQlp/file2da7ca3f1ad' -C './ppo_download'' returned error code 2
2: In file(file, "rt") :
  cannot open file 'ppo_download/data.csv': No such file or directory

@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 31, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 31, 2022

Right but the folder does not have the csv that the vignette needs?

Maybe the vignette should be pre-computed? https://ropensci.org/blog/2019/12/08/precompute-vignettes/

Sorry if I'm missing something.

@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 31, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 31, 2022

I haven't tried anything again locally, I've just noticed the failure on the dashboard, the log can be found at https://github.com/r-universe/ropensci/runs/4982345166?check_suite_focus=true

Is r-universe/ropensci@0fbb8e7 the latest commit? I think so?

@maelle
Copy link
Member Author

maelle commented Jan 31, 2022

the error is

 plantphenology.org/api/v3/download/_search?q=%2Bgenus:Quercus+AND+%2BtermID:"obo:PPO_0002313"+AND+%2Byear:>=2013+AND+%2Byear:<=2013+AND+%2BdayOfYear:>=100+AND+%2BdayOfYear:<=110+AND+source:USA-NPN&source=latitude,longitude,year,dayOfYear,termID&limit=10
/bin/tar: This does not look like a tar archive
/bin/tar: Skipping to next header
/bin/tar: Exiting with failure status due to previous errors

@maelle maelle mentioned this issue Jan 31, 2022
@jdeck88
Copy link
Collaborator

jdeck88 commented Jan 31, 2022 via email

@maelle
Copy link
Member Author

maelle commented Jan 31, 2022

Thanks!

For reference the dashboard is at https://ropensci.r-universe.dev/ui#builds

It will have an updated build within one hour or so. I'll look at it again tomorrow but you can look earlier if you want.

We're making good progress, thanks for your work on this, looking forward to seeing green icons 😁

@maelle
Copy link
Member Author

maelle commented Feb 1, 2022

All green! 🎉 👏

@maelle maelle closed this as completed Feb 1, 2022
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

No branches or pull requests

2 participants