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

Exclude a source-gen test project from NativeAOT #83881

Merged
merged 3 commits into from
Mar 25, 2023
Merged

Conversation

am11
Copy link
Member

@am11 am11 commented Mar 24, 2023

This one is failing in CI https://dev.azure.com/dnceng-public/public/_build/results?buildId=216092&view=logs&jobId=abdbb26b-d534-5e94-28a6-1260271ac680&j=abdbb26b-d534-5e94-28a6-1260271ac680&t=dbc42842-7b02-597d-a661-290954514df7

  Generating native code
EXEC : error : Failed to load assembly 'SQLitePCLRaw.core' [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to load assembly 'SQLitePCLRaw.core'
  Internal.TypeSystem.TypeSystemException+FileNotFoundException: Failed to load assembly 'SQLitePCLRaw.core'
     at Internal.TypeSystem.ThrowHelper.ThrowFileNotFoundException(ExceptionStringID, String) + 0x30
     at Internal.TypeSystem.ResolutionFailure.Throw() + 0x100
     at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle, NotFoundBehavior) + 0x9b
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ResolveHandle(EntityHandle) + 0x1e
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode) + 0x79
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode) + 0x47
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType() + 0x4f
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseFieldSignature() + 0x3b
     at Internal.TypeSystem.Ecma.EcmaField.InitializeFieldType() + 0x10b
     at Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType, InstanceLayoutKind) + 0x14a
     at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind) + 0x60
     at ILCompiler.CompilerTypeSystemContext.EnsureLoadableTypeUncached(TypeDesc) + 0x450
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.EETypeNode..ctor(NodeFactory, TypeDesc) + 0x14f
     at ILCompiler.DependencyAnalysis.NodeFactory.CreateNecessaryTypeNode(TypeDesc) + 0xf4
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.NodeFactory.NecessaryTypeSymbol(TypeDesc) + 0x9d
     at ILCompiler.DependencyAnalysis.GenericCompositionNode.GetDehydratableData(NodeFactory, Boolean) + 0x1e2
     at ILCompiler.DependencyAnalysis.DehydratableObjectNode.GetData(NodeFactory, Boolean) + 0x2e
     at ILCompiler.DependencyAnalysis.ObjectNode.GetStaticDependencies(NodeFactory) + 0x39
     at ILCompiler.Program.Run() + 0x16f4
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass206_0.<.ctor>b__0(InvocationContext context) + 0x201
/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1. [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1.

@ghost ghost added the community-contribution Indicates that the PR has been added by a community member label Mar 24, 2023
@ghost
Copy link

ghost commented Mar 24, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details

This one is failing in CI https://dev.azure.com/dnceng-public/public/_build/results?buildId=216092&view=logs&jobId=abdbb26b-d534-5e94-28a6-1260271ac680&j=abdbb26b-d534-5e94-28a6-1260271ac680&t=dbc42842-7b02-597d-a661-290954514df7

  Generating native code
EXEC : error : Failed to load assembly 'SQLitePCLRaw.core' [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to load assembly 'SQLitePCLRaw.core'
  Internal.TypeSystem.TypeSystemException+FileNotFoundException: Failed to load assembly 'SQLitePCLRaw.core'
     at Internal.TypeSystem.ThrowHelper.ThrowFileNotFoundException(ExceptionStringID, String) + 0x30
     at Internal.TypeSystem.ResolutionFailure.Throw() + 0x100
     at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle, NotFoundBehavior) + 0x9b
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ResolveHandle(EntityHandle) + 0x1e
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode) + 0x79
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode) + 0x47
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType() + 0x4f
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseFieldSignature() + 0x3b
     at Internal.TypeSystem.Ecma.EcmaField.InitializeFieldType() + 0x10b
     at Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType, InstanceLayoutKind) + 0x14a
     at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind) + 0x60
     at ILCompiler.CompilerTypeSystemContext.EnsureLoadableTypeUncached(TypeDesc) + 0x450
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.EETypeNode..ctor(NodeFactory, TypeDesc) + 0x14f
     at ILCompiler.DependencyAnalysis.NodeFactory.CreateNecessaryTypeNode(TypeDesc) + 0xf4
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.NodeFactory.NecessaryTypeSymbol(TypeDesc) + 0x9d
     at ILCompiler.DependencyAnalysis.GenericCompositionNode.GetDehydratableData(NodeFactory, Boolean) + 0x1e2
     at ILCompiler.DependencyAnalysis.DehydratableObjectNode.GetData(NodeFactory, Boolean) + 0x2e
     at ILCompiler.DependencyAnalysis.ObjectNode.GetStaticDependencies(NodeFactory) + 0x39
     at ILCompiler.Program.Run() + 0x16f4
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass206_0.<.ctor>b__0(InvocationContext context) + 0x201
/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1. [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1.
Author: am11
Assignees: -
Labels:

area-Infrastructure-libraries

Milestone: -

@ghost
Copy link

ghost commented Mar 24, 2023

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

Issue Details

This one is failing in CI https://dev.azure.com/dnceng-public/public/_build/results?buildId=216092&view=logs&jobId=abdbb26b-d534-5e94-28a6-1260271ac680&j=abdbb26b-d534-5e94-28a6-1260271ac680&t=dbc42842-7b02-597d-a661-290954514df7

  Generating native code
EXEC : error : Failed to load assembly 'SQLitePCLRaw.core' [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]EXEC(0,0): error : (NETCORE_ENGINEERING_TELEMETRY=Build) Failed to load assembly 'SQLitePCLRaw.core'
  Internal.TypeSystem.TypeSystemException+FileNotFoundException: Failed to load assembly 'SQLitePCLRaw.core'
     at Internal.TypeSystem.ThrowHelper.ThrowFileNotFoundException(ExceptionStringID, String) + 0x30
     at Internal.TypeSystem.ResolutionFailure.Throw() + 0x100
     at Internal.TypeSystem.Ecma.EcmaModule.GetObject(EntityHandle, NotFoundBehavior) + 0x9b
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ResolveHandle(EntityHandle) + 0x1e
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseTypeImpl(SignatureTypeCode) + 0x79
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType(SignatureTypeCode) + 0x47
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseType() + 0x4f
     at Internal.TypeSystem.Ecma.EcmaSignatureParser.ParseFieldSignature() + 0x3b
     at Internal.TypeSystem.Ecma.EcmaField.InitializeFieldType() + 0x10b
     at Internal.TypeSystem.MetadataFieldLayoutAlgorithm.ComputeInstanceLayout(DefType, InstanceLayoutKind) + 0x14a
     at Internal.TypeSystem.DefType.ComputeInstanceLayout(InstanceLayoutKind) + 0x60
     at ILCompiler.CompilerTypeSystemContext.EnsureLoadableTypeUncached(TypeDesc) + 0x450
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.EETypeNode..ctor(NodeFactory, TypeDesc) + 0x14f
     at ILCompiler.DependencyAnalysis.NodeFactory.CreateNecessaryTypeNode(TypeDesc) + 0xf4
     at Internal.TypeSystem.LockFreeReaderHashtable`2.CreateValueAndEnsureValueIsInTable(TKey) + 0x14
     at ILCompiler.DependencyAnalysis.NodeFactory.NecessaryTypeSymbol(TypeDesc) + 0x9d
     at ILCompiler.DependencyAnalysis.GenericCompositionNode.GetDehydratableData(NodeFactory, Boolean) + 0x1e2
     at ILCompiler.DependencyAnalysis.DehydratableObjectNode.GetData(NodeFactory, Boolean) + 0x2e
     at ILCompiler.DependencyAnalysis.ObjectNode.GetStaticDependencies(NodeFactory) + 0x39
     at ILCompiler.Program.Run() + 0x16f4
     at ILCompiler.ILCompilerRootCommand.<>c__DisplayClass206_0.<.ctor>b__0(InvocationContext context) + 0x201
/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1. [/__w/1/s/src/libraries/Microsoft.Extensions.Configuration.Binder/tests/SourceGenerationTests/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.csproj::TargetFramework=net8.0]
##[error]artifacts/bin/coreclr/linux.x64.Release/build/Microsoft.NETCore.Native.targets(268,5): error MSB3073: (NETCORE_ENGINEERING_TELEMETRY=Build) The command ""/__w/1/s/artifacts/bin/coreclr/linux.x64.Release/ilc-published/ilc" @"/__w/1/s/artifacts/obj/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests/Release/net8.0/native/Microsoft.Extensions.Configuration.Binder.SourceGeneration.Tests.ilc.rsp"" exited with code 1.
Author: am11
Assignees: -
Labels:

community-contribution, area-NativeAOT-coreclr

Milestone: -

@am11
Copy link
Member Author

am11 commented Mar 24, 2023

Please trigger runtime-extra-platforms pipeline against this PR.

@ViktorHofer
Copy link
Member

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@am11
Copy link
Member Author

am11 commented Mar 24, 2023

@ViktorHofer, thanks. This time tests from another project failed (on helix): https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-83881-merge-04ba140d0760456c9f/Microsoft.Extensions.Configuration.Binder.Tests/1/console.4e397aee.log?helixlogtype=result

[FAIL] Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests.ConsistentExceptionOnFailedBinding(type: typeof(int))
System.NotSupportedException : 'Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests+GenericOptions`1[System.Int32]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility
   at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xa4
   at System.Reflection.Runtime.MethodInfos.RuntimePlainConstructorInfo`1.Invoke(BindingFlags, Binder, Object[], CultureInfo) + 0x54
   at System.ActivatorImplementation.CreateInstance(Type, Boolean) + 0xc4
   at Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests.ConsistentExceptionOnFailedBinding(Type type) + 0x108
   at Microsoft.Extensions.Configuration.Binder!<BaseAddress>+0x4fbe4c
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x14c
[FAIL] Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests.ConsistentExceptionOnFailedBinding(type: typeof(System.TimeSpan))
System.NotSupportedException : 'Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests+GenericOptions`1[System.TimeSpan]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility
   at System.Reflection.Runtime.TypeInfos.RuntimeTypeInfo.get_TypeHandle() + 0xa4
   at System.Reflection.Runtime.MethodInfos.RuntimePlainConstructorInfo`1.Invoke(BindingFlags, Binder, Object[], CultureInfo) + 0x54
   at System.ActivatorImplementation.CreateInstance(Type, Boolean) + 0xc4
   at Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests.ConsistentExceptionOnFailedBinding(Type type) + 0x108
   at Microsoft.Extensions.Configuration.Binder!<BaseAddress>+0x4fbe4c
   at System.Reflection.DynamicInvokeInfo.Invoke(Object, IntPtr, Object[], BinderBundle, Boolean) + 0x14c
[FAIL] Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests.ConsistentExceptionOnFailedBinding(type: typeof(System.DateTimeOffset))
...

I've excluded the unit tests project as well. Could you please re-run the pipeline?

@am11
Copy link
Member Author

am11 commented Mar 24, 2023

System.NotSupportedException : 'Microsoft.Extensions.Configuration.Binder.Tests.ConfigurationBinderTests+GenericOptions`1[System.Int32]' is missing native code or metadata. This can happen for code that is not compatible with trimming or AOT. Inspect and fix trimming and AOT related warnings that were generated when the app was published. For more information see https://aka.ms/nativeaot-compatibility

cc @layomia

@ViktorHofer
Copy link
Member

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas
Copy link
Member

jkotas commented Mar 25, 2023

Opened #83915. The rest are known issues.

@jkotas
Copy link
Member

jkotas commented Mar 25, 2023

/azp run runtime-extra-platforms

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@jkotas jkotas merged commit 5318a31 into dotnet:main Mar 25, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Apr 24, 2023
@am11 am11 deleted the patch-18 branch June 14, 2024 04:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-NativeAOT-coreclr community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants