Skip to content

Skip quality gate scoring for unchanged images#47

Open
mrdavidlaing wants to merge 1 commit into
mainfrom
skip-quality-gate-for-unchanged-images
Open

Skip quality gate scoring for unchanged images#47
mrdavidlaing wants to merge 1 commit into
mainfrom
skip-quality-gate-for-unchanged-images

Conversation

@mrdavidlaing

Copy link
Copy Markdown
Contributor

Summary

  • Quality gate now detects when an image wasn't rebuilt for the PR's SHA (no component tag found) and skips scoring instead of failing
  • All downstream steps (SBOM extraction, scoring, baseline comparison, artifact upload) are gated behind the skip check
  • Report job works unchanged — skipped images simply don't appear in the PR comment table

Context

Pairs with the planned "skip unchanged images on PR builds" work. Once the build workflow stops rebuilding unchanged images, the quality gate will automatically skip scoring them too. Flake changes still trigger all builds, so all images get scored in that case.

Test plan

  • Verify quality gate still scores all images on a normal PR (no change to current behavior)
  • Once "skip unchanged builds" is implemented, verify skipped images don't appear in quality gate report

🤖 Generated with Claude Code

When resolve-component-tag finds no tag for the PR's SHA, the image
wasn't rebuilt by the build workflow. Instead of failing, set skip=true
and bypass all scoring, baseline comparison, and artifact upload steps
for that matrix entry. The report job naturally handles the reduced set
of score files.

This pairs with the planned "skip unchanged images on PR builds" work —
once the build workflow stops rebuilding unchanged images, the quality
gate will automatically skip scoring them too.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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