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

ybd doesnt respect current schemas #195

Closed
jjardon opened this issue Mar 14, 2016 · 7 comments
Closed

ybd doesnt respect current schemas #195

jjardon opened this issue Mar 14, 2016 · 7 comments

Comments

@jjardon
Copy link
Contributor

jjardon commented Mar 14, 2016

I've changed DEFAULTS to add a new build step and ybd seems to ignore it and keep building without errors

looking to the log:

16-03-14 00:00:00 [0/0/0] [DEFINITIONS] WARNING: Unexpected error loading ./schemas/cluster.json-schema
16-03-14 00:00:00 [0/0/0] [DEFINITIONS] WARNING: Unexpected error loading ./schemas/chunk.json-schema
16-03-14 00:00:00 [0/0/0] [DEFINITIONS] WARNING: Unexpected error loading ./schemas/system.json-schema
16-03-14 00:00:00 [0/0/0] [DEFINITIONS] WARNING: Unexpected error loading ./schemas/defaults.json-schema
16-03-14 00:00:00 [0/0/0] [DEFINITIONS] WARNING: Unexpected error loading ./schemas/stratum.json-schema

@devcurmudgeon
Copy link
Owner

I think you mean "ybd doesnt respect current DEFAULTS" rather than schemas? I'll take a look

@jjardon
Copy link
Contributor Author

jjardon commented Mar 14, 2016

It respect DEFAULTS, but if the change in DEFAULTS is a change of the current schema (as its when I'm adding a new build step), ybd seems to ignore it

@devcurmudgeon
Copy link
Owner

Should be "fixed" by 646ada1 but this led to a lot of deeper discussion on irc at https://irclogs.baserock.org/%23baserock.2016-03-14.log.html#t2016-03-14T13:44:42

@devcurmudgeon
Copy link
Owner

So unless I'm misunderstanding, there's no magical way to respond to a commit such as https://gitlab.com/jjardon/baserock-definitions/commit/af6151eae706d12c881be7ab28eeb5625ec72814 without separately defining what the whole set is. My 'fix' puts that information into ybd's own fallback defaults.conf, but i'd prefer to see the steps added to DEFAULTS

@jjardon
Copy link
Contributor Author

jjardon commented Mar 15, 2016

As a reference, morph fails with this error message:

ERROR: Invalid DEFAULTS file: Additional properties are not allowed ('bootstrap-commands' was unexpected)

@devcurmudgeon
Copy link
Owner

Yes... i still think that the list of *-commands itself should be in DEFAULTS. Every time I suggest it, the discussion heads into deep water, eg this time, about schemas.

@devcurmudgeon
Copy link
Owner

closing this... the ongoing discussion about what should be in DEFAULTS is not a ybd issue

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

No branches or pull requests

2 participants