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

Don't show missing files if no chart was rendered #168

Merged

Conversation

divolgin
Copy link
Member

When no chart is rendered, we lint an empty set of files which results in warnings like "Missing preflight checks". We want to show those only if at least one chart was rendered successfully. Otherwise only show the rendering errors.

@divolgin divolgin added type::bug Something isn't working bug::normal labels Sep 27, 2023
@@ -62,6 +63,7 @@ func LintBuildersRelease(c *gin.Context) {
continue
}

numChartsRendered += 1
Copy link

@FourSigma FourSigma Sep 27, 2023

Choose a reason for hiding this comment

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

Style comment: Any reason for using an integer as a sentinel instead of boolean flag since we just want at least one? Is the count important?

Copy link
Member Author

Choose a reason for hiding this comment

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

Makes no difference to me

@divolgin divolgin merged commit 0b3fd43 into main Sep 27, 2023
5 checks passed
@divolgin divolgin deleted the divolgin/sc-87374/for-a-chart-rendering-error-don-t-show-any branch September 27, 2023 22:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug::normal type::bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants