Skip to content

[Generated by SRE Agent] ci: emit Azure Linux base image version in build summary - #1780

Merged
suyadav1 merged 3 commits into
ci_prodfrom
sre-agent/emit-azurelinux-version
Sep 12, 2026
Merged

[Generated by SRE Agent] ci: emit Azure Linux base image version in build summary#1780
suyadav1 merged 3 commits into
ci_prodfrom
sre-agent/emit-azurelinux-version

Conversation

@azure-monitor-assistant

Copy link
Copy Markdown
Contributor

Summary

After the Linux image is built and pulled on ci_prod builds, extract the resolved Azure Linux version from /etc/os-release and 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 exec into a running pod on a cluster that has the image deployed
  • Searching through thousands of lines of Docker build logs

This change makes the version visible directly in the ADO build summary alongside the existing image tag warning, making release notes updates straightforward.

What changed

  • Added 3 lines after docker pull in the ci_prod build path (.pipelines/azure_pipeline_mergedbranches.yaml)
  • Runs cat /etc/os-release on the just-pulled image to extract VERSION=
  • Sets AZURELINUX_VERSION as a pipeline variable
  • Emits it as a ##vso[task.logissue type=warning] so it appears in the build summary

Created by Azure SRE Agent: Open thread

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-monitor-assistant
azure-monitor-assistant Bot requested a review from a team as a code owner September 10, 2026 18:20
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@suyadav1

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
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

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
2 pipeline(s) were filtered out due to trigger conditions.

@suyadav1
suyadav1 merged commit 445fb86 into ci_prod Sep 12, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant