fix: stamp the chart with a real version outside the release pipeline #453
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.40) × (1 − Review Confidence (0.57)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 315 lines diff across 3 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.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #453"
general
weight: 0.35
yindia
Description
Chart.yamlhas carriedversion: 0.1.0andappVersion: "v0.4.1"since the chart landed and is not bumped at release, so installing from a checkout deploys the previous release. This is still true at thev0.5.0tag:The published chart is correct because
build-helmstamps it at package time, butRELEASE_VERSIONis only ever set byscripts/build-and-publish.shand is undefined in the Makefile. Running the documented target outside that script expands to--version "" --app-version "", whichhelm packagedoes not reject. It falls back toChart.yamland quietly emits a0.1.0chart pinned tov0.4.1.So this does two things.
RELEASE_VERSIONnow defaults to theVERSIONfile, which already holds the release being cut, andChart.yamlis synced with it.Bumping
Chart.yamlon its own would fix the install path but leavemake build-helmdependent on the publish script, which is why both are here.Related Issue
Fixes #452
Type of Change
/kind bug
Testing
Source install now deploys the right image:
The publish path is unaffected, since
?=yields to the environment:helm unittest --strictpasses, 37 tests across 6 suites.helm lintclean. The bundled CRD still matchesconfig/crd/bases, soverify-chart-drift.shis unaffected.The
RELEASE.mdline is the part that stops it recurring. Step 2 already lists theVERSIONfile andreleases.mdbut notChart.yaml, which is why it never moved. Same shape as #395.Checklist
make testpassesmake lintpassesDoes this PR introduce a user-facing change?
``
release-notemake build-helmFixed the Helm chart's version and appVersion being stale, which caused installs from a source checkout to deploy the previous controller release.
now stamps the chart from the VERSION file instead of silently emitting an unversioned one.
``