fix(ci): stamp unique Ev2 buildver.txt per build to prevent chart freeze#1704
Merged
Merged
Conversation
The Arc-extension Helm chart published to MCR froze at 3.3.0 even after
Chart.yaml was bumped to 3.4.0. Ev2 Managed-SDP rollouts read their
artifacts version from a static checked-in buildver.txt (RolloutSpec.json
versionFile). Because the value never changed, Ev2 deduped registration
("already registered ... skipping artifacts registration") and kept rolling
out the stale bundle; Stage_1 pushChartToAcr.sh packages straight from the
frozen Chart.yaml, so the published chart version stayed 3.3.0.
Mirror Azure/prometheus-collector: write $(Build.BuildNumber) into each
service group's buildver.txt in the setup task (before the deployment
CopyFiles), forcing fresh Ev2 artifact registration on every build.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
suyadav1
approved these changes
Jun 2, 2026
Contributor
Author
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
rashmichandrashekar
approved these changes
Jun 2, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The Arc-extension Helm chart published to MCR (
oci://mcr.microsoft.com/azuremonitor/containerinsights/prod1/stable/azuremonitor-containers) froze at 3.3.0 even aftercharts/azuremonitor-containerinsights/Chart.yamlwas bumped to 3.4.0 (#1699).Root cause: the Ev2 Managed-SDP rollouts read their artifacts version from a static, checked-in
buildver.txt(referenced asversionFilein eachRolloutSpec.json). Because that value never changed (1.0.0.1for the chart-push group), Ev2 deduplicated artifact registration — logging "already registered … skipping artifacts registration" — and kept rolling out the stale bundle that was first registered back in mid-May. Stage_1 (pushChartToAcr.sh→helm packagewith no--version) publishes whateverChart.yamlversion is inside that frozen bundle, so the published chart stayed at 3.3.0.Fix
Mirror how
Azure/prometheus-collector(ama-metrics) handles this: dynamically write$(Build.BuildNumber)into every service group'sbuildver.txtduring thesetuptask of the build pipeline (def 444), before the deployment artifacts are copied to staging. A unique version every build forces Ev2 to register fresh artifacts, so the currentChart.yamlversion actually ships.Service groups stamped:
mergebranch-multiarch-agent-deploymentmergebranch-multiarch-agent-deployment-Managed-SDParc-k8s-extensionarc-k8s-extension-Managed-SDP← the frozen chart-push grouparc-k8s-extension-release-v2arc-k8s-extension-release-v2-Managed-SDPbuildver.txtlives outsideartifacts.tar.gzand is copied separately by theCopyFiles@2step, so stamping it in the setup task (after the tar steps) is correct.Notes / rollout
ci_prodbuild of def 444 → re-run the prod-release pipeline Stage_1 (ci-arc-k8s-extension-all-regions-prod-release(MCR)) → approve → verifyhelm pull … --version 3.4.0from MCR (allow MCR mirror lag). Do not run Stage_2+ (they aretrigger: manual).Build.BuildNumberdefaults toYYYYMMDD.r(e.g.20260602.3), which is numerically greater than the old1.0.0.xlabels, so there is no version-regression risk for Ev2.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com