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

Test failure DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub #61643

Closed
VincentBu opened this issue Nov 16, 2021 · 6 comments
Labels
arch-x64 area-Interop-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-mac-os-x macOS aka OSX
Milestone

Comments

@VincentBu
Copy link
Contributor

Run: runtime 20211115.108

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub

Error message:

Assert.Collection() Failure
Collection: []
Expected item count: 5
Actual item count:   0


Stack trace
   at DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub() in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/IncrementalGenerationTests.cs:line 149
--- End of stack trace from previous location ---

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.AttributeForwarding.UnmanagedCallConvAttribute_SingleCallConvType
- DllImportGenerator.UnitTests.AttributeForwarding.UnmanagedCallConvAttribute_EmptyCallConvArray

One of error message:

Assert.Empty() Failure
Expected: <empty>
Actual:   [(8,29): error CS8795: Partial method 'C.Method1()' must have an implementation part because it has accessibility modifiers., (6,6): error CS0518: Predefined type 'System.Object' is not defined or imported, (6,6): error CS0246: The type or namespace name 'UnmanagedCallConvAttribute' could not be found (are you missing a using directive or an assembly reference?), (6,6): error CS0246: The type or namespace name 'UnmanagedCallConv' could not be found (are you missing a using directive or an assembly reference?), (7,6): error CS0518: Predefined type 'System.Object' is not defined or imported, ...]


Stack trace
   at DllImportGenerator.UnitTests.AttributeForwarding.UnmanagedCallConvAttribute_SingleCallConvType() in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs:line 125
--- End of stack trace from previous location ---

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\nusing System.Runtime.InteropServices;\\npartial c\"..., preprocessorSymbols: [])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\nusing System.Runtime.InteropServices;\\npartial c\"..., preprocessorSymbols: [\"Foo\"])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\npartial class Test\\n{\\n#if Foo\\n [System.Runt\"..., preprocessorSymbols: [])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\npartial class Test\\n{\\n#if Foo\\n [System.Runt\"..., preprocessorSymbols: [\"Foo\"])

One of error message:

Assert.All() Failure: 12 out of 13 items in the collection did not pass.
[12]: Item: (3,15): error CS1729: 'object' does not contain a constructor that takes 0 arguments
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS1729"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[11]: Item: (17,38): error CS0518: Predefined type 'System.Exception' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[10]: Item: (5,6): error CS0518: Predefined type 'System.Void' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[9]: Item: (5,25): error CS0518: Predefined type 'System.String' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[8]: Item: (5,6): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0012"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[7]: Item: (5,6): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[6]: Item: (17,19): error CS0518: Predefined type 'System.Int32' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[5]: Item: (12,27): error CS0518: Predefined type 'System.Int32' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[4]: Item: (15,13): error CS0518: Predefined type 'System.Int32' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[3]: Item: (14,12): error CS0518: Predefined type 'System.Int32' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[2]: Item: (13,9): error CS0518: Predefined type 'System.Int32' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[0]: Item: (3,15): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)


Stack trace
   at DllImportGenerator.UnitTests.TestUtils.AssertPreSourceGeneratorCompilation(Compilation comp) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 73
   at DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(String source, IEnumerable`1 preprocessorSymbols) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/Compiles.cs:line 304
--- End of stack trace from previous location ---
@dotnet-issue-labeler dotnet-issue-labeler bot added area-Interop-coreclr untriaged New issue has not been triaged by the area owner labels Nov 16, 2021
@AaronRobinsonMSFT
Copy link
Member

/cc @jkoritzinsky

@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label Nov 25, 2021
@AaronRobinsonMSFT AaronRobinsonMSFT added this to the 7.0.0 milestone Nov 25, 2021
@VincentBu
Copy link
Contributor Author

Failed again in: runtime 20211209.50

Failed test;

net7.0-windows-Release-x86-CoreCLR_release-Windows.10.Amd64.Server19H1.Open

- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\r\\nusing System.Runtime.InteropServices;\\r\\nparti\"..., preprocessorSymbols: [\"Foo\"])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\r\\nusing System.Runtime.InteropServices;\\r\\nparti\"..., preprocessorSymbols: [])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\r\\npartial class Test\\r\\n{\\r\\n#if Foo\\r\\n [Sys\"..., preprocessorSymbols: [])
- DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(source: \"\\r\\npartial class Test\\r\\n{\\r\\n#if Foo\\r\\n [Sys\"..., preprocessorSymbols: [\"Foo\"])
- DllImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(targetFramework: Core, expectSkipLocalsInit: False)
- DllImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(targetFramework: Net5, expectSkipLocalsInit: False)
- DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub
- DllImportGenerator.UnitTests.IncrementalGenerationTests.AddingFileWithNewGeneratedDllImport_DoesNotRegenerateOriginalMethod
- DllImportGenerator.UnitTests.IncrementalGenerationTests.ReplacingFileWithNewGeneratedDllImport_DoesNotRegenerateStubsInOtherFiles
- DllImportGenerator.UnitTests.IncrementalGenerationTests.AddingNewUnrelatedType_DoesNotRegenerateSource

Error message:

NuGet.Protocol.Core.Types.FatalProtocolException : Error downloading 'Microsoft.NETCore.App.Ref.6.0.0-preview.6.21352.12' from 'https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/45bacae2-5efb-47c8-91e5-8ec20c22b4f8/nuget/v3/flat2/microsoft.netcore.app.ref/6.0.0-preview.6.21352.12/microsoft.netcore.app.ref.6.0.0-preview.6.21352.12.nupkg'.
---- System.Net.Http.HttpRequestException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. (bcnvsblobprodcus378.vsblob.vsassets.io:443)
-------- System.Net.Sockets.SocketException : A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.


Stack trace
   at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
   at NuGet.Protocol.DownloadResourceV3.GetDownloadResourceResultAsync(PackageIdentity identity, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 323
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 197
   at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken) in /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs:line 174
   at DllImportGenerator.UnitTests.TestUtils.ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 210
   at DllImportGenerator.UnitTests.TestUtils.CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework, OutputKind outputKind, Boolean allowUnsafe, IEnumerable`1 preprocessorSymbols) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 120
   at DllImportGenerator.UnitTests.Compiles.ValidateSnippetsWithPreprocessorDefintions(String source, IEnumerable`1 preprocessorSymbols) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/Compiles.cs:line 303
--- End of stack trace from previous location ---
----- Inner Stack Trace -----
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1426
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1370
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 0
   at System.Net.Http.HttpConnectionPool.AddHttp11ConnectionAsync(HttpRequestMessage request) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 470
   at System.Threading.Tasks.TaskCompletionSourceWithCancellation`1.WaitWithCancellationAsync(CancellationToken cancellationToken) in /_/src/libraries/Common/src/System/Threading/Tasks/TaskCompletionSourceWithCancellation.cs:line 23
   at System.Net.Http.HttpConnectionPool.GetHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 548
   at System.Net.Http.HttpConnectionPool.SendWithVersionDetectionAndRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 988
   at System.Net.Http.AuthenticationHelper.SendWithAuthAsync(HttpRequestMessage request, Uri authUri, Boolean async, ICredentials credentials, Boolean preAuthenticate, Boolean isProxyAuth, Boolean doRequestAuth, HttpConnectionPool pool, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/AuthenticationHelper.cs:line 326
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:line 81
   at System.Net.Http.DecompressionHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/DecompressionHandler.cs:line 69
   at NuGet.Protocol.ServerWarningLogHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at NuGet.Protocol.HttpSourceAuthenticationHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken)
   at System.Net.Http.HttpClient.<SendAsync>g__Core|83_0(HttpRequestMessage request, HttpCompletionOption completionOption, CancellationTokenSource cts, Boolean disposeCts, CancellationTokenSource pendingRequestsCts, CancellationToken originalCancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 553
   at NuGet.Protocol.HttpRetryHandler.<>c__DisplayClass2_1.<<SendAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at NuGet.Protocol.TimeoutUtility.StartWithTimeout[T](Func`2 getTask, TimeSpan timeout, String timeoutMessage, CancellationToken token)
   at NuGet.Protocol.HttpRetryHandler.SendAsync(HttpRetryHandlerRequest request, String source, ILogger log, CancellationToken cancellationToken)
   at NuGet.Protocol.HttpSource.GetThrottledResponse(Func`1 requestFactory, TimeSpan requestTimeout, TimeSpan downloadTimeout, Int32 maxTries, Boolean isRetry, Boolean isLastAttempt, Guid sessionId, ILogger log, CancellationToken cancellationToken)
   at NuGet.Protocol.HttpSource.ProcessResponseAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
   at NuGet.Protocol.HttpSource.ProcessStreamAsync[T](HttpSourceRequest request, Func`2 processAsync, SourceCacheContext cacheContext, ILogger log, CancellationToken token)
   at NuGet.Protocol.GetDownloadResultUtility.GetDownloadResultAsync(HttpSource client, PackageIdentity identity, Uri uri, PackageDownloadContext downloadContext, String globalPackagesFolder, ILogger logger, CancellationToken token)
----- Inner Stack Trace -----
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token) in /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs:line 1396
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|278_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Sockets/src/System/Net/Sockets/Socket.Tasks.cs:line 126
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken) in /_/src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 1426

@VincentBu
Copy link
Contributor Author

Failed again in: runtime 20211227.7

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub

Error message:

Assert.Collection() Failure
Collection: []
Expected item count: 5
Actual item count:   0


Stack trace
   at DllImportGenerator.UnitTests.IncrementalGenerationTests.ChangingMarshallingStrategy_RegeneratesStub() in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/IncrementalGenerationTests.cs:line 149
--- End of stack trace from previous location ---

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.CompileFails.ValidateSnippets_InvalidCodeGracefulFailure(source: \"\\nusing System.Runtime.InteropServices;\\n\\npartial\"..., expectedGeneratorErrors: 5, expectedCompilerErrors: 2)
- DllImportGenerator.UnitTests.CompileFails.ValidateSnippets_InvalidCodeGracefulFailure(source: \"\\nusing System.Runtime.InteropServices;\\n\\npartial\"..., expectedGeneratorErrors: 5, expectedCompilerErrors: 1)

Error message:

Assert.Equal() Failure
Expected: 5
Actual:   0


Stack trace
   at DllImportGenerator.UnitTests.CompileFails.ValidateSnippets_InvalidCodeGracefulFailure(String source, Int32 expectedGeneratorErrors, Int32 expectedCompilerErrors) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/CompileFails.cs:line 163
--- End of stack trace from previous location ---

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.AttributeForwarding.UnmanagedCallConvAttribute_EmptyCallConvArray

Error message:

Assert.Empty() Failure
Expected: <empty>
Actual:   [(8,29): error CS8795: Partial method 'C.Method1()' must have an implementation part because it has accessibility modifiers., (6,6): error CS0518: Predefined type 'System.Object' is not defined or imported, (6,6): error CS0246: The type or namespace name 'UnmanagedCallConvAttribute' could not be found (are you missing a using directive or an assembly reference?), (6,6): error CS0246: The type or namespace name 'UnmanagedCallConv' could not be found (are you missing a using directive or an assembly reference?), (7,6): error CS0518: Predefined type 'System.Object' is not defined or imported, ...]


Stack trace
   at DllImportGenerator.UnitTests.AttributeForwarding.UnmanagedCallConvAttribute_EmptyCallConvArray() in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/AttributeForwarding.cs:line 83
--- End of stack trace from previous location ---

Failed test:

net7.0-OSX-Release-x64-Mono_release-OSX.1014.Amd64.Open

- DllImportGenerator.UnitTests.Compiles.ValidateSnippets(source: \"\\nusing System.Runtime.InteropServices;\\n\\npartial\"...)

Error message:

Assert.All() Failure: 21 out of 27 items in the collection did not pass.
[26]: Item: (4,15): error CS1729: 'object' does not contain a constructor that takes 0 arguments
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS1729"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[25]: Item: (6,6): error CS0518: Predefined type 'System.Void' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[24]: Item: (6,25): error CS0518: Predefined type 'System.String' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[23]: Item: (6,6): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0012"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[22]: Item: (6,6): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[20]: Item: (7,35): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[19]: Item: (7,27): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[17]: Item: (11,21): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[16]: Item: (11,13): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[14]: Item: (10,21): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[13]: Item: (10,13): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[11]: Item: (9,20): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[10]: Item: (9,12): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[8]: Item: (8,17): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[7]: Item: (8,9): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[6]: Item: (14,8): error CS0518: Predefined type 'System.ValueType' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[5]: Item: (13,2): error CS0518: Predefined type 'System.Void' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[4]: Item: (13,2): error CS0012: The type 'Attribute' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Runtime, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'.
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0012"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[3]: Item: (13,2): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[2]: Item: (13,2): error CS0518: Predefined type 'System.ValueType' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in //src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)
[0]: Item: (4,15): error CS0518: Predefined type 'System.Object' is not defined or imported
Xunit.Sdk.SubsetException: Assert.Subset() Failure
Expected: HashSet<String> ["CS8795", "CS0234", "CS0246", "CS8019"]
Actual:   HashSet<String> ["CS0518"]
at Xunit.Assert.Subset[String](ISet1 expectedSuperset, ISet1 actual)
at DllImportGenerator.UnitTests.TestUtils.<>c__DisplayClass0_0.<AssertPreSourceGeneratorCompilation>b__0(Diagnostic diag) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 75
at Xunit.Assert.All[Diagnostic](IEnumerable1 collection, Action1 action)


Stack trace
   at DllImportGenerator.UnitTests.TestUtils.AssertPreSourceGeneratorCompilation(Compilation comp) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/TestUtils.cs:line 73
   at DllImportGenerator.UnitTests.Compiles.ValidateSnippets(String source) in /_/src/libraries/System.Runtime.InteropServices/tests/DllImportGenerator.UnitTests/Compiles.cs:line 278
--- End of stack trace from previous location ---

@adamsitnik
Copy link
Member

Failed again. From console logs:

===========================================================================================================
/private/tmp/helix/working/AA490965/w/A7300944/e /private/tmp/helix/working/AA490965/w/A7300944/e
  Discovering: LibraryImportGenerator.Unit.Tests (method display = ClassAndMethod, method display options = None)
  Discovered:  LibraryImportGenerator.Unit.Tests (found 126 test cases)
  Starting:    LibraryImportGenerator.Unit.Tests (parallel test collections = on, max threads = 6)
    LibraryImportGenerator.UnitTests.Compiles.ValidateSnippetsWithMarshalType [SKIP]
      No current scenarios to test.
    LibraryImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(targetFramework: Net6, expectSkipLocalsInit: True) [FAIL]
      System.ArgumentNullException : Value cannot be null. (Parameter 'packageStream')
      Stack Trace:
           at NuGet.Packaging.PackageExtractor.ExtractPackageAsync(String source, Stream packageStream, PackagePathResolver packagePathResolver, PackageExtractionContext packageExtractionContext, CancellationToken token, Guid parentId)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(358,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(197,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(174,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(228,0): at LibraryImportGenerator.UnitTests.TestUtils.ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(174,0): at LibraryImportGenerator.UnitTests.TestUtils.GetReferenceAssemblies(TestTargetFramework targetFramework)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(132,0): at LibraryImportGenerator.UnitTests.TestUtils.CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework, OutputKind outputKind)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/AdditionalAttributesOnStub.cs(143,0): at LibraryImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(TestTargetFramework targetFramework, Boolean expectSkipLocalsInit)
        --- End of stack trace from previous location ---
  Finished:    LibraryImportGenerator.Unit.Tests
=== TEST EXECUTION SUMMARY ===

@danmoseley
Copy link
Member

@dotnet/interop-contrib hit again on https://github.com/dotnet/runtime/pull/67501/checks?check_run_id=5806680792

  Starting:    LibraryImportGenerator.Unit.Tests (parallel test collections = on, max threads = 6)
    LibraryImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(targetFramework: Net6, expectSkipLocalsInit: True) [FAIL]
      System.ArgumentNullException : Value cannot be null. (Parameter 'packageStream')
      Stack Trace:
           at NuGet.Packaging.PackageExtractor.ExtractPackageAsync(String source, Stream packageStream, PackagePathResolver packagePathResolver, PackageExtractionContext packageExtractionContext, CancellationToken token, Guid parentId)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(358,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveCoreAsync(String language, CancellationToken cancellationToken)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(197,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
        /_/src/Microsoft.CodeAnalysis.Testing/Microsoft.CodeAnalysis.Analyzer.Testing/ReferenceAssemblies.cs(174,0): at Microsoft.CodeAnalysis.Testing.ReferenceAssemblies.ResolveAsync(String language, CancellationToken cancellationToken)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(228,0): at LibraryImportGenerator.UnitTests.TestUtils.ResolveReferenceAssemblies(ReferenceAssemblies referenceAssemblies)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(174,0): at LibraryImportGenerator.UnitTests.TestUtils.GetReferenceAssemblies(TestTargetFramework targetFramework)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/TestUtils.cs(132,0): at LibraryImportGenerator.UnitTests.TestUtils.CreateCompilation(SyntaxTree[] sources, TestTargetFramework targetFramework, OutputKind outputKind)
        /_/src/libraries/System.Runtime.InteropServices/tests/LibraryImportGenerator.UnitTests/AdditionalAttributesOnStub.cs(143,0): at LibraryImportGenerator.UnitTests.AdditionalAttributesOnStub.SkipLocalsInitOnDownlevelTargetFrameworks(TestTargetFramework targetFramework, Boolean expectSkipLocalsInit)
        --- End of stack trace from previous location ---
    LibraryImportGenerator.UnitTests.Compiles.ValidateSnippetsWithMarshalType [SKIP]

@danmoseley
Copy link
Member

We believe we fixed the package stream issue in Roslyn SDK.

@ghost ghost locked as resolved and limited conversation to collaborators May 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-x64 area-Interop-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' os-mac-os-x macOS aka OSX
Projects
None yet
Development

No branches or pull requests

5 participants