← Back to Pull requests

Revert the unpack bump and check out the release branch for the source SBOM #4657

Closed
unknown closed this pull request without merging on Dec 04, 2026 06:07 UTC
View on GitHub
unknown unknown commented on Dec 03, 2026 21:15 UTC
Author

<!-- Thanks for sending a pull request! Here are some tips for you:

  • If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide#your-first-contribution and developer guide https://git.k8s.io/community/contributors/devel/development.md#development-guide

  • Please label this pull request according to what type of issue you are addressing, especially if this is a release targeted pull request. For reference on required PR/issue labels, read here:

  • https://git.k8s.io/community/contributors/devel/sig-release/release.md#issuepr-kind-label
  • If you want faster PR reviews, read how: https://git.k8s.io/community/contributors/guide/pull-requests.md#best-practices-for-faster-reviews

  • If the PR is unfinished, see how to mark it: https://git.k8s.io/community/contributors/guide/pull-requests.md#marking-unfinished-pull-requests

  • -->

    What type of PR is this?

    /kind bug
    <!--
    Add one of the following kinds:
    /kind bug
    /kind cleanup
    /kind documentation
    /kind feature
    /kind design

    Optionally add one or more of the following kinds if applicable:
    /kind api-change
    /kind deprecation
    /kind failing-test
    /kind flake
    /kind regression
    -->

    What this PR does / why we need it:

    The unpack bump in #4656 fixed the "tag not found in history" failure of the v1.38.0-rc.0 mock stage, but the next run failed writing the artifacts SBOM:

    rendering pkg registry.k8s.io/conformance-amd64:v1.38.0-rc.0: computing verification code: unable to render package, files were analyzed but some do not have sha1 checksums
    


    Newer unpack versions record the Go binaries they find in an image as files with only a SHA-256 checksum, while bom v0.8.0 requires a SHA-1 on every file of a package.

    This PR:
    - Reverts #4656, taking unpack back to v0.3.2.
    - Checks out the release branch before generating the source SBOM. On a branch cut the newest tag is only on the release branch, while the changelog generation leaves master checked out. With the release branch checked out, the tag is in the history of HEAD, and the source SBOM describes the release commit.

    Which issue(s) this PR fixes:

    N/A

    <!--
    *Automatically closes linked issue when PR is merged.
    Usage: Fixes #<issue number>, or Fixes (paste link of issue).

    Fixes #

    or

    None
    -->

    Special notes for your reviewer:

    Not yet verified with a full mock stage. unpack can be bumped again once bom handles the files it reports for images.

    Stage jobs download the latest krel release, so this needs a krel release or FORCE_BUILD_KREL=true to take effect.

    Does this PR introduce a user-facing change?

    <!--
    If no, just write "NONE" in the release-note block below.
    If yes, a release note is required:
    Enter your extended release note in the block below. If the PR requires additional action from users switching to the new release, include the string "action required".

    For more information on release notes see: https://git.k8s.io/community/contributors/guide/release-notes.md
    -->

    ``release-note
    Fixed krel stage failing on a branch cut while generating the source SBOM ("tag not found in history") or writing the artifacts SBOM ("some do not have sha1 checksums").
    ``

    Diff: 400 lines (+300 / -100) across 5 files Reviewer: saschagrunert Review duration: 531m
    All Vouch review confidence checks passed
    Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.45 · 400 lines diff across 5 files
    0.45
    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.359
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #4657"
    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: 44.7% (MEDIUM) · Higher = larger blast radius
    44.7%
    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: 17.7% · Safe to merge
    17.7%