You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Noted unexpected failures when verifying the default EVR and Limit files in
latest AIT Core. Zero useful error messages reported to help narrow issue down.
Snippet from logs:
2024-01-05T13:44:42.271 | PROGRAM | ait-core/bin/ait-yaml-validate --evr
2024-01-05T13:44:42.278 | INFO | Validating: AIT-Core/config/evr.yaml
2024-01-05T13:44:42.281 | ERROR | Validation: FAILED: yml=AIT-Core/config/evr.yaml, schema=AIT-Core/ait/core/data/evr_schema.json
2024-01-05T13:44:42.282 | PROGRAM | done.
The text was updated successfully, but these errors were encountered:
Update base Validator.content_val to return a proper default value.
Validation that doesn't include a custom `content_val` implementation
relies on this default implementation during validation checks. By
default, that includes EVR and Limit dictionary checks. The current
implementation incorrect returns a garbage value (None) for the default
implementation.
Documentation of the default `content_val` method has been updated to
elaborate on why it's making the current check and what a more thorough
implementation looks like.
Tangentially related, error handling around schema validation was a bit
lacking. This also includes minor updates around the `schema_val` checks
in `Validator` to better handle and log exceptions related to that.
Additionally, validation is short circuited if failures occur there to
avoid confusing error messages in unrelated `content_val` checks.
Noted unexpected failures when verifying the default EVR and Limit files in
latest AIT Core. Zero useful error messages reported to help narrow issue down.
Snippet from logs:
The text was updated successfully, but these errors were encountered: