Report hard lint failures even when another chart only warns - #944
Open
michaellzc wants to merge 1 commit into
Open
michaellzc wants to merge 1 commit into
michaellzc wants to merge 1 commit into
Conversation
lint_and_record kept the first non-zero status it saw. A warning returns 255, and the Buildkite lint step soft-fails on exit 255, so a warning in an earlier chart downgraded a genuine lint failure in a later chart into a soft fail and the build went green. Track warnings and hard failures separately so severity, not order, decides the exit status: any chart that fails to lint exits with that status, warnings alone still exit 255, and a chart that both warns and fails is reported as a failure. Add a per-chart summary so every chart's outcome is visible in the CI log. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PjWHybsdqCvNqGoYDRCdah
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on top of #930 — targets
marc/fix-ci-lint-script, so the diff here is only the follow-up fix.lint_and_recordkept the first non-zero status it saw. A warning returns 255, and the Buildkite lint step soft-fails on exit 255 (.buildkite/pipeline.yaml), so a warning in an earlier chart downgraded a genuine lint failure in a later chart into a soft fail and the build went green. Now that the script lints all four charts instead of stopping at the first, that masking is reachable.This tracks warnings and hard failures separately so severity — not order — decides the exit status:
Lint Summaryis printed so every chart's outcome is visible in the logChecklist
CI-only change, no chart templates or values touched, so no changelog or update-doc entry.
Test plan
Real run against all four charts with helm 3.16.3 — exits 0:
Failure modes exercised with a stub
helmon$PATHthat emits warnings / errors per chart:255→ soft fail, build green1→ build fails11255→ soft fail255→ soft fail255→ soft fail1→ build fails00Summary output for the first (previously masked) case:
bash -n scripts/ci/lint.shpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01PjWHybsdqCvNqGoYDRCdah
Generated by Claude Code