Revert the unpack bump and check out the release branch for the source SBOM #4657
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
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
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
saschagrunert
<!-- Thanks for sending a pull request! Here are some tips for you:
https://git.k8s.io/community/contributors/devel/sig-release/release.md#issuepr-kind-label
-->
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:
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>, orFixes (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=trueto 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").