Open jandupej opened 1 year ago
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.
Tagging subscribers to 'os-tvos': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.
Author: | jandupej |
---|---|
Assignees: | - |
Labels: | `untriaged`, `os-tvos`, `test-failure` |
Milestone: | - |
cc @ericstj as I think that you introduced those tests
Those tests require MSBuild assemblies and use a subset of that functionality on the target machine. When they were added they worked on all platforms they were run on with the exception of Browser. We decided at the time it wasn't interesting to execute MSBuild on the browser so we added https://github.com/dotnet/runtime/blob/794f1afa15b76cb83eaed9644ecec73275c98080/src/libraries/Microsoft.NETCore.Platforms/tests/AssemblyInfo.cs#L6
Based on this issue, it looks like either more platforms were added, or existing platforms introduced new unsupported API. It's likely a similar case to Browser here: what do you think @steveisok?
Yeah, I think we can lump iOS and Android in the same as the browser.
Also occurs in https://github.com/dotnet/runtime/pull/83813
It's also happening in 7.0. I'll add the KnownBuildError so we start linking this issue to those failures.
Build iOSSimulator x64 Release AllSubsets_Mono
Here's a more recent one in 7.0. I saw it in a runtime-extra-platforms
run.
Build tvOSSimulator x64 Release AllSubsets_Mono
[12:51:45] dbug: 2023-09-19 12:51:45.732925-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] 4) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddVersionsToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddVersionsToExistingGroups
[12:51:45] dbug: 2023-09-19 12:51:45.733065-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51]
[12:51:45] dbug: 2023-09-19 12:51:45.733232-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception.
[12:51:45] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception.
[12:51:45] dbug: 2023-09-19 12:51:45.733393-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr)
[12:51:45] dbug: ----- Inner Stack Trace -----
[12:51:45] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables()
[12:51:45] dbug: 2023-09-19 12:51:45.733557-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties()
[12:51:45] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties()
[12:51:45] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader)
[12:51:45] dbug: 2023-09-19 12:51:45.733726-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] at Microsoft.Build.Evaluation.ProjectCollection..ctor(IDictionary`2 globalProperties, IEnumerable`1 loggers, IEnumerable`1 remoteLoggers, ToolsetDefinitionLocations toolsetDefinitionLocations, Int32 maxNodeCount, Boolean onlyLogCriticalEvents, Boolean loadProjectsReadOnly, Boolean useAsynchronousLogging)
[12:51:45] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection()
[12:51:45] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion)
[12:51:45] dbug: 2023-09-19 12:51:45.733876-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] at Microsoft.Build.Evaluation.Project..ctor(String projectFile)
[12:51:45] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems()
[12:51:45] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor()
[12:51:45] dbug: 2023-09-19 12:51:45.734046-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] ----- Inner Stack Trace -----
[12:51:45] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid)
[12:51:45] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName)
[12:51:45] dbug: at System.Diagnostics.Process.EnsureState(State state)
[12:51:45] dbug: 2023-09-19 12:51:45.734209-0700 Microsoft.NETCore.Platforms.Tests[7039:3320967] at System.Diagnostics.Process.get_ProcessName()
[12:51:45] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor()
[12:51:45] dbug: Execution time: 0
It's not worth spending much time on these failures. We already removed this code base in main for .NET 9. I would either just disable the test or ignore the failures.
Test failures now occur with
GenerateRuntimeGraphTests
, e.g.CanAddArchitectureToExistingGroups
ends withSystem.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception
andSystem.PlatformNotSupportedException : Operation is not supported on this platform.
.The logs are available here: Build Build iOSSimulator x64 Release AllSubsets_Mono failed and here Build Build tvOSSimulator x64 Release AllSubsets_Mono failed
Known issue validation
Build: :mag_right: Result validation: :warning: Validation could not be done without an Azure DevOps build URL on the issue. Please add it to the "Build: :mag_right:" line. Validation performed at: 7/12/2023 4:16:44 PM UTC
Report
Summary