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

Update Maui Workload Install Process for Perf #64692

Merged
merged 22 commits into from
Feb 3, 2022

Conversation

LoopedBard3
Copy link
Member

@LoopedBard3 LoopedBard3 commented Feb 2, 2022

Fixes dotnet/performance#2230, where an error with installing the latest Maui workload would occur but not error out the pipeline. This fixes that by installing the latest 6.0.2xx dotnet sdk for installing the workload and building the Maui apps. Includes some minor name fixes and adds ios runtime building.

@ghost
Copy link

ghost commented Feb 2, 2022

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

Issue Details

Fixes dotnet/performance#2230, where an error with installing the latest Maui workload would occur but not error out the pipeline. This fixes that by installing the latest 6.0.2xx dotnet sdk for installing the workload and building the Maui apps.

Author: LoopedBard3
Assignees: LoopedBard3
Labels:

area-Infrastructure-coreclr

Milestone: -

@LoopedBard3 LoopedBard3 marked this pull request as ready for review February 2, 2022 19:32
Copy link
Member

@DrewScoggins DrewScoggins left a comment

Choose a reason for hiding this comment

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

LGTM

@LoopedBard3
Copy link
Member Author

Perf run succeeded where expected on a private run, merging.

@LoopedBard3 LoopedBard3 merged commit 2eec504 into dotnet:main Feb 3, 2022
curl -o dotnet-install.sh 'https://dotnet.microsoft.com/download/dotnet/scripts/v1/dotnet-install.sh'
chmod -R a+rx .
./dotnet-install.sh --channel 6.0.2xx --quality signed --install-dir .
./dotnet --info
Copy link
Member

Choose a reason for hiding this comment

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

What's this line for? Is it needed?

mv ./bin/Release/net6.0-android/com.companyname.MauiTesting-Signed.apk ./MauiAndroidDefault.apk
displayName: Build MAUI Android
workingDirectory: $(Build.SourcesDirectory)/MauiTesting

- script: |
chmod -R a+r .
../dotnet.sh publish -bl:MauiiOS.binlog -f net6.0-ios -c Release
../dotnet build -bl:MauiiOS.binlog -f net6.0-ios -c Release
Copy link
Member

Choose a reason for hiding this comment

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

What I've found to work is:

  1. Remove the net6.0-maccatalyst TFM from the TargetFrameworks property in the .csproj.
  2. dotnet publish -c Release -f net6.0-ios -r ios-arm64

I've logged xamarin/xamarin-macios#14015 for this, which was closed in favor of dotnet/sdk#21877.

mv ./bin/Release/net6.0-ios/iossimulator-x64/MauiTesting.app ./MauiiOSDefault.app
displayName: Build MAUI iOS
workingDirectory: $(Build.SourcesDirectory)/MauiTesting

- script: |
chmod -R a+r .
../dotnet.sh publish -bl:MauiMacCatalyst.binlog -f net6.0-maccatalyst -c Release
../dotnet publish -bl:MauiMacCatalyst.binlog -f net6.0-maccatalyst -c Release
Copy link
Member

Choose a reason for hiding this comment

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

Do we care about maccatalyst size? I'm not certain this is an important scenario to track. It may just be wasting resources and cluttering the perf dashboard.

LoopedBard3 added a commit to LoopedBard3/runtime that referenced this pull request Feb 8, 2022
*  Add dotnet install and run to test if new dotnet version can be installed similar to how it is done in the Maui repo.

* Download and use local dotnet version.

* Use updated dotnet for more of the pipeline.

* Test with made runtime packs and and add ios arm pack substitution.

* Try building instead of publishing.

* Reenable everything for full test run.

* Package name now seems to default to lower case, at least for maui.
LoopedBard3 added a commit to LoopedBard3/runtime that referenced this pull request Feb 10, 2022
*  Add dotnet install and run to test if new dotnet version can be installed similar to how it is done in the Maui repo.

* Download and use local dotnet version.

* Use updated dotnet for more of the pipeline.

* Test with made runtime packs and and add ios arm pack substitution.

* Try building instead of publishing.

* Reenable everything for full test run.

* Package name now seems to default to lower case, at least for maui.
@ghost ghost locked as resolved and limited conversation to collaborators Mar 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Maui Scenario Workload Download Error
3 participants