test(recipe): read Percona pins from values in remediation image test #3190
All Vouch review confidence checks passed
Residual risk 0.19 = Change Risk (0.48) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.48 · 531 lines diff across 6 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.376
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3190"
general
weight: 0.35
lalitadithya
Summary
TestRemediationImagesPinnedEverywherenow reads the Percona image pins fromrecipes/components/{psmdb-operator,nvsentinel-mongodb}/values.yamlinstead of a hardcoded map. A Renovate bump to those values files alone now fails at PR time.Motivation / Context
The test checked the hand-maintained copies of the Percona pins (
tools/mirror-e2e, the render test, the vuln-scan matrix, the BOM doc) against a hardcoded map. Nothing compared that map with the values files. #3184 bumped pmm-client innvsentinel-mongodb/values.yamlonly, and it passed PR CI. The drift showed up only in the advisory Mirror E2E and in the live render test, whichmake testskips under-short. #3189 fixed main forward.Fixes: N/A
Related: #3184, #3189
Type of Change
Component(s) Affected
cmd/aicr,pkg/cli)cmd/aicrd,pkg/server)pkg/recipe)pkg/bundler,pkg/component)pkg/collector,pkg/snapshotter)pkg/validator)pkg/errors,pkg/k8s)docs/,examples/)Implementation Notes
repository(joined to itstag) and any string under animagekey. A pin added to either file later is covered without editing the test.- a file with no image references;
- an image with no tag, or a tag that isn't a string;
- the same repository pinned at two different tags. The operator image appears in both files.
remediationThirdPartyImagesmap is gone, which removes one more copy to keep in sync. The comment invuln-scan-images.yamlthat says this test catches drift from the values pins is now accurate.testsuntil someone updatestools/mirror-e2e, the render test'sperconaImages, the vuln-scan include tag, and runsmake bom-docs. Each failure names the file and theimage:tagit expected.Testing
TestRemediationImagesPinnedEverywhere, the new table-drivenTestSplitImageRefandTestNVSentinelMongoDBContractpass.go test -short -race ./pkg/recipepasses, and golangci-lint reports 0 issues.nvsentinel-mongodb/values.yamlleaves the old test passing.- Each of the seven digest-pinned references across both files (operator,
initImage, mongod, exporter sidecar, PBM, fluent-bit, PMM), changed on its own in the values file, makes the test fail.- Bumping the operator in one file only reports the conflict and names both files.
- Removing a tag reports
has no string tag.Risk Assessment
Rollout notes: N/A
Checklist
make testwith-race)make lint)git commit -s -S) — GPG signing info