Open MaximLipnin opened 4 years ago
I hit this again on two different legs of my PR here:
===========================================================================================================
/private/tmp/helix/working/C0BC09C3/w/9AB30851/e /private/tmp/helix/working/C0BC09C3/w/9AB30851/e
Discovering: System.ComponentModel.Composition.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.ComponentModel.Composition.Tests (found 1423 of 1588 test cases)
Starting: System.ComponentModel.Composition.Tests (parallel test collections = on, max threads = 12)
/Users/runner/work/1/s/src/mono/mono/eglib/ghashtable.c:334: assertion 'hash != NULL' failed
/Users/runner/work/1/s/src/mono/mono/eglib/ghashtable.c:238: assertion 'hash != NULL' failed
Tests.Integration.ExportFactoryTests.ExportFactoryStandardImports_ShouldWorkProperly [FAIL]
System.NotSupportedException : Interface 'Tests.Integration.ExportFactoryTests+IIdTypeMetadata' is not a valid MetadataView; MetadataViews do not support non-public interfaces, and interfaces that contain members that are not properties.
---- System.TypeLoadException : Could not load type '_proxy_Tests.Integration.ExportFactoryTests+IIdTypeMetadata_fd7e9c79-c5a5-4130-bc52-0e379f05ff35' from assembly ''.
Stack Trace:
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewProvider.cs(44,0): at System.ComponentModel.Composition.MetadataViewProvider.GetMetadataView[IIdTypeMetadata](IDictionary`2 metadata)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/AttributedModelServices.cs(23,0): at System.ComponentModel.Composition.AttributedModelServices.GetMetadataView[IIdTypeMetadata](IDictionary`2 metadata)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ExportfactoryCreator.cs(70,0): at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.CreateStronglyTypedExportFactoryOfTM[IId,IIdTypeMetadata](Export export)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ExportfactoryCreator.cs(44,0): at System.ComponentModel.Composition.ReflectionModel.ExportFactoryCreator.<>c__DisplayClass4_0.<CreateStronglyTypedExportFactoryFactory>b__0(Export e)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(95,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastSingleExportToImportType(Type type, Export export)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(88,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastExportsToSingleImportType(Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(44,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastExportsToImportType(Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePart.cs(242,0): at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportingItem item, Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePart.cs(204,0): at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportDefinition definition, IEnumerable`1 exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.PartManager.cs(79,0): at System.ComponentModel.Composition.Hosting.ImportEngine.PartManager.TrySetImport(ImportDefinition import, Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(477,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(345,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(436,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(171,0): at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart part)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CompositionServices.cs(550,0): at System.ComponentModel.Composition.Hosting.CompositionServices.GetExportedValueFromComposedPart(ImportEngine engine, ComposablePart part, ExportDefinition definition)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CatalogExportProvider.cs(542,0): at System.ComponentModel.Composition.Hosting.CatalogExportProvider.GetExportedValue(CatalogPart part, ExportDefinition export, Boolean isSharedPart)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CatalogExportProvider.CatalogExport.cs(59,0): at System.ComponentModel.Composition.Hosting.CatalogExportProvider.CatalogExport.GetExportedValueCore()
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Primitives/Export.cs(204,0): at System.ComponentModel.Composition.Primitives.Export.get_Value()
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ExportServices.cs(140,0): at System.ComponentModel.Composition.ExportServices.GetCastedExportedValue[ExportFactoryImporter](Export export)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ExportProvider.GetExportOverrides.cs(732,0): at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValueCore[ExportFactoryImporter](String contractName, ImportCardinality cardinality)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ExportProvider.GetExportOverrides.cs(528,0): at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[ExportFactoryImporter](String contractName)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ExportProvider.GetExportOverrides.cs(478,0): at System.ComponentModel.Composition.Hosting.ExportProvider.GetExportedValue[ExportFactoryImporter]()
/_/src/libraries/System.ComponentModel.Composition/tests/System/ComponentModel/Composition/ExportFactoryTests.cs(133,0): at Tests.Integration.ExportFactoryTests.ExportFactoryStandardImports_ShouldWorkProperly()
/_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(378,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(1858,0): at System.RuntimeType.GetMethodsByName(String name, BindingFlags bindingAttr, MemberListType listType, RuntimeType reflectedType)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(564,0): at System.RuntimeType.GetMethodCandidates(String name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, Int32 genericParamCount, Boolean allowPrefixLookup)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(794,0): at System.RuntimeType.GetMethodImpl(String name, Int32 genericParamCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(786,0): at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
/_/src/libraries/System.Private.CoreLib/src/System/Type.cs(242,0): at System.Type.GetMethod(String name, BindingFlags bindingAttr)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewGenerator.cs(121,0): at System.ComponentModel.Composition.MetadataViewGenerator.GetMetadataViewFactory(Type viewType)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewProvider.cs(40,0): at System.ComponentModel.Composition.MetadataViewProvider.GetMetadataView[IIdTypeMetadata](IDictionary`2 metadata)
Finished: System.ComponentModel.Composition.Tests
=== TEST EXECUTION SUMMARY ===
System.ComponentModel.Composition.Tests Total: 1423, Errors: 0, Failed: 1, Skipped: 0, Time: 0.911s
===========================================================================================================
/root/helix/work/workitem /root/helix/work/workitem
Discovering: System.ComponentModel.Composition.Tests (method display = ClassAndMethod, method display options = None)
Discovered: System.ComponentModel.Composition.Tests (found 1423 of 1588 test cases)
Starting: System.ComponentModel.Composition.Tests (parallel test collections = on, max threads = 6)
/__w/1/s/src/mono/mono/eglib/ghashtable.c:334: assertion 'hash != NULL' failed
/__w/1/s/src/mono/mono/eglib/ghashtable.c:238: assertion 'hash != NULL' failed
Tests.Integration.RecompositionTests.Recomposition_IntegrationTest [FAIL]
System.NotSupportedException : Interface 'Tests.Integration.RecompositionTests+IRelationshipView' is not a valid MetadataView; MetadataViews do not support non-public interfaces, and interfaces that contain members that are not properties.
---- System.TypeLoadException : Could not load type '_proxy_Tests.Integration.RecompositionTests+IRelationshipView_830d7dc0-89c8-42b4-8d3f-686962821a7f' from assembly ''.
Stack Trace:
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewProvider.cs(44,0): at System.ComponentModel.Composition.MetadataViewProvider.GetMetadataView[IRelationshipView](IDictionary`2 metadata)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/AttributedModelServices.cs(23,0): at System.ComponentModel.Composition.AttributedModelServices.GetMetadataView[IRelationshipView](IDictionary`2 metadata)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ExportServices.cs(97,0): at System.ComponentModel.Composition.ExportServices.CreateStronglyTypedLazyOfTM[String,IRelationshipView](Export export)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(95,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastSingleExportToImportType(Type type, Export export)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(63,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastExportsToCollectionImportType(Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ImportingItem.cs(40,0): at System.ComponentModel.Composition.ReflectionModel.ImportingItem.CastExportsToImportType(Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePart.cs(242,0): at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportingItem item, Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/ReflectionModel/ReflectionComposablePart.cs(204,0): at System.ComponentModel.Composition.ReflectionModel.ReflectionComposablePart.SetImport(ImportDefinition definition, IEnumerable`1 exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.PartManager.cs(79,0): at System.ComponentModel.Composition.Hosting.ImportEngine.PartManager.TrySetImport(ImportDefinition import, Export[] exports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(477,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportSubset(PartManager partManager, IEnumerable`1 imports, AtomicComposition atomicComposition)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(357,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImportsStateMachine(PartManager partManager, ComposablePart part)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(436,0): at System.ComponentModel.Composition.Hosting.ImportEngine.TrySatisfyImports(PartManager partManager, ComposablePart part, Boolean shouldTrackImports)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ImportEngine.cs(171,0): at System.ComponentModel.Composition.Hosting.ImportEngine.SatisfyImports(ComposablePart part)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ComposablePartExportProvider.cs(314,0): at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.<>c__DisplayClass19_0.<Compose>b__0()
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CompositionServices.cs(577,0): at System.ComponentModel.Composition.Hosting.CompositionServices.TryInvoke(Action action)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/ComposablePartExportProvider.cs(313,0): at System.ComponentModel.Composition.Hosting.ComposablePartExportProvider.Compose(CompositionBatch batch)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/Hosting/CompositionContainer.cs(396,0): at System.ComponentModel.Composition.Hosting.CompositionContainer.Compose(CompositionBatch batch)
/_/src/libraries/System.ComponentModel.Composition/tests/System/Integration/RecompositionTests.cs(297,0): at Tests.Integration.RecompositionTests.Recomposition_IntegrationTest()
/_/src/mono/netcore/System.Private.CoreLib/src/System/Reflection/RuntimeMethodInfo.cs(378,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(1858,0): at System.RuntimeType.GetMethodsByName(String name, BindingFlags bindingAttr, MemberListType listType, RuntimeType reflectedType)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(564,0): at System.RuntimeType.GetMethodCandidates(String name, BindingFlags bindingAttr, CallingConventions callConv, Type[] types, Int32 genericParamCount, Boolean allowPrefixLookup)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(794,0): at System.RuntimeType.GetMethodImpl(String name, Int32 genericParamCount, BindingFlags bindingAttr, Binder binder, CallingConventions callConv, Type[] types, ParameterModifier[] modifiers)
/_/src/mono/netcore/System.Private.CoreLib/src/System/RuntimeType.Mono.cs(786,0): at System.RuntimeType.GetMethodImpl(String name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
/_/src/libraries/System.Private.CoreLib/src/System/Type.cs(242,0): at System.Type.GetMethod(String name, BindingFlags bindingAttr)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewGenerator.cs(121,0): at System.ComponentModel.Composition.MetadataViewGenerator.GetMetadataViewFactory(Type viewType)
/_/src/libraries/System.ComponentModel.Composition/src/System/ComponentModel/Composition/MetadataViewProvider.cs(40,0): at System.ComponentModel.Composition.MetadataViewProvider.GetMetadataView[IRelationshipView](IDictionary`2 metadata)
Finished: System.ComponentModel.Composition.Tests
=== TEST EXECUTION SUMMARY ===
System.ComponentModel.Composition.Tests Total: 1423, Errors: 0, Failed: 1, Skipped: 0, Time: 2.189s
Accidentally closed it from runfo.
I hit it just now too.
Either I’m looking at the wrong test or this issue should not have the disabled test label on it
Either I’m looking at the wrong test or this issue should not have the disabled test label on it
Maybe your build checked out before the PR to disable it was merged? https://github.com/dotnet/runtime/pull/46699
That's it. I was confused because this issue got a disabled test label months ago. I guess now it's true :)
Test is disabled, moving to Future.
I have no repro for this test locally, but it fails on
runtime (Libraries Test Run release mono OSX x64 Debug)
lane in https://github.com/dotnet/runtime/pull/2087.