Skip to content

[tests] update NUnit to 3.7.1 - #973

Merged
jonpryor merged 1 commit into
dotnet:masterfrom
jonathanpeppers:nunit-3.7.1
Oct 26, 2017
Merged

[tests] update NUnit to 3.7.1#973
jonpryor merged 1 commit into
dotnet:masterfrom
jonathanpeppers:nunit-3.7.1

Conversation

@jonathanpeppers

Copy link
Copy Markdown
Member

Context: https://github.com/nunit/nunit/releases/tag/3.7.1

The release notes for NUnit 3.7.1 mention a hang with parallelized
tests, so it is worth a try to see if updating fixes it.

Reverting 6687dac as well to see if we get a green build.

@dnfclas

Copy link
Copy Markdown

@jonathanpeppers,
Thanks for having already signed the Contribution License Agreement. Your agreement was validated by .NET Foundation. We will now review your pull request.
Thanks,
.NET Foundation Pull Request Bot

@jonathanpeppers

jonathanpeppers commented Oct 25, 2017

Copy link
Copy Markdown
MemberAuthor

No hang, but the tests I checked seemed to fail with the same thing:

 Task "ResolveSdks"
Using task ResolveSdks from Xamarin.Android.Tasks.ResolveSdks, Xamarin.Android.Build.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
ResolveSdksTask:
AndroidApiLevel: AndroidSdkBuildToolsVersion: 23.0.0
AndroidSdkPath: AndroidNdkPath: ReferenceAssemblyPaths: /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild-frameworks/MonoAndroid/v1.0/
TargetFrameworkVersion: v6.0
UseLatestAndroidPlatformSdk: True
SequencePointsMode: None
LintToolPath: /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task ResolveSdks: Could not determine Android SDK location. Please provide `androidSdkPath`.
Error executing task ResolveSdks: System.InvalidOperationException: Could not determine Android SDK location. Please provide `androidSdkPath`.
at Xamarin.Android.Tools.AndroidSdkInfo..ctor (System.Action`2[T1,T2] logger, System.String androidSdkPath, System.String androidNdkPath, System.String javaSdkPath) [0x0008e] in /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/external/xamarin-android-tools/src/Xamarin.Android.Tools.AndroidSdk/AndroidSdkInfo.cs:28 at Xamarin.Android.Tasks.MonoAndroidHelper.RefreshAndroidSdk (System.String sdkPath, System.String ndkPath, System.String javaPath) [0x00021] in /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/src/Xamarin.Android.Build.Tasks/Utilities/MonoAndroidHelper.cs:111 at Xamarin.Android.Tasks.ResolveSdks.RunTask () [0x001a0] in /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/ResolveSdksTask.cs:157 at Xamarin.Android.Tasks.ResolveSdks.Execute () [0x00002] in /Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/src/Xamarin.Android.Build.Tasks/Tasks/ResolveSdksTask.cs:130 at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/TaskEngine.cs:134 at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x0008d] in /Users/builder/data/lanes/4992/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/Microsoft.Build.Engine/Microsoft.Build.BuildEngine/BuildTask.cs:101 Done building target "_SetLatestTargetFrameworkVersion" in project "/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj" ("/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets"); "_CheckProjectItems" depends on it.
Done building target "_CheckProjectItems" in project "/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj" ("/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets"); "Build" depends on it.
Done building target "Build" in project "/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj" ("/Library/Frameworks/Mono.framework/Versions/5.4.0/lib/mono/xbuild/14.0/bin/Microsoft.Common.targets"); "SignAndroidPackage" depends on it.
Done building target "SignAndroidPackage" in project "/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj" ("/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets").
Target performance summary:
0.266 ms _ReadPropertiesCache 1 calls
0.568 ms _ValidateLinkMode 1 calls
2.997 ms _SetupDesignTimeBuildForBuild 1 calls
7.297 ms _CheckForInvalidConfigurationAndPlatform 1 calls
25.561 ms _CreatePropertiesCache 1 calls
37.604 ms _GetReferenceAssemblyPaths 1 calls
248.665 ms _SetLatestTargetFrameworkVersion 1 calls
Tasks performance summary:
4.255 ms WriteLinesToFile 1 calls
17.509 ms MakeDir 1 calls
37.525 ms GetReferenceAssemblyPaths 1 calls
242.210 ms ResolveSdks 1 calls
Build FAILED.
Warnings:
/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj (SignAndroidPackage) ->
/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj: warning : Target 'IncrementalClean', not found in the project
Errors:
/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/TestDebug/temp/BuildBasicApplication/UnnamedProject.csproj (SignAndroidPackage) ->
/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets (_SetLatestTargetFrameworkVersion target) ->
/Users/builder/jenkins/workspace/xamarin-android-pr-builder/xamarin-android/bin/Debug/lib/xamarin.android/xbuild/Xamarin/Android/Xamarin.Android.Common.targets: error : Error executing task ResolveSdks: Could not determine Android SDK location. Please provide `androidSdkPath`.
1 Warning(s)
1 Error(s)
Time Elapsed 00:00:00.8013090

@akoeplingerakoeplinger left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I tried this locally and it fixes the hang for me, nice find!

The test failures look unrelated (and don't happen locally).

@dellis1972

Copy link
Copy Markdown
Contributor

build

@jonpryor

Copy link
Copy Markdown
Contributor

Please rebase atop master/PR #977.

Context: https://github.com/nunit/nunit/releases/tag/3.7.1
The release notes for NUnit 3.7.1 mention a hang with parallelized
tests, so it is worth a try to see if updating fixes it.
Reverting 6687dac as well to see if we get a green build.
@akoeplinger

Copy link
Copy Markdown
Member

the test failures look unrelated :)

@jonpryor
jonpryor merged commit 5c75043 into dotnet:masterOct 26, 2017
Redth pushed a commit to Redth/xamarin-android that referenced this pull request Oct 30, 2017
Context: https://github.com/nunit/nunit/releases/tag/3.7.1
Context: commit 6687dac
The release notes for NUnit 3.7.1 mention a hang with parallelized
tests, so it is worth a try to see if updating fixes it the hangs
that we experienced and tried to workaround in 6687dac.
@jonathanpeppers
jonathanpeppers deleted the nunit-3.7.1 branch April 26, 2023 15:31
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Feb 4, 2024
Sign up for freeto 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.

5 participants

@jonathanpeppers@dnfclas@dellis1972@jonpryor@akoeplinger