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

core - validate - report errors per file #8565

Merged

Conversation

ajkerrigan
Copy link
Member

@ajkerrigan ajkerrigan commented May 15, 2023

If we run custodian validate on multiple files, it loops over those files and builds up a list of errors as it goes. It behaves like a snowball though - once an error shows up it gets reported for that file and every one after it.

This change makes running something like custodian validate *.y*ml friendlier by not polluting a file's validation status with errors from earlier files.

I think this behavior is something folks (including myself) have just gotten used to, but #8548 prompted me to see it with fresh eyes.

@ajkerrigan ajkerrigan requested a review from kapilt as a code owner May 15, 2023 13:58
@ajkerrigan ajkerrigan changed the title core - report validation errors per file core - validate - report errors per file May 17, 2023
Copy link
Collaborator

@kapilt kapilt left a comment

Choose a reason for hiding this comment

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

lgtm

@kapilt kapilt merged commit f6de6b4 into cloud-custodian:main May 18, 2023
21 checks passed
@ajkerrigan ajkerrigan deleted the core/individual-validation-results branch May 18, 2023 12:22
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.

None yet

2 participants