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

Stop validation on critical loading errors #775

Merged
merged 1 commit into from
Apr 19, 2021

Conversation

mtdowling
Copy link
Member

We previously would continue to perform more granular semantic model
validation even after an ERROR was encountered while loading the model.
If an ERROR is encountered while loading a model, then it is very likely
that it can cause a flurry of unrelated validation events to emit errors
that would only obscure the root cause of the issue.

This commit updates model validation to stop if an ERROR occurred while
loading models, if a model has broken shape references, if a shape
target targets an invalid shape, or if a resource hierarchy is
recursive. This update required various "kitchen-sink" style tests to be
updated to account for the new validation behavior.

Closes #743

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

We previously would continue to perform more granular semantic model
validation even after an ERROR was encountered while loading the model.
If an ERROR is encountered while loading a model, then it is very likely
that it can cause a flurry of unrelated validation events to emit errors
that would only obscure the root cause of the issue.

This commit updates model validation to stop if an ERROR occurred while
loading models, if a model has broken shape references, if a shape
target targets an invalid shape, or if a resource hierarchy is
recursive. This update required various "kitchen-sink" style tests to be
updated to account for the new validation behavior.

Closes #743
@mtdowling mtdowling force-pushed the stop-on-critical-validation-errors branch from 7ca1ecb to abcb699 Compare April 18, 2021 21:40
@mtdowling mtdowling merged commit e3cd1c1 into main Apr 19, 2021
@mtdowling mtdowling deleted the stop-on-critical-validation-errors branch April 21, 2021 05:00
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.

Misleading error message from incomplete model
2 participants