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

LroHappyPathTestsRest test in AutoRest/Generators/CSharp/Azure.CSharp.Tests/AcceptanceTests.cs is failing on Travis Ubuntu 14.04 with CoreCLR RTM version #1208

Closed
hovsepm opened this issue Jun 29, 2016 · 1 comment

Comments

@hovsepm
Copy link
Contributor

hovsepm commented Jun 29, 2016

Need to add more logging/debug Unix execution to understand the reason, fix it and include in CI runs.
Here is the StackTrace from Travis:


    Microsoft.Rest.Generator.CSharp.Azure.Tests.AcceptanceTests.LroHappyPathTestsRest [FAIL]
      System.ObjectDisposedException : Cannot access a closed Stream.
      Stack Trace:
           at System.IO.__Error.StreamIsClosed()
           at System.IO.MemoryStream.Read(Byte[] buffer, Int32 offset, Int32 count)
           at System.IO.MemoryStream.ReadAsync(Byte[] buffer, Int32 offset, Int32 count, CancellationToken cancellationToken)
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
           at System.Net.Http.CurlHandler.MultiAgent.TransferDataFromRequestStream(IntPtr buffer, Int32 length, EasyRequest easy)
           at System.Net.Http.CurlHandler.MultiAgent.CurlSendCallback(IntPtr buffer, UInt64 size, UInt64 nitems, IntPtr context)
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
        /home/travis/build/Azure/autorest/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/RetryDelegatingHandler.cs(98,0): at Microsoft.Rest.RetryDelegatingHandler.<>c__DisplayClass11_0.<<SendAsync>b__1>d.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
        /home/travis/build/Azure/autorest/ClientRuntimes/CSharp/Microsoft.Rest.ClientRuntime/RetryDelegatingHandler.cs(132,0): at Microsoft.Rest.RetryDelegatingHandler.<SendAsync>d__11.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
           at System.Net.Http.HttpClient.<FinishSendAsync>d__58.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
        /home/travis/build/Azure/autorest/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs(175,0): at Fixtures.Azure.AcceptanceTestsLro.LRORetrysOperations.<BeginPut201CreatingSucceeded200WithHttpMessagesAsync>d__6.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
        /home/travis/build/Azure/autorest/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperations.cs(73,0): at Fixtures.Azure.AcceptanceTestsLro.LRORetrysOperations.<Put201CreatingSucceeded200WithHttpMessagesAsync>d__5.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()
        /home/travis/build/Azure/autorest/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs(59,0): at Fixtures.Azure.AcceptanceTestsLro.LRORetrysOperationsExtensions.<Put201CreatingSucceeded200Async>d__1.MoveNext()
        --- End of stack trace from previous location where exception was thrown ---
           at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
           at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
        /home/travis/build/Azure/autorest/AutoRest/Generators/CSharp/Azure.CSharp.Tests/Expected/AcceptanceTests/Lro/LRORetrysOperationsExtensions.cs(39,0): at Fixtures.Azure.AcceptanceTestsLro.LRORetrysOperationsExtensions.Put201CreatingSucceeded200(ILRORetrysOperations operations, Product product)
        /home/travis/build/Azure/autorest/AutoRest/Generators/CSharp/Azure.CSharp.Tests/AcceptanceTests.cs(267,0): at Microsoft.Rest.Generator.CSharp.Azure.Tests.AcceptanceTests.LroHappyPathTestsRest()

Side effect of PR #1210. Note: This test does not fail on Windows/Jenkins builds.

@fearthecowboy
Copy link
Member

I believe this is a known bug in the CoreCLR implementation on non-windows.

Hey @devigned - do you have a link to the bug in CoreCLR/CoreFX/... ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants