Skip to content

ci(quality-gate): report a non-blocking stage's finding as WARN - #1051

Merged
Tr00d merged 1 commit into
masterfrom
ci/gate-warn-non-blocking
Dec 3, 2026
Merged

Tr00d merged 1 commit into
masterfrom
ci/gate-warn-non-blocking

Conversation

@Tr00d

@Tr00d Tr00d commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Step 7 of the quality gate review, 1 of 3.

Trim analysis printed FAIL on 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() in lib/report.sh: a non-blocking stage that finds something is recorded as WARN, printed in yellow. The same status goes to report.json. A blocking stage still fails with FAIL, including the vulnerability scan when the change brings the advisory. The verdict and exit code don't change, because they only read blocking stages.
  • Fixtures:
    • smoke-test-trim-warning, vuln-shipped-existing and vuln-test-only expect WARN.
    • So does format-signal, because --bypass-format makes Format non-blocking.
    • vuln-shipped-introduced and vuln-fixture-suppression-ignored still expect FAIL.
  • Docs: the gate README and the sdk-quality-gate skill say what WARN means.

Nothing outside the gate reads report.json statuses.

Verification

  • run-fixtures.sh: 57/57. compare-baselines: 12/12. compare-coverage: 7/7. identify-changes: 18/18. mark-api: 5/5.
  • gate.sh packages locally, E2E included: GATE: PASS, with WARN 12 trim warning(s) in the packages.

🤖 Generated with Claude Code

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
Tr00d marked this pull request as ready for review December 3, 2026 07:36
@Tr00d
Tr00d merged commit ead61a7 into master Dec 3, 2026
11 checks passed
@Tr00d
Tr00d deleted the ci/gate-warn-non-blocking branch December 3, 2026 07:37
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.

1 participant