Skip to content

Conversation

@baronfel
Copy link
Member

@baronfel baronfel commented Jul 8, 2025

Fixes #42026

Uses a new ACR that has been set up as the pull source for our tests.

Copilot AI review requested due to automatic review settings July 8, 2025 03:46
@baronfel baronfel added Area-Infrastructure Area-Containers Related to dotnet SDK containers functionality labels Jul 8, 2025
@baronfel baronfel requested a review from a team as a code owner July 8, 2025 03:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the integration tests to use a newly provisioned Azure Container Registry (ACR) image as the pull source. It introduces configurable registry image constants and redirects the local registry startup command to use the ACR image.

  • Introduce SDK_AzureContainerRegistryImage and Docker_HubRegistryImage constants
  • Add RegistryImageToUse property to select the active registry image
  • Update ContainerCli.RunCommand call to use RegistryImageToUse and add a TODO for pivot logic
Comments suppressed due to low confidence (1)

test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs:31

  • Add or update integration tests to cover both registry selection paths (SDK_AzureContainerRegistryImage and Docker_HubRegistryImage) to ensure RegistryImageToUse behaves as expected under different configurations.
    private static string RegistryImageToUse => SDK_AzureContainerRegistryImage;

@baronfel baronfel merged commit 1a8e397 into dotnet:main Jul 8, 2025
30 checks passed
@baronfel baronfel deleted the update-container-registry-acr branch July 8, 2025 14:26
@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to 9.0.1xx

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to 9.0.3xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to 8.0.1xx

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to 8.0.3xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to 8.0.4xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson an error occurred while backporting to "9.0.1xx", please check the run log for details!

The process '/usr/bin/git' failed with exit code 1

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson an error occurred while backporting to "9.0.3xx", please check the run log for details!

The process '/usr/bin/git' failed with exit code 1

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson an error occurred while backporting to "8.0.1xx", please check the run log for details!

The process '/usr/bin/git' failed with exit code 1

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson an error occurred while backporting to "8.0.3xx", please check the run log for details!

The process '/usr/bin/git' failed with exit code 1

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to release/9.0.1xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson an error occurred while backporting to "8.0.4xx", please check the run log for details!

The process '/usr/bin/git' failed with exit code 1

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to release/9.0.3xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Started backporting to release/9.0.1xx: https://github.com/dotnet/sdk/actions/runs/16150309660

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Started backporting to release/9.0.3xx: https://github.com/dotnet/sdk/actions/runs/16150311338

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to release/8.0.3xx

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to release/8.0.1xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Started backporting to release/8.0.3xx: https://github.com/dotnet/sdk/actions/runs/16150314694

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Started backporting to release/8.0.1xx: https://github.com/dotnet/sdk/actions/runs/16150316988

@nagilson
Copy link
Member

nagilson commented Jul 8, 2025

/backport to release/8.0.4xx

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

Started backporting to release/8.0.4xx: https://github.com/dotnet/sdk/actions/runs/16150321709

@github-actions
Copy link
Contributor

github-actions bot commented Jul 8, 2025

@nagilson backporting to "release/8.0.1xx" failed, the patch most likely resulted in conflicts:

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

Applying: use new ACR for registry image
Using index info to reconstruct a base tree...
A	test/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs
Falling back to patching base and 3-way merge...
Auto-merging src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs
CONFLICT (content): Merge conflict in src/Tests/Microsoft.NET.Build.Containers.IntegrationTests/DockerRegistryManager.cs
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 0001 use new ACR for registry image
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Containers Related to dotnet SDK containers functionality Area-Infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Microsoft.NET.Build.Containers.IntegrationTests are pulling from Docker Hub

3 participants