-
Notifications
You must be signed in to change notification settings - Fork 130
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
validate: Clarify output messages #441
Conversation
Distinguishes between schema validation and internal consistency (e.g. data) checks and includes filenames in top-level messages so the subject is clear. Resolves #440.
c7421dd
to
a2ab713
Compare
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.
Much improved 👍
Note that during augur export v2
, if the call to verifyMainJSONIsInternallyConsistent
raises an error, which it can, then we print "Validation of ... failed ..." but the dataset file still remains and the augur command still exits with code 0
. This is different from a call to augur validate export-v2
which will return a non-zero exit code. Not sure what's best practice here.
This can happen both because of inconsistent data/config provided by the user or bugs in Augur. In either case, the exported JSON is likely not good and `augur validate v2` would exit with an error code too.
Ah, yeah, thanks for noting that. I was focused on |
…y object Allows the validation function to know the name of the file for messaging.
@tsibley , sorry for the delay! Thanks for tackling this - it has irked me occasionally that these messages weren't very clear at all, so I think this is a good improvement. It generally looks good to me! |
Distinguishes between schema validation and internal consistency (e.g.
data) checks and includes filenames in top-level messages so the subject
is clear.
Resolves #440.