Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jkotas opened this issue Sep 12, 2022 · 12 comments
Closed

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

jkotas opened this issue Sep 12, 2022 · 12 comments
Labels
area-Host blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Milestone

Comments

@jkotas
Copy link
Member

jkotas commented Sep 12, 2022

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
@dotnet-issue-labeler
Copy link

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 ghost added the untriaged New issue has not been triaged by the area owner label Sep 12, 2022
@ghost
Copy link

ghost commented Sep 12, 2022

Tagging subscribers to this area: @vitek-karas, @agocke, @VSadov
See info in area-owners.md if you want to be subscribed.

Issue Details

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 
Author: jkotas
Assignees: -
Labels:

area-Host, untriaged

Milestone: -

@jkotas
Copy link
Member Author

jkotas commented Sep 12, 2022

Failed again in #75407

Full log: https://dev.azure.com/dnceng-public/public/_build/results?buildId=11802&view=ms.vss-test-web.build-test-results-tab&runId=235336&resultId=100032&paneView=debug

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 -o /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin /p:TestTargetRid=linux-x64 /p:MNAVersion=7.0.0-ci
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=linux-x64 --property:MNAVersion=7.0.0-ci -property:PublishDir=/root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./StartupHookWithMultipleIncorrectSignatures.csproj
/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/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/StartupHookWithMultipleIncorrectSignatures.csproj]
StartupHookWithMultipleIncorrectSignatures -> /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin/Debug/net7.0/StartupHookWithMultipleIncorrectSignatures.dll
StartupHookWithMultipleIncorrectSignatures -> /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin/

) (The following constructor parameters did not have matching fixture data: SharedTestState fixture)
---- 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 -o /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin /p:TestTargetRid=linux-x64 /p:MNAVersion=7.0.0-ci
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/root/runtime/.dotnet/sdk/7.0.100-rc.1.22425.9/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=linux-x64 --property:MNAVersion=7.0.0-ci -property:PublishDir=/root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./StartupHookWithMultipleIncorrectSignatures.csproj
/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/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/StartupHookWithMultipleIncorrectSignatures.csproj]
StartupHookWithMultipleIncorrectSignatures -> /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin/Debug/net7.0/StartupHookWithMultipleIncorrectSignatures.dll
StartupHookWithMultipleIncorrectSignatures -> /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin/

---- The following constructor parameters did not have matching fixture data: SharedTestState fixture

@jkotas jkotas added the blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' label Sep 12, 2022
@vitek-karas
Copy link
Member

I looked at the logs of both of those failures and it's weird. The test log says something like (simplified):

Command failed with exit code 1: /root/runtime/.dotnet/dotnet publish ...
Standard output: 
... MSBuild startup and so on ...
StartupHookWithMultipleIncorrectSignatures -> /root/runtime/artifacts/tests/Release/ha/k0ufkmfh.z0w/StartupHookWithMultipleIncorrectSignatures/bin/

There's no stderr printed out. The two failures are on a different test assets but otherwise look very similar.

Looking into the logs, the msbuild binlog for the publish command says that the command succeeded in both case.

So it's happening for different test assets, on different targets (one is linux_x64, the other one is linux_x64_musl) and rarely.

@elinor-fung as FYI and for possible ideas.

@carlossanlop
Copy link
Member

carlossanlop commented Sep 12, 2022

Seen also in this other release/7.0 PR: #75407 - Edit: Ah apologies, I just saw the second comment by @jkotas linking #75407.

I also saw it in this other release/7.0 PR: #75428

Please help determine if this test failure need a fix to get backported to that branch, or if the test can get disabled.

@elinor-fung
Copy link
Member

Seems like this is only happening in release/7.0 right now?

The tests run the SDK used by the repo to publish test projects/assets. Potential difference I see is that release/7.0 is using RC1

runtime/global.json

Lines 7 to 8 in cd483c1

"tools": {
"dotnet": "7.0.100-rc.1.22425.9"

while main is using Preview 7

runtime/global.json

Lines 7 to 8 in 467fef4

"tools": {
"dotnet": "7.0.100-preview.7.22377.5"

Maybe this is actually exposing a bug in RC1?

As @vitek-karas pointed out, it looks like the publish succeeds - or at least does not log any errors. But the exit code is 1. This is the binlog for the project in #75429 (comment) (renamed extension): PublishProject.binlog.log.

@vitek-karas
Copy link
Member

This looks basically identical to #74328
The symptoms of that bug: publish returns 1 on success

@vitek-karas
Copy link
Member

Closing this as dupe of #74328 since it has the exact same behavior.

@jkotas
Copy link
Member Author

jkotas commented Oct 24, 2022

Closing this as dupe of #74328 since it has the exact same behavior.

#74328 is not being hit by the CI anymore.

The following constructor parameters did not have matching fixture data: SharedTestState fixture error is still hit in CI frequently. Reopening to get accurate known build error accounting.

@jkotas jkotas reopened this Oct 24, 2022
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Oct 24, 2022
@elinor-fung elinor-fung added this to the 8.0.0 milestone Oct 27, 2022
@elinor-fung elinor-fung removed the untriaged New issue has not been triaged by the area owner label Oct 27, 2022
@carlossanlop
Copy link
Member

The following release/7.0 backport PR hit the 3 symlink failures: #77501

Put_app_directory_behind_symlink

Microsoft.NET.HostModel.Tests.AppHostUsedWithSymbolicLinks.Put_app_directory_behind_symlink
System.AggregateException : One or more errors occurred. (Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/

) (The following constructor parameters did not have matching fixture data: SharedTestState fixture)
---- Microsoft.DotNet.Cli.Build.Framework.BuildFailureException : Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/


---- The following constructor parameters did not have matching fixture data: SharedTestState fixture

and

Put_dotnet_behind_symlink

Microsoft.NET.HostModel.Tests.AppHostUsedWithSymbolicLinks.Put_dotnet_behind_symlink
System.AggregateException : One or more errors occurred. (Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/

) (The following constructor parameters did not have matching fixture data: SharedTestState fixture)
---- Microsoft.DotNet.Cli.Build.Framework.BuildFailureException : Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/


---- The following constructor parameters did not have matching fixture data: SharedTestState fixture

and

Put_satellite_assembly_behind_symlink

Microsoft.NET.HostModel.Tests.AppHostUsedWithSymbolicLinks.Put_satellite_assembly_behind_symlink
System.AggregateException : One or more errors occurred. (Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/

) (The following constructor parameters did not have matching fixture data: SharedTestState fixture)
---- Microsoft.DotNet.Cli.Build.Framework.BuildFailureException : Command failed with exit code 1: /Users/runner/work/1/s/.dotnet/dotnet publish /bl:PublishProject.binlog --no-restore --framework net7.0 /p:NetCoreAppCurrent=net7.0 -o /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin /p:TestTargetRid=osx-x64 /p:MNAVersion=7.0.0
Standard Output:
MSBuild version 17.4.0-preview-22416-02+5d102ae37 for .NET
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/MSBuild.dll -maxcpucount -property:_IsPublishing=true --property:NetCoreAppCurrent=net7.0 --property:TestTargetRid=osx-x64 --property:MNAVersion=7.0.0 -property:PublishDir=/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin -property:TargetFramework=net7.0 -target:Publish -verbosity:m /bl:PublishProject.binlog ./PortableApp.csproj
/Users/runner/work/1/s/.dotnet/sdk/7.0.100-rc.1.22431.11/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 [/Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/PortableApp.csproj]
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/Debug/net7.0/PortableApp.dll
  PortableApp -> /Users/runner/work/1/s/artifacts/tests/Release/hma/y0ebud3x.nhx/PortableApp/bin/


---- The following constructor parameters did not have matching fixture data: SharedTestState fixture

@elinor-fung
Copy link
Member

#77524 added a workaround to main (same as what we did for the wasm failures). I just triggered a backport.

@elinor-fung
Copy link
Member

This was addressed when the repo switched to .NET 7 GA. The workarounds were removed in #79035

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Host blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

No branches or pull requests

4 participants