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] Remove mono as requirement #20814

Closed
rmarinho opened this issue Feb 23, 2024 · 1 comment · Fixed by #21487
Closed

[ci] Remove mono as requirement #20814

rmarinho opened this issue Feb 23, 2024 · 1 comment · Fixed by #21487
Assignees
Labels
Milestone

Comments

@rmarinho
Copy link
Member

rmarinho commented Feb 23, 2024

Description

Right now we have some requirements on our CI that need mono. I tried to remove here , and then I saw some failures later on fresh machines and I had to add it back here..

We should remove and rewrite all our pipeline to try to use dotnet test and dotnet nuget . I have identified the following places not having mono fails

  • Device tests for android for example need mono to start the NUnit.ConsoleRunner
  • Pack on macOS needs mono to start the NuGet.CommandLine.6.6.1

Relevant log output

Time Elapsed 00:00:53.65
Run UITests lib /Users/builder/azdo/_work/2/s/src/Compatibility/ControlGallery/test/Android.UITests/bin/Debug/net472/Microsoft.Maui.Controls.Android.UITests.dll
Add Where filter to NUnit cat==Issues
Could not resolve path for tool "mono" using these directories: /Users/builder/Library/Developer/Xamarin/android-sdk-macosx/emulator,/Users/builder/Library/Developer/Xamarin/android-sdk-macosx/platform-tools,/Users/builder/Library/Developer/Xamarin/android-sdk-macosx/cmdline-tools/latest/bin,/Users/builder/Library/Developer/Xamarin/android-sdk-macosx/cmdline-tools/7.0/bin,/Users/builder/Library/Developer/Xamarin/android-sdk-macosx/cmdline-tools/5.0/bin,/Users/builder/Library/Developer/Xamarin/android-sdk-macosx/tools/bin,/usr/local/microsoft/powershell/7,/Users/builder/azdo/_work/2/s/bin/dotnet,/Users/builder/.dotnet/tools,/Users/builder/azdo/_work/_tool/dotnet,/usr/local/bin,/usr/local/share/dotnet,~/.dotnet/tools,/Library/Frameworks/Mono.framework/Versions/Current/Commands,/usr/bin,/bin,/usr/sbin,/sbin
/Users/builder/azdo/_work/2/s/eng/devices/tools/NUnit.ConsoleRunner.3.16.3/tools/nunit3-console.exe is a .NET Framework executable, you might need to install Mono for it to execute successfully.
Executing: /Users/builder/azdo/_work/2/s/eng/devices/tools/NUnit.ConsoleRunner.3.16.3/tools/nunit3-console.exe "/Users/builder/azdo/_work/2/s/src/Compatibility/ControlGallery/test/Android.UITests/bin/Debug/net472/Microsoft.Maui.Controls.Android.UITests.dll" --where "cat==Issues" "--work=/Users/builder/azdo/_work/2/a/test-results/android" "--out=/Users/builder/azdo/_work/2/a/test-results/android/run_uitests_output-133531728934878300.log" "--config=Debug"
An error occurred when executing task 'cg-uitest'.
Completed in 00:02:45.3767402
dotnet-pack-additional
========================================
Executing task: dotnet-pack-additional
Could not resolve path for tool "mono" using these directories: /Users/builder/azdo/_work/2/s/bin/dotnet,/usr/local/microsoft/powershell/7,/Users/builder/.dotnet/tools,/Users/builder/azdo/_work/_tool/dotnet,/usr/local/bin,/usr/local/share/dotnet,~/.dotnet/tools,/Library/Frameworks/Mono.framework/Versions/Current/Commands,/usr/bin,/bin,/usr/sbin,/sbin
/Users/builder/azdo/_work/2/s/tools/NuGet.CommandLine.6.6.1/tools/NuGet.exe is a .NET Framework executable, you might need to install Mono for it to execute successfully.
Executing: /Users/builder/azdo/_work/2/s/tools/NuGet.CommandLine.6.6.1/tools/NuGet.exe install "_NativeAssets.windows" -OutputDirectory "/Users/builder/azdo/_work/2/s/artifacts/additional-assets" -Version "0.0.0-commit.e2c5c86249621857107c779af0f79b4d06613766.655" -ExcludeVersion -Source "https://aka.ms/skiasharp-eap/index.json" -NonInteractive
An error occurred when executing task 'dotnet-pack-additional'.
Completed in 00:00:00.1964573
@rmarinho rmarinho added t/bug Something isn't working testing-infrastructure Issue relating to testing infrastructure labels Feb 23, 2024
@rmarinho rmarinho added this to the Backlog milestone Feb 23, 2024
@ghost
Copy link

ghost commented Feb 23, 2024

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

3 participants