Repository navigation
ci(quality-gate): report a non-blocking stage's finding as WARN - #1051
Merged
Merged
Conversation
Trim analysis printed FAIL on every run though it never blocks, and so did the vulnerability scan for an advisory the change didn't bring. A FAIL that doesn't fail teaches people to skim past FAIL lines. A non-blocking stage's finding now reads WARN, in the output and in report.json. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tr00d
marked this pull request as ready for review
December 3, 2026 07:36
This was referenced Dec 3, 2026
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.
Step 7 of the quality gate review, 1 of 3.
Trim analysis printed
FAILon every run, though it never blocks. So did the vulnerability scan for an advisory the change didn't bring, and Format under--bypass-format. A FAIL that doesn't fail teaches people to skim past FAIL lines.Changes
add()inlib/report.sh: a non-blocking stage that finds something is recorded asWARN, printed in yellow. The same status goes toreport.json. A blocking stage still fails withFAIL, including the vulnerability scan when the change brings the advisory. The verdict and exit code don't change, because they only read blocking stages.smoke-test-trim-warning,vuln-shipped-existingandvuln-test-onlyexpectWARN.format-signal, because--bypass-formatmakes Format non-blocking.vuln-shipped-introducedandvuln-fixture-suppression-ignoredstill expectFAIL.sdk-quality-gateskill say whatWARNmeans.Nothing outside the gate reads
report.jsonstatuses.Verification
run-fixtures.sh: 57/57.compare-baselines: 12/12.compare-coverage: 7/7.identify-changes: 18/18.mark-api: 5/5.gate.sh packageslocally, E2E included:GATE: PASS, withWARN 12 trim warning(s) in the packages.🤖 Generated with Claude Code