Skip to content

Microsoft.DotNet.CoreSetup.Test.HostActivation tests failing in CI #75429

Description

@jkotas

Hit in #75408. Full log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=11824&view=ms.vss-test-web.build-test-results-tab&runId=235664&resultId=100162&paneView=debug

[EXEC       <] [FAIL] [00:01:38.800] /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints> /root/runtime/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 --self-contained true --runtime linux-musl-x64 -o /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin /p:TestTargetRid=linux-musl-x64 /p:MNAVersion=7.0.0-ci exited with 1
[xUnit.net 00:01:42.81]     Microsoft.DotNet.CoreSetup.Test.HostActivation.NativeHosting.GetFunctionPointer.CallDelegateOnApplicationContext_UnhandledException [FAIL]
[xUnit.net 00:01:42.81]       System.AggregateException : One or more errors occurred. (Command failed with exit code 1: /root/runtime/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 --self-contained true --runtime linux-musl-x64 -o /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin /p:TestTargetRid=linux-musl-x64 /p:MNAVersion=7.0.0-ci
[xUnit.net 00:01:42.81]       Standard Output:
[xUnit.net 00:01:42.81]       MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
[xUnit.net 00:01:42.81]       /root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=linux-musl-x64 --property:MNAVersion=7.0.0-ci -property:PublishDir=/root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin -property:SelfContained=True -property:_CommandLineDefinedSelfContained=true -property:TargetFramework=net7.0 -property:RuntimeIdentifier=linux-musl-x64 -property:_CommandLineDefinedRuntimeIdentifier=true -target:Publish -verbosity:m /bl:PublishProject.binlog ./AppWithCustomEntryPoints.csproj
[xUnit.net 00:01:42.81]       /root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/AppWithCustomEntryPoints.csproj]
[xUnit.net 00:01:42.81]         AppWithCustomEntryPoints -> /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin/Debug/net7.0/linux-musl-x64/AppWithCustomEntryPoints.dll
[xUnit.net 00:01:42.81]       
[xUnit.net 00:01:42.81]       ) (The following constructor parameters did not have matching fixture data: SharedTestState sharedTestState)
[xUnit.net 00:01:42.81]       ---- Microsoft.DotNet.Cli.Build.Framework.BuildFailureException : Command failed with exit code 1: /root/runtime/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 --self-contained true --runtime linux-musl-x64 -o /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin /p:TestTargetRid=linux-musl-x64 /p:MNAVersion=7.0.0-ci
[xUnit.net 00:01:42.81]       Standard Output:
[xUnit.net 00:01:42.81]       MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
[xUnit.net 00:01:42.81]       /root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=linux-musl-x64 --property:MNAVersion=7.0.0-ci -property:PublishDir=/root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin -property:SelfContained=True -property:_CommandLineDefinedSelfContained=true -property:TargetFramework=net7.0 -property:RuntimeIdentifier=linux-musl-x64 -property:_CommandLineDefinedRuntimeIdentifier=true -target:Publish -verbosity:m /bl:PublishProject.binlog ./AppWithCustomEntryPoints.csproj
[xUnit.net 00:01:42.81]       /root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(219,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/AppWithCustomEntryPoints.csproj]
[xUnit.net 00:01:42.81]         AppWithCustomEntryPoints -> /root/runtime/artifacts/tests/Release/ha/sdornqub.dxh/AppWithCustomEntryPoints/bin/Debug/net7.0/linux-musl-x64/AppWithCustomEntryPoints.dll
[xUnit.net 00:01:42.81]       
[xUnit.net 00:01:42.82]       
[xUnit.net 00:01:42.82]       ---- The following constructor parameters did not have matching fixture data: SharedTestState sharedTestState
[xUnit.net 00:01:42.82]       Stack Trace:
[xUnit.net 00:01:42.82]         
[xUnit.net 00:01:42.82]         ----- Inner Stack Trace #1 (Microsoft.DotNet.Cli.Build.Framework.BuildFailureException) -----
[xUnit.net 00:01:42.82]         /_/src/installer/tests/TestUtils/CommandResult.cs(46,0): at Microsoft.DotNet.Cli.Build.Framework.CommandResult.EnsureSuccessful(Boolean suppressOutput)
[xUnit.net 00:01:42.82]         /_/src/installer/tests/TestUtils/TestProjectFixture.cs(333,0): at Microsoft.DotNet.CoreSetup.Test.TestProjectFixture.PublishProject(DotNetCli dotnet, String runtime, String framework, Nullable`1 selfContained, String outputDirectory, Boolean singleFile, Boolean restore, String[] extraArgs)
[xUnit.net 00:01:42.82]         /_/src/installer/tests/HostActivation.Tests/NativeHosting/GetFunctionPointer.cs(240,0): at Microsoft.DotNet.CoreSetup.Test.HostActivation.NativeHosting.GetFunctionPointer.SharedTestState..ctor()
[xUnit.net 00:01:42.82]            at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
[xUnit.net 00:01:42.82]            at System.Reflection.ConstructorInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
[xUnit.net 00:01:42.82]         ----- Inner Stack Trace #2 (Xunit.Sdk.TestClassException) -----
[xUnit.net 00:01:42.82]         
[EXEC       >] [....] [00:01:38.834] /root/runtime/artifacts/tests/Release/ha/nativeHosting/1/nativehost resolve_component_dependencies run_app_and_resolve 
{
   "ErrorMessage":"The following constructor parameters did not have matching fixture data: SharedTestState fixture"
}

Report

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 0

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build ErrorUse this to report build issues in the .NET Helix tabarea-Hostblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions