-
Notifications
You must be signed in to change notification settings - Fork 12
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 the yml file #53
Comments
This is a great idea. I think a more general validation would be useful as well. We should check every field and verify that it has a reasonable value (i.e. files exist, has a proper enumeration value), we could set certain fields as required or mutually exclusive. As I think about this, the best place to run it would be as early as possible. So, that would be on the login node on Eagle, on the local machine on AWS, and before spinning off docker containers for the the local docker version. I know @rHorsey is interested in this too. |
I've got a version of it working in the far-behind commercial branch that we froze for LA100, although FYI I don't really plan to merge that back in so much as cherry pick features manually. You can validate ASAP to reduce the need for obnoxious manual checks and I was using a pretty basic library called yamale - see an example schema for eagle. I'm happy to implement this in a couple weeks on a feature branch off of master. |
That's certainly possible to do, but I think that might need capabilities outside of yamale; worthwhile regardless. |
Yeah, I think a schema validation would be a good start. Thanks for the library recommendation. However, we're going to want to validate with some more application specific logic as well. |
@rHorsey This issue keeps coming up as something we'll need probably sooner than later. I know you have some prior work on this that we should at least reference. Will you be able to get to this or should I have someone else take it on? |
@nmerket Yep - probably later this week, maybe Friday. |
Can we meet for a few minutes about this? I'd like to discuss the different levels of validation we'd like and map it out. |
@rHorsey @joseph-robertson I just sent you a meeting invite to discuss how we're going to tackle this. If anyone else is interested in contributing to that design discussion, let me know and I'll add you to the invite. |
#68 is a good start. Ry will get it ready to merge 7/2. Then for the rest of the features below we will create our own branches from that stub. To Do List:
|
Also adding yaml version - starting with 0.1 - no patches a la docker. |
I think we're substantially done here. |
Should we "validate" the yml file before starting compute nodes? As part of the sampling portion? This could potentially identify "sync" issues between your yml file and your checkout of OpenStudio-BuildStock.
Things we can check for:
timeseries_csv_export
arguments)@nmerket @ekpresent
The text was updated successfully, but these errors were encountered: