[Generated by SRE Agent] ci: emit Azure Linux base image version in build summary - #1780
Merged
Merged
Conversation
After the Linux image is built and pulled, extract the resolved Azure Linux version from /etc/os-release and surface it as a pipeline warning in the build summary. This makes it easy to find the exact base image version for release notes without needing to kubectl exec into a running container or search through thousands of lines of build logs. Assisted-by: Azure SRE Agent
|
Azure Pipelines: There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
The warning log alone is sufficient for reading the Azure Linux version during release notes updates. No downstream pipeline step consumes the AZURELINUX_VERSION variable, so remove it. Assisted-by: Azure SRE Agent
suyadav1
approved these changes
Sep 11, 2026
Contributor
|
/azp run |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. |
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.
Summary
After the Linux image is built and pulled on ci_prod builds, extract the resolved Azure Linux version from
/etc/os-releaseand surface it in the build summary as a pipeline warning.Why
The Azure Linux base image uses a floating tag (
mcr.microsoft.com/azurelinux/base/core:3.0), so its exact version can only be determined from the built container. Today, finding it requires either:kubectl execinto a running pod on a cluster that has the image deployedThis change makes the version visible directly in the ADO build summary alongside the existing image tag warning, making release notes updates straightforward.
What changed
docker pullin the ci_prod build path (.pipelines/azure_pipeline_mergedbranches.yaml)cat /etc/os-releaseon the just-pulled image to extractVERSION=AZURELINUX_VERSIONas a pipeline variable##vso[task.logissue type=warning]so it appears in the build summaryCreated by Azure SRE Agent: Open thread