-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
WIP: Validate file and services #1355
Conversation
Nice. I think this is a good approach. Looking forward to seeing more. |
@aanand @bfirsh @dnephin i know this is a big commit including various changes that makes it hard to review. feel free to request what can make that easier. here are some useful resources concerning the used library: the paradigm of the validation is to be as non-blocking as possible. only errors in a configuration-file as a whole detected by a in order to achieve that i applied two strategies:
btw, that restructuring makes the diff-view on one thing i don't like is that some values can be i haven't yet investigated the failing test. atm it seems strange as the validation code doesn't change values (it even operates with copies). beside lacking an output of the aggregated errors for now, there are some TODOs and FIXMEs annotated. some with question marks that are a proposal and no necessary change. one last remark, a coercing-functionality cerberus was recently added, but isn't customizable yet. |
Thanks! I'm going to take a proper look at this later, but:
It definitely happens in the real world: I haven't looked at the new code yet, but as I understand it, the current logic is that we check to see if there's a service called FOO, and if not, assume it's a container name. That means it can still fail at container creation time, but I think that's OK? |
not sure if there's misunderstanding, it's not about names, but about service- and container-objects (e.g. tested in @GordonTheTurtle nah, my rebase was just fucked up. |
Thanks for the contribution! As you know this was implemented in #1808 |
just to keep that clear: the scope of this pr was much broader than #1808. i'll see that i write an elaborated memo on what's missing imo when i have the capacities for it. |
This is an alternate approach to #1348 in order to solve #129
still failing due to a missing exception, hackish,quiet some TODOs, but it's time for GOT now.