← Back to Pull requests

ci: build and push quay.io images for PRs with 14-day expiry #260

Closed
unknown closed this pull request without merging on Aug 04, 2026 11:54 UTC
View on GitHub
unknown unknown commented on Jul 28, 2026 10:03 UTC
Author

Summary


  • Add pull_request trigger to the Build workflow so images are built for PRs targeting main

  • PR images are tagged as git-<short-sha> (7-char commit SHA) and carry the quay.expires-after=14d label for automatic cleanup on quay.io

  • The :main and version-tag images remain unchanged with no expiry

  • PR images include OCI labels with the source branch name, PR number, and PR URL for traceability

  • Uses github.event.pull_request.head.sha (actual commit) instead of github.sha (merge commit) for the revision label on PR builds
  • Test plan


  • Open this PR and verify the Build workflow triggers

  • Check the built image is tagged git-<sha> on quay.io

  • Inspect image labels for quay.expires-after=14d, branch name, PR number/URL

  • Verify a push to main still produces :main tag without expiry label
  • 🤖 Generated with Claude Code

    <!-- This is an auto-generated comment: release notes by coderabbit.ai -->

    Summary by CodeRabbit

    Chores
    Enabled automated container image builds for pull requests targeting the main branch, while skipping builds for fork pull requests that lack required secret access.
    Refined image tagging and metadata: pull request images now use a PR-based tag and include pull-request details in OCI labels; non-pull-request builds retain prior tagging behavior.
    Updated image inspection/validation steps to consistently reference the newly generated image tag.
    * Kept container publishing behavior unchanged for releases and main branch builds.
    <!-- end of auto-generated comment: release notes by coderabbit.ai -->

    Diff: 205 lines (+153 / -52) across 2 files Reviewer: kcagran Review duration: 10191m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.41) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.41 · 205 lines diff across 2 files
    0.41
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.319
    Shallow Review Depth shallow_review_depth
    0.289
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #260"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 41.3% (MEDIUM) · Higher = larger blast radius
    41.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 16.3% · Safe to merge
    16.3%