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

Skip validating unused manifest fields in spin build #913

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

itowlson
Copy link
Contributor

Fixes #473.

The approach taken here is that we don't care if other parts of the manifest are valid, as long as we have the info we need to do the build. In terms of the original issue, the build won't fail because you have a missing field in your trigger. The downside of this is that it results in some duplication of the parts of the manifest schema.

An alternative approach would be to keep the existing loader but just improve the error reporting around manifest load failures. Despite the duplication, I prefer skipping validation, because if I'm in coding flow I don't want to have to take time out to fix some random other field. But happy to have that discussion.

Signed-off-by: itowlson ivan.towlson@fermyon.com

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson force-pushed the build-less-stroppy-about-validation branch from f0585ff to 3eb23f3 Compare November 22, 2022 01:41
Copy link
Contributor

@dicej dicej left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The duplication is annoying, but not egregious.

@itowlson
Copy link
Contributor Author

Will accept any review with the word 'egregious' in it. Thanks!

@itowlson itowlson merged commit 1ef3131 into fermyon:main Nov 28, 2022
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

Successfully merging this pull request may close these issues.

spin build trigger validation messages are not explained
2 participants