Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ci] Add install-global-tool yaml template #8233

Merged
merged 1 commit into from
Aug 1, 2023

Conversation

pjcollins
Copy link
Member

Attempts to install the boots global tool have been failing:

"C:\Program Files\dotnet\dotnet.exe" tool update boots -g --version 1.1.0.36 --add-source https://api.nuget.org/v3/index.json
The requested version 1.1.0.36 is lower than existing version 1.1.0.712-preview2.

Fix this by replacing the install-apkdiff and install-dotnet-test-slicer templates with a generic install-global-tool template that is also used to install boots.

Attempts to install the boots global tool have been failing:

    "C:\Program Files\dotnet\dotnet.exe" tool update boots -g --version 1.1.0.36 --add-source https://api.nuget.org/v3/index.json
    The requested version 1.1.0.36 is lower than existing version 1.1.0.712-preview2.

Fix this by replacing the install-apkdiff and install-dotnet-test-slicer
templates with a generic install-global-tool template that is also used
to install boots.
Copy link
Member

@jonathanpeppers jonathanpeppers left a comment

Choose a reason for hiding this comment

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

This looks good if CI is green. 👍

Copy link
Contributor

@jpobst jpobst left a comment

Choose a reason for hiding this comment

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

While this is perfectly fine, a more complete fix might be to remove the boots installation completely if we no longer need it.

I suspect all of these could be false now and then we could remove them completely:
https://github.com/search?q=repo%3Axamarin%2Fxamarin-android%20installLegacyXamarinAndroid&type=code

But that can also be tackled separately if we don't want to look at it now.

@pjcollins
Copy link
Member Author

The boots install was recently added in commit 5a6e01e, as the new Ventura system images no longer contain Mono or Xamarin.Android installs and we still have a few tests that depend on them.

Eventually we will want to remove those tests and these provisioning steps, but probably not until after ~May 2024.

@pjcollins pjcollins merged commit 80a4716 into dotnet:main Aug 1, 2023
@pjcollins pjcollins deleted the shared-globaltool branch August 1, 2023 17:33
@github-actions github-actions bot locked and limited conversation to collaborators Jan 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants