dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.52k stars 4.53k forks source link

CI test failures in GenerateRuntimeGraphTests on tvOS simulator and iOS simulator. #77889

Open jandupej opened 1 year ago

jandupej commented 1 year ago

Test failures now occur with GenerateRuntimeGraphTests, e.g. CanAddArchitectureToExistingGroups ends with System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception and System.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

{
  "ErrorMessage": "The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception.",
  "BuildRetry": false,
  "ErrorPattern": "",
  "ExcludeConsoleLog": true
}

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

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0
dotnet-issue-labeler[bot] commented 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.

ghost commented 1 year ago

Tagging subscribers to 'os-tvos': @steveisok, @akoeplinger See info in area-owners.md if you want to be subscribed.

Issue Details
Test failures now occur with `GenerateRuntimeGraphTests`, e.g. `CanAddArchitectureToExistingGroups` ends with `System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception` and `System.PlatformNotSupportedException : Operation is not supported on this platform.`. The logs are available here: [Build Build iOSSimulator x64 Release AllSubsets_Mono failed](https://helixre107v0xdeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-77827-merge-50c4881d0ced45109b/Microsoft.NETCore.Platforms.Tests/1/console.1f1ca7bc.log?helixlogtype=result) and here [Build Build tvOSSimulator x64 Release AllSubsets_Mono failed](https://helix.dot.net/api/2019-06-17/jobs/a08cc296-9081-4430-abc6-4317a2d91d77/workitems/Microsoft.NETCore.Platforms.Tests/console)
Author: jandupej
Assignees: -
Labels: `untriaged`, `os-tvos`, `test-failure`
Milestone: -
ViktorHofer commented 1 year ago

cc @ericstj as I think that you introduced those tests

ericstj commented 1 year ago

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?

steveisok commented 1 year ago

Yeah, I think we can lump iOS and Android in the same as the browser.

jandupej commented 1 year ago

Also occurs in https://github.com/dotnet/runtime/pull/83813

carlossanlop commented 11 months ago

It's also happening in 7.0. I'll add the KnownBuildError so we start linking this issue to those failures.

Expand ``` [22:17:10] dbug: 2023-07-11 22:17:10.877018-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Microsoft.NETCore.Platforms.BuildTasks.Tests.RidTests 0.0066653 ms [22:17:10] dbug: 2023-07-11 22:17:10.884242-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Failed tests: [22:17:10] dbug: 2023-07-11 22:17:10.884473-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 1) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddArchitectureToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddArchitectureToExistingGroups [22:17:10] dbug: 2023-07-11 22:17:10.885829-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:10] dbug: 2023-07-11 22:17:10.889320-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:10] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:10] dbug: 2023-07-11 22:17:10.892654-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:10] dbug: ----- Inner Stack Trace ----- [22:17:10] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:10] dbug: 2023-07-11 22:17:10.895975-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:10] dbug: 2023-07-11 22:17:10.898453-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:10] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:10] dbug: 2023-07-11 22:17:10.900921-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:10] dbug: 2023-07-11 22:17:10.903435-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ----- Inner Stack Trace ----- [22:17:10] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:10] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:10] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:10] dbug: 2023-07-11 22:17:10.906767-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:10] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:10] dbug: Execution time: 0 [22:17:10] dbug: 2023-07-11 22:17:10.910080-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 2) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddParentVersionsToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddParentVersionsToExistingGroups [22:17:10] dbug: 2023-07-11 22:17:10.913471-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:10] dbug: 2023-07-11 22:17:10.916775-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:10] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:10] dbug: 2023-07-11 22:17:10.920080-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:10] dbug: ----- Inner Stack Trace ----- [22:17:10] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:10] dbug: 2023-07-11 22:17:10.923375-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:10] dbug: 2023-07-11 22:17:10.926656-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:10] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:10] dbug: 2023-07-11 22:17:10.929924-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:10] dbug: 2023-07-11 22:17:10.933216-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ----- Inner Stack Trace ----- [22:17:10] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:10] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:10] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:10] dbug: 2023-07-11 22:17:10.936518-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:10] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:10] dbug: Execution time: 0 [22:17:10] dbug: 2023-07-11 22:17:10.939828-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 3) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddNewGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddNewGroups [22:17:10] dbug: 2023-07-11 22:17:10.943114-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:10] dbug: Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:10] dbug: 2023-07-11 22:17:10.945614-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:10] dbug: 2023-07-11 22:17:10.948084-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:10] dbug: ----- Inner Stack Trace ----- [22:17:10] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:10] dbug: 2023-07-11 22:17:10.950577-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:10] dbug: 2023-07-11 22:17:10.953166-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:10] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:10] dbug: 2023-07-11 22:17:10.956520-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:10] dbug: ----- Inner Stack Trace ----- [22:17:10] dbug: 2023-07-11 22:17:10.959802-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:10] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:10] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:10] dbug: at System.Diagnostics.Process.get_ProcessName() [22:17:10] dbug: 2023-07-11 22:17:10.963092-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:10] dbug: Execution time: 0 [22:17:10] dbug: 2023-07-11 22:17:10.966404-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 4) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddVersionsToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddVersionsToExistingGroups [22:17:10] dbug: 2023-07-11 22:17:10.969653-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:10] dbug: 2023-07-11 22:17:10.972997-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:10] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:10] dbug: 2023-07-11 22:17:10.976267-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:10] dbug: ----- Inner Stack Trace ----- [22:17:10] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:10] dbug: 2023-07-11 22:17:10.979660-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:10] dbug: 2023-07-11 22:17:10.982987-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:10] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:10] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:10] dbug: 2023-07-11 22:17:10.986277-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:10] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:10] dbug: 2023-07-11 22:17:10.989566-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ----- Inner Stack Trace ----- [22:17:10] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:10] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:10] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:10] dbug: 2023-07-11 22:17:10.992844-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:10] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:10] dbug: Execution time: 0 [22:17:10] dbug: 2023-07-11 22:17:10.996150-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 5) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanCreateRuntimeGraph Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanCreateRuntimeGraph [22:17:10] dbug: 2023-07-11 22:17:10.998635-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:10] dbug: Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:11] dbug: 2023-07-11 22:17:11.001146-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:11] dbug: 2023-07-11 22:17:11.003662-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:11] dbug: 2023-07-11 22:17:11.007024-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:11] dbug: 2023-07-11 22:17:11.010327-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:11] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:11] dbug: 2023-07-11 22:17:11.013572-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: 2023-07-11 22:17:11.016821-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:11] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:11] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:11] dbug: 2023-07-11 22:17:11.020282-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:11] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:11] dbug: Execution time: 0 [22:17:11] dbug: 2023-07-11 22:17:11.023672-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 6) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddMajorVersionsToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddMajorVersionsToExistingGroups [22:17:11] dbug: 2023-07-11 22:17:11.027026-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:11] dbug: 2023-07-11 22:17:11.030350-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:11] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:11] dbug: 2023-07-11 22:17:11.033702-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:11] dbug: 2023-07-11 22:17:11.037067-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:11] dbug: 2023-07-11 22:17:11.040374-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:11] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:11] dbug: 2023-07-11 22:17:11.043620-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:11] dbug: 2023-07-11 22:17:11.046172-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ----- Inner Stack Trace ----- [22:17:11] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:11] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:11] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:11] dbug: 2023-07-11 22:17:11.048653-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:11] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:11] dbug: Execution time: 0 [22:17:11] dbug: 2023-07-11 22:17:11.051127-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 7) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddArchitectureAndVersionToExistingGroups Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanAddArchitectureAndVersionToExistingGroups [22:17:11] dbug: 2023-07-11 22:17:11.053618-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:11] dbug: 2023-07-11 22:17:11.056912-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:11] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:11] dbug: 2023-07-11 22:17:11.060173-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: 2023-07-11 22:17:11.063430-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:11] dbug: at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:11] dbug: 2023-07-11 22:17:11.066712-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:11] dbug: 2023-07-11 22:17:11.069975-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:11] dbug: 2023-07-11 22:17:11.073222-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:11] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:11] dbug: 2023-07-11 22:17:11.076538-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:11] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:11] dbug: 2023-07-11 22:17:11.079800-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.EnsureState(State state) [22:17:11] dbug: at System.Diagnostics.Process.get_ProcessName() [22:17:11] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:11] dbug: Execution time: 0 [22:17:11] dbug: 2023-07-11 22:17:11.083156-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 8) [FAIL] Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanIgnoreExistingInferRids Test name: Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.CanIgnoreExistingInferRids [22:17:11] dbug: 2023-07-11 22:17:11.086477-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Assembly: [Microsoft.NETCore.Platforms.Tests, Version=7.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51] [22:17:11] dbug: 2023-07-11 22:17:11.089788-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] Exception messages: System.TypeInitializationException : The type initializer for 'Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests' threw an exception. [22:17:11] dbug: ---- System.TypeInitializationException : The type initializer for 'Microsoft.Build.Shared.Debugging.DebugUtils' threw an exception. [22:17:11] dbug: 2023-07-11 22:17:11.093091-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] -------- System.PlatformNotSupportedException : Operation is not supported on this platform. Exception stack traces: at System.Reflection.ConstructorInvoker.InterpretedInvoke(Object obj, Span`1 args, BindingFlags invokeAttr) [22:17:11] dbug: ----- Inner Stack Trace ----- [22:17:11] dbug: at Microsoft.Build.Internal.CommunicationsUtilities.GetEnvironmentVariables() [22:17:11] dbug: 2023-07-11 22:17:11.095631-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Internal.Utilities.GetEnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_EnvironmentProperties() [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.InitializeToolsetCollection(ToolsetConfigurationReader configReader) [22:17:11] dbug: 2023-07-11 22:17:11.098149-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] 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) [22:17:11] dbug: at Microsoft.Build.Evaluation.ProjectCollection.get_GlobalProjectCollection() [22:17:11] dbug: at Microsoft.Build.Evaluation.Project..ctor(String projectFile, IDictionary`2 globalProperties, String toolsVersion) [22:17:11] dbug: 2023-07-11 22:17:11.100635-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at Microsoft.Build.Evaluation.Project..ctor(String projectFile) [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests.GetDefaultRuntimeGroupItems() [22:17:11] dbug: at Microsoft.NETCore.Platforms.BuildTasks.Tests.GenerateRuntimeGraphTests..cctor() [22:17:11] dbug: 2023-07-11 22:17:11.103148-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] ----- Inner Stack Trace ----- [22:17:11] dbug: at System.Diagnostics.ProcessManager.CreateProcessInfo(Int32 pid) [22:17:11] dbug: at System.Diagnostics.ProcessManager.GetProcessInfo(Int32 processId, String machineName) [22:17:11] dbug: at System.Diagnostics.Process.EnsureState(State state) [22:17:11] dbug: 2023-07-11 22:17:11.106501-0700 Microsoft.NETCore.Platforms.Tests[23706:5090949] at System.Diagnostics.Process.get_ProcessName() [22:17:11] dbug: at Microsoft.Build.Shared.Debugging.DebugUtils..cctor() [22:17:11] dbug: Execution time: 0 ````
carlossanlop commented 8 months ago

Here's a more recent one in 7.0. I saw it in a runtime-extra-platforms run.

ViktorHofer commented 8 months ago

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.