Skip to content

Update source-build to Azure-Linux-3-Amd64 image#16456

Merged
mmitche merged 2 commits intomainfrom
copilot/update-source-build-image
Jan 16, 2026
Merged

Update source-build to Azure-Linux-3-Amd64 image#16456
mmitche merged 2 commits intomainfrom
copilot/update-source-build-image

Conversation

Copy link
Contributor

Copilot AI commented Jan 16, 2026

Source-build jobs in internal 1ES pipelines fail because 1es-azurelinux-3 lacks the Azure CLI, required for federated authentication via AzureCLI@2 task.

Changes

  • Updated eng/common/core-templates/job/source-build.yml to use Azure-Linux-3-Amd64 image instead of 1es-azurelinux-3 for internal 1ES pipeline pools

The new image includes Azure CLI pre-installed, resolving authentication failures in source-build workflows.

To double check:

Original prompt

This section details on the original issue you should resolve

<issue_title>Source build managed jobs failing with missing 'az' cli</issue_title>
<issue_description>Repo source build jobs are failing. The 1es azure-linux 3 image doesn't have the necessary az cli installed by default which is required to do an internal build.</issue_description>

Comments on the Issue (you are @copilot in this section)

@lbussell Dupe of https://github.com/dotnet/dnceng/issues/6029 @mmitche Okay, the source-build.yml's should be updated to use the new pool image.

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

…-Amd64

Co-authored-by: mmitche <8725170+mmitche@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix source build managed jobs failing due to missing 'az' cli Update source-build to Azure-Linux-3-Amd64 image Jan 16, 2026
Copilot AI requested a review from mmitche January 16, 2026 01:21
@mmitche mmitche marked this pull request as ready for review January 16, 2026 16:44
@mmitche mmitche requested a review from a team as a code owner January 16, 2026 16:44
@mmitche
Copy link
Member

mmitche commented Jan 16, 2026

/backport to release/9.0

@mmitche
Copy link
Member

mmitche commented Jan 16, 2026

/backport to release/10.0

@github-actions
Copy link
Contributor

Started backporting to release/9.0 (link to workflow run)

@mmitche
Copy link
Member

mmitche commented Jan 16, 2026

/backport to release/8.0

@github-actions
Copy link
Contributor

Started backporting to release/10.0 (link to workflow run)

@github-actions
Copy link
Contributor

Started backporting to release/8.0 (link to workflow run)

@github-actions
Copy link
Contributor

@mmitche backporting to release/10.0 failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Creating an empty commit: Initial plan
Applying: Update source-build pool image from 1es-azurelinux-3 to Azure-Linux-3-Amd64
Using index info to reconstruct a base tree...
M	eng/common/core-templates/job/source-build.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/common/core-templates/job/source-build.yml
CONFLICT (content): Merge conflict in eng/common/core-templates/job/source-build.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Update source-build pool image from 1es-azurelinux-3 to Azure-Linux-3-Amd64
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions
Copy link
Contributor

@mmitche backporting to release/8.0 failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Creating an empty commit: Initial plan
Applying: Update source-build pool image from 1es-azurelinux-3 to Azure-Linux-3-Amd64
Using index info to reconstruct a base tree...
A	eng/common/core-templates/job/source-build.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/common/templates-official/job/source-build.yml
CONFLICT (content): Merge conflict in eng/common/templates-official/job/source-build.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0002 Update source-build pool image from 1es-azurelinux-3 to Azure-Linux-3-Amd64
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@MichaelSimons
Copy link
Member

@mmitche - Just so you are aware, the way the templates are defined is broken for the 1ES internal scenario because the SB specified container is being ignored - see dotnet/source-build#5463. While this change fixes the particular repos that are broken, there is a risk we will see future differences because the SB specified container is being ignored. See dotnet/source-build#5463 for more details.

That all said, I don't see a high ROI in investing/improving this beyond your fix.

@mmitche mmitche merged commit bb62070 into main Jan 16, 2026
9 checks passed
@mmitche mmitche deleted the copilot/update-source-build-image branch January 16, 2026 21:45
@mmitche
Copy link
Member

mmitche commented Jan 16, 2026

@mmitche - Just so you are aware, the way the templates are defined is broken for the 1ES internal scenario because the SB specified container is being ignored - see dotnet/source-build#5463. While this change fixes the particular repos that are broken, there is a risk we will see future differences because the SB specified container is being ignored. See dotnet/source-build#5463 for more details.

That all said, I don't see a high ROI in investing/improving this beyond your fix.

Thanks for the heads up.

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.

Source build managed jobs failing with missing 'az' cli

3 participants