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

dump_release script: additional dependencies #5

Closed
lgeistlinger opened this issue Aug 27, 2021 · 11 comments · Fixed by #6 or #8
Closed

dump_release script: additional dependencies #5

lgeistlinger opened this issue Aug 27, 2021 · 11 comments · Fixed by #6 or #8
Assignees

Comments

@lgeistlinger
Copy link
Contributor

lgeistlinger commented Aug 27, 2021

Hi @jwokaty @lwaldron

I am currently working on refactoring bugsigdbr::importBugSigDB to pull from BugSigDBExports as outlined here.

As a result bugsigdbr's dump_release.R script has gained additional dependencies such as rvest for scraping. These new dependencies are not supposed to become dependencies of bugsigdbr and are causing BugSigDBExports GHA to break.

@jwokaty can you adapt BugSigDBExport's GHA by installing rvest in the container? Just let me know if you have any questions. Many thanks!

I also think that the dump_release.R script should now actually be moved from bugsigdbr to BugSigDBExports.

@jwokaty
Copy link
Collaborator

jwokaty commented Sep 1, 2021

Should I go ahead and move dump_release.R and https://github.com/waldronlab/bugsigdbr/issues/12 to this repository?

@lgeistlinger
Copy link
Contributor Author

Yes please go ahead. Thanks!

@jwokaty jwokaty closed this as completed in #6 Sep 1, 2021
@lgeistlinger
Copy link
Contributor Author

Looks great, only thing missing is to adapt the GHA itself to run the dump_release.R script from BugSigDBExports instead of bugsigdbr.

Rscript $GITHUB_WORKSPACE/bugsigdbr/inst/scripts/dump_release.R $(date +'%F') $GITHUB_WORKSPACE/BugSigDBExports

@lgeistlinger lgeistlinger reopened this Sep 1, 2021
@jwokaty
Copy link
Collaborator

jwokaty commented Sep 1, 2021

Thank you for catching that!

@jwokaty
Copy link
Collaborator

jwokaty commented Sep 1, 2021

(These are notes for myself since I need to stop here for the day.) There's some unexpected behavior happening in the runner, which is causing it to timeout during the export and I believe might be described at https://stackoverflow.com/questions/33295686/rvest-error-in-open-connectionx-rb-timeout-was-reached. The first solution worked for one run of the github action, but not subsequent runs. (Why?) I might have to add timeout-minutes to the step. (I've been testing in my local repo: https://github.com/jwokaty/BugSigDBExports/actions.)

@lgeistlinger
Copy link
Contributor Author

Not sure whether it's at all related but we've lately struggled with timeouts at bugsigdb.org which might also cause timeouts in exporting content: waldronlab/BugSigDB#97

@lgeistlinger
Copy link
Contributor Author

It looks like this is still failing with

Fatal error: cannot open file '/__w/BugSigDBExports/BugSigDBExports/bugsigdbr/inst/scripts/dump_release.R': No such file or directory

Can we trigger a GHA once fixed so that files get exported on the repo. Would be great as I would need that for testing some more of bugsigdbr pulling the files from BugSigDBExports. Thanks!

@lgeistlinger
Copy link
Contributor Author

@jwokaty
Copy link
Collaborator

jwokaty commented Sep 4, 2021

What's run there isn't the current the yaml file where the path is corrected. This is the current file: https://github.com/waldronlab/BugSigDBExports/blob/main/.github/workflows/export-bugsigdb.yml. I was confused when I saw the notification earlier. My only explanation here is that the same failed run was rerun (in which case the yaml isn't updated; it is whatever it was at the time it was originally run). I want to wait until tomorrow when it should run to see if it is correct. If it is still not correct at that time, I will address it. (I was able to successfully run it in my repo, but I was still perplexed when I saw the notification!)

@jwokaty
Copy link
Collaborator

jwokaty commented Sep 4, 2021

Do you want me to add code so that you can manually trigger an export?

@lgeistlinger
Copy link
Contributor Author

lgeistlinger commented Sep 4, 2021

Ah I see - rerunning the job takes the repo at the state when the job was carried out first. If there is an export tomorrow, then that’s perfectly fine for my purposes. Many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants