-
Notifications
You must be signed in to change notification settings - Fork 31
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
add an optional test to make sure full validate produce is run when l… #685
Conversation
…ocal files allow it to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sierra-moxon This looks like a good set of ease-of-use and separation changes. I'm fine with this being merged as-is.
One thing that I might be interested in, from past experience, would be a README somewhere that explains how to update the metadata (and the rationale for making things static), in case things change enough to warrant updates.
@sierra-moxon I'm getting these errors when attempting
|
@sierra-moxon Actually, these tests are running in poetry since I see this at the top of the output:
Guessing it's because I have both a Line 52 in 97f3bab
I'll keep debugging these errors... |
Hi @dustine32 - thank you so much for testing the You can configure the slow test datasets in I have not been able to recreate the snapshot pipeline error that we found in this ticket with this branch: #689 (I believe it was taken care of in a previous PR -- the solution was/is to GPI files before and after the isoform check). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @sierra-moxon! The make travis_test_full
now passes (btw took about 5min for me).
The first iteration of this PR had methods to download, store, use, and then clean up metadata from the go-site repo during the test execution, but it involved a lot of file wrangling that ended up being overly complicated and hard to maintain. I decided to just copy over the basic metadata into the resources/metadata directories in this PR and use it statically. This lets me run the full 'validate.produce' command as an automated test.
It also adds the download and maintenance of go-basic.obo as a pytest fixture. Since this is just one file, and since it gets it from snapshot that can sometimes be unavailable, it felt like a worthwhile resource to grab and maintain dynamically.
Finally, it adds some logic to implementations that use poetry so that this test gets executed locally
(e.g. I will run it always by default locally) but doesn't run as part of CI (because it takes quite a bit of time to run). There are other tests that execute parts and pieces of the validate.produce command, but there are several cases I want to test that require the full step here to run (e.g. does the final GAF produced have isoforms as subjects or not).
This all just saves me from forgetting to run this full test of the
validate.produce
command manually as underlying routines change.