-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
untriagedRequest triage from a team memberRequest triage from a team member
Description
Description
The CanRunDiscoveryTool test in Microsoft.DotNet.Cli.New.IntegrationTests fails when run on macOS arm64 leg in PR validation
Test being affected
Microsoft.DotNet.Cli.New.IntegrationTests.TemplateDiscoveryTests.CanRunDiscoveryTool (source)
Expected value to be 0 because Expected command to exit with 0 but it did not.
Working Directory: /private/tmp/helix/working/AC7809DC/t/dotnetSdkTests.Qk2rfdJJ/dotnet-new.IntegrationTests
File Name: /tmp/helix/working/AC7809DC/p/d/dotnet
Arguments: tool run Microsoft.TemplateSearch.TemplateDiscovery --basePath /private/tmp/helix/working/AC7809DC/t/dotnetSdkTests.Qk2rfdJJ/dotnet-new.IntegrationTests/CanRunDiscoveryTool/20260323185715895 --packagesPath /private/tmp/helix/working/AC7809DC/t/dotnetSdkTests.Qk2rfdJJ/CanRunDiscove---FF3DE652/TestNuGetPackage -v
Exit Code: 130
StdOut:
StdErr:
Failed to load /private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118/libhostpolicy.dylib, error: dlopen(/private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118/libhostpolicy.dylib, 0x0001): tried: '/private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64')), '/System/Volumes/Preboot/Cryptexes/OS/private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118/libhostpolicy.dylib' (no such file), '/private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118/libhostpolicy.dylib' (mach-o file, but is an incompatible architecture (have 'x86_64', need 'arm64e' or 'arm64'))
An error occurred while loading required library libhostpolicy.dylib from [/private/tmp/helix/working/AC7809DC/p/d/shared/Microsoft.NETCore.App/11.0.0-preview.1.26104.118]
, but found 130 (difference of 130).
Stack trace
at FluentAssertions.Execution.LateBoundTestFramework.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.AddPreFormattedFailure(String formattedFailureMessage)
at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
at FluentAssertions.Execution.AssertionChain.FailWith(Func`1 getFailureReason)
at FluentAssertions.Execution.AssertionChain.FailWith(String message, Object[] args)
at FluentAssertions.Numeric.NumericAssertionsBase`3.Be(T expected, String because, Object[] becauseArgs)
at Microsoft.NET.TestFramework.Assertions.CommandResultAssertions.ExitWith(Int32 expectedExitCode) in /_/test/Microsoft.NET.TestFramework/Assertions/CommandResultAssertions.cs:line 21
at Microsoft.DotNet.Cli.New.IntegrationTests.TemplateDiscoveryTool.Run(ITestOutputHelper log, String[] args) in /Users/runner/work/1/s/test/dotnet-new.IntegrationTests/TemplateDiscoveryTool.cs:line 48
at Microsoft.DotNet.Cli.New.IntegrationTests.TemplateDiscoveryTests.CanRunDiscoveryTool()
--- End of stack trace from previous location ---
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
untriagedRequest triage from a team memberRequest triage from a team member