Skip to content

Route XBD Google Maven downloads through mirror - #12544

Open
jonathanpeppers wants to merge 1 commit into
dotnet:mainfrom
jonathanpeppers:jonathanpeppers-route-xbd-through-mirror
Open

Route XBD Google Maven downloads through mirror#12544
jonathanpeppers wants to merge 1 commit into
dotnet:mainfrom
jonathanpeppers:jonathanpeppers-route-xbd-through-mirror

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Summary

  • update the test Xamarin.Build.Download pin from 0.11.4 to 0.11.6
  • expose XamarinBuildDownloadGoogleMavenRepository repository-wide through the shared Azure Pipelines variables template
  • route eligible Google Maven downloads through dnceng's dotnet-public-maven feed
  • directly pin the Google Play Services test that would otherwise resolve XBD 0.11.4 transitively

The XBD implementation only rewrites URLs beginning with https://dl.google.com/dl/android/maven2/; Android SDK/NDK and partial ZIP URLs such as dl-ssl.google.com/android/repository/... remain unchanged.

Validation

  • parsed the shared pipeline variables YAML
  • verified an uppercase Azure Pipelines-style environment variable reaches nested dotnet msbuild as $(XamarinBuildDownloadGoogleMavenRepository)
  • built xa-prep-tasks and Xamarin.ProjectTools
  • inspected the relevant NuGet dependency graphs to identify transitive XBD consumers

Publication status

As of August 27, 2026, the dnceng dotnet-public NuGet feed lists Xamarin.Build.Download only through 0.11.5. Restore/CI is expected to remain blocked until 0.11.6 is published to that feed.

Implementation reference: dotnet/android-libraries@4fe06d5

Configure Azure Pipelines to expose the dotnet-public Maven repository to Xamarin.Build.Download, update tests to XBD 0.11.6, and directly pin consumers that would otherwise resolve older transitive versions.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

Copilot-Session: 488a70c4-d8c7-47d5-9bd7-841466fc30fb
Copilot AI lite review requested due to automatic review settings August 27, 2026 18:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 repository’s build/test infrastructure to support routing eligible Google Maven downloads through the dnceng dotnet-public-maven mirror by (1) bumping the Xamarin.Build.Download test pin, (2) exposing XamarinBuildDownloadGoogleMavenRepository as a shared Azure Pipelines variable, and (3) directly pinning Xamarin.Build.Download in a Google Play Services-related test to avoid an older transitive version.

Changes:

  • Update the test Xamarin.Build.Download pin in KnownPackages from 0.11.4 to 0.11.6.
  • Add XamarinBuildDownloadGoogleMavenRepository to the shared Azure Pipelines variables template, pointing at the dotnet-public-maven feed.
  • Explicitly add KnownPackages.Xamarin_Build_Download to DuplicateRJavaOutput package references to avoid relying on transitive resolution.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.ProjectTools/Android/KnownPackages.cs Updates the pinned Xamarin.Build.Download version used by tests.
src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest2.cs Explicitly pins Xamarin.Build.Download in a test project’s package set to avoid transitive version selection.
build-tools/automation/yaml-templates/variables.yaml Adds a pipeline variable to route Google Maven downloads through the dnceng Maven mirror.

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.

2 participants