Skip to content

Conversation

@mmitche
Copy link
Member

@mmitche mmitche commented Jan 11, 2023

No description provided.

@mmitche mmitche requested a review from a team as a code owner January 11, 2023 22:44
@mmitche
Copy link
Member Author

mmitche commented Jan 12, 2023

@marcpopMSFT Still getting these issues with SupportsTargetFramework pretty often:

 Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(targetFramework: \"net8.0\")
System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at Microsoft.NET.TestFramework.EnvironmentInfo.SupportsTargetFramework(String targetFramework) in /_/src/Tests/Microsoft.NET.TestFramework/EnvironmentInfo.cs:line 57
   at Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(String targetFramework) in /_/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs:line 78
   at InvokeStub_GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

What should we do about them?

@mmitche mmitche merged commit a06d313 into dotnet:main Jan 12, 2023
@marcpopMSFT
Copy link
Member

@marcpopMSFT Still getting these issues with SupportsTargetFramework pretty often:

 Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(targetFramework: \"net8.0\")
System.IndexOutOfRangeException : Index was outside the bounds of the array.
   at Microsoft.NET.TestFramework.EnvironmentInfo.SupportsTargetFramework(String targetFramework) in /_/src/Tests/Microsoft.NET.TestFramework/EnvironmentInfo.cs:line 57
   at Microsoft.NET.Publish.Tests.GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(String targetFramework) in /_/src/Tests/Microsoft.NET.Publish.Tests/GivenThatWeWantToPublishAHelloWorldProject.cs:line 78
   at InvokeStub_GivenThatWeWantToPublishAHelloWorldProject.It_publishes_self_contained_apps_to_the_publish_folder_and_the_app_should_run(Object, Object, IntPtr*)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)

What should we do about them?

@mmitche I thought originally we were only seeing these in older branches and were just going to ignore/disable the test. However, this is in main. We really need nuget to investigate as the line it's failing on is just parsing the TFM with nuget: NuGetFramework.Parse(targetFramework); Is there a chance the test results are flagging the wrong line that's failing as I'm surprised the callstack doesn't include nuget.

@aortiz-msft , is there someone who can take a look at this as we started seeing failures only on Darwin legs and not every time where parsing the target framework is throwing an out of range exception.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants