Repository navigation
Closed
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Hostblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Milestone
Description
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 |
Metadata
Metadata
Assignees
Labels
Known Build ErrorUse this to report build issues in the .NET Helix tabUse this to report build issues in the .NET Helix tabarea-Hostblocking-clean-ciBlocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Activity
jkotas commentedon 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
vitek-karas commentedon Sep 12, 2022
I looked at the logs of both of those failures and it's weird. The test log says something like (simplified):
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 commentedon 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 commentedon Sep 12, 2022
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
while main is using Preview 7
runtime/global.json
Lines 7 to 8 in 467fef4
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 commentedon Sep 12, 2022
This looks basically identical to #74328
The symptoms of that bug: publish returns 1 on success
vitek-karas commentedon Sep 12, 2022
Closing this as dupe of #74328 since it has the exact same behavior.
jkotas commentedon Oct 24, 2022
#74328 is not being hit by the CI anymore.
The following constructor parameters did not have matching fixture data: SharedTestState fixtureerror is still hit in CI frequently. Reopening to get accurate known build error accounting.carlossanlop commentedon Nov 3, 2022
The following release/7.0 backport PR hit the 3 symlink failures: #77501
Put_app_directory_behind_symlink
and
Put_dotnet_behind_symlink
and
Put_satellite_assembly_behind_symlink
elinor-fung commentedon Nov 3, 2022
#77524 added a workaround to main (same as what we did for the wasm failures). I just triggered a backport.
elinor-fung commentedon Jan 20, 2023
This was addressed when the repo switched to .NET 7 GA. The workarounds were removed in #79035