← Back to Pull requests

Hold container images to their latest digest (quality kit 2.1.0) #16

Closed
unknown closed this pull request without merging on Nov 23, 2026 13:03 UTC
View on GitHub
unknown unknown commented on Nov 23, 2026 12:47 UTC
Author

What this changes

The pin rule gains container images, so kicad/kicad, which boards and brand run their KiCad jobs in, stays at its newest stable release and is pinned by digest.

  • LATEST_IMAGES in check_quality.py: kicad/kicad 10.0.8, sha256:3f4a01786dfbe803a65f345c3342b765db9add913f5e9448f8356793714ddc34 (the digest Docker Hub's tag list gives for 10.0.8, confirmed against the registry's Docker-Content-Digest). A workflow image: (job container: or service) or container: shorthand of a known image must be name@sha256:<digest> # <tag>. A tag alone, a digest with no tag, and the newest tag with another digest are findings no waiver clears. An older tag is held like any other pin (below-latest: and a waiver, what = "image:<name>:<tag>").

  • latest_releases.py reads each known image's newest stable x.y.z tag on Docker Hub and its digest. The weekly 📦 Pinned versions current job turns red on a new image and on the same tag pushed again.

  • Why not Dependabot: its docker ecosystem fetches Dockerfiles and YAML files only when they look like Kubernetes resources (apiVersion and kind, docker/lib/dependabot/shared/shared_file_fetcher.rb in dependabot-core), so it never reads a workflow's container:.

  • MINOR 2.1.0: kleidos-dev/brand#17 and kleidos-dev/boards#17 pin the 10.0.8 digest, and they merge before this does. No other repository runs a known image.
  • After the merge: tag quality-v2.1.0 at the merge commit, then sync brand and boards to it.

    How it was tested

    No hardware.

  • test_pins.py covers the clean digest form in both spellings, tag only, a digest with no tag, the newest tag with another digest, an older tag with its reason and waiver, unknown and templated images left alone, and the weekly report on a newer tag and on a tag pushed again.

  • 170 kit tests pass, as do ruff, ruff format, mypy, sync.py --check . and the pre-commit hooks. latest_releases.py runs clean against the live registries today.

  • sync.py --preview reports 0 problems on both consumer branches, and on brand's current main the one tag-only pin.
  • Checklist

  • The documentation is updated in the same change, or none was needed.

  • Everything is in English, and commit messages are in the imperative mood.

  • I contribute this under the license of this repository (CONTRIBUTING.md).
  • Diff: 306 lines (+229 / -77) across 3 files Reviewer: jmrplens Review duration: 16m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 306 lines diff across 3 files
    0.40
    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.343
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #16"
    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: 40.2% (MEDIUM) · Higher = larger blast radius
    40.2%
    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: 15.9% · Safe to merge
    15.9%