From cde97d6e477e697212582cc0ada6a62bf0f41d24 Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Wed, 5 Aug 2020 11:02:16 -0500 Subject: [PATCH] [tests] BuildLibraryWhichUsesResources should be NonParallelizable (#4979) Context: https://build.azdo.io/3947655 Since 396aca1c switched the `Xamarin.Android.Build.Tests.BuildTest.BuildLibraryWhichUsesResources` test to use AndroidX, it has been randomly failing with: (Restore target) -> /Library/Frameworks/Mono.framework/Versions/6.12.0/lib/mono/msbuild/Current/bin/NuGet.targets(124,5): error : Could not find file '/Users/runner/work/1/s/packages/xamarin.androidx.migration/1.0.0.1/c0hredtr.mkk'. I think this is happening because the test is parameterized and AndroidX has a large dependency tree. `[NonParallelizable]` should solve the issue. --- .../Tests/Xamarin.Android.Build.Tests/BuildTest.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs index 1df108ad589..cf2f7907782 100644 --- a/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs +++ b/src/Xamarin.Android.Build.Tasks/Tests/Xamarin.Android.Build.Tests/BuildTest.cs @@ -1905,6 +1905,7 @@ public void CheckLintConfigMerging () } [Test] + [NonParallelizable] // fails on NuGet restore [Category ("dotnet")] /// /// Reference https://bugzilla.xamarin.com/show_bug.cgi?id=29568