feat(image-updater): publish one bundle per release command (AROSLSRE-2927) #8328
All Vouch review confidence checks passed
Residual risk 0.21 = Change Risk (0.40) × (1 − Review Confidence (0.47)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 289 lines diff across 3 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 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
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.339
Real PR Conversation Timeline
1 comments
"Review active on #8328"
general
weight: 0.35
redhat-chai-bot
Jira: AROSLSRE-2927
What
Adds
image-updater release, which publishes one bundle end to end:1. reset the checkout to
--base-commitand remove untracked digest outputs and helm fixtures, so a previous bundle cannot leave state behind;2. resolve only the bundle's components (configuration filtered by the bundle's groups);
3. run the render targets (
make yamlfmt,make update-helm-fixtures,make -C config materialize);4. validate the change set against the digest path allowlist;
5. render the pull request body and publish on
bot/image-updater-<bundle>with a bundle marker, title and commit message;6. write
image-updater-<bundle>.htmland.jsonunder--artifact-dir.Defaults derive from the bundle, and
--token-file/--dry-runfollow the existingpublishconventions.The command takes git, updater, renderer and publisher as interfaces, so the flow is unit-tested without Prow; the updater and GitHub credential construction are shared with
update/publishinstead of duplicated, and artifact replacement moved into the summary package for both commands.Why
The bundle split needs orchestration that can be tested and reasoned about. Keeping it in Bash produced four review defects in a row (
yq --arg, environment scoping,|| failfall-through, leaked untracked outputs); each is a language-level trap that Go removes. One invocation per bundle also matches the intended deployment: one ProwJob per bundle, with its own status, retry and log.Testing
go test -C tooling/image-updater ./...config/tracked.yaml, an untrackedconfig/leftover.yamland a modified tracked file; after reset the leftover is gone and the tracked content is restored.release --help, and--bundle nopefails withbundle "nope" is not configured.