{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/corefx/issues/18869","repository_url":"https://api.github.com/repos/dotnet/corefx","labels_url":"https://api.github.com/repos/dotnet/corefx/issues/18869/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/18869/comments","events_url":"https://api.github.com/repos/dotnet/corefx/issues/18869/events","html_url":"https://github.com/dotnet/corefx/issues/18869","id":223939142,"number":18869,"title":"System.Net.Tests.HttpRequestStreamTests.Read_FullLengthSynchronous_Success failed in CI","user":{"login":"steveharter","id":6986755,"avatar_url":"https://avatars3.githubusercontent.com/u/6986755?v=3","gravatar_id":"","url":"https://api.github.com/users/steveharter","html_url":"https://github.com/steveharter","followers_url":"https://api.github.com/users/steveharter/followers","following_url":"https://api.github.com/users/steveharter/following{/other_user}","gists_url":"https://api.github.com/users/steveharter/gists{/gist_id}","starred_url":"https://api.github.com/users/steveharter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/steveharter/subscriptions","organizations_url":"https://api.github.com/users/steveharter/orgs","repos_url":"https://api.github.com/users/steveharter/repos","events_url":"https://api.github.com/users/steveharter/events{/privacy}","received_events_url":"https://api.github.com/users/steveharter/received_events","type":"User","site_admin":false},"labels":[{"id":497898703,"url":"https://api.github.com/repos/dotnet/corefx/labels/area-System.Net.Http","name":"area-System.Net.Http","color":"d4c5f9","default":false},{"id":145399955,"url":"https://api.github.com/repos/dotnet/corefx/labels/bug","name":"bug","color":"207de5","default":true},{"id":311091887,"url":"https://api.github.com/repos/dotnet/corefx/labels/os-windows","name":"os-windows","color":"fef2c0","default":false},{"id":469563225,"url":"https://api.github.com/repos/dotnet/corefx/labels/test-run-core","name":"test-run-core","color":"b60205","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dotnet/corefx/milestones/4","html_url":"https://github.com/dotnet/corefx/milestone/4","labels_url":"https://api.github.com/repos/dotnet/corefx/milestones/4/labels","id":1248719,"number":4,"title":"2.0.0","description":".NET Core 2.0, next major release. The due date 5/10 is [ZBB](https://github.com/dotnet/corefx/issues/17619) and expected time of last FI from master into release branch. See [official release dates](https://github.com/dotnet/core/blob/master/roadmap.md) for details.","creator":{"login":"joshfree","id":1302850,"avatar_url":"https://avatars2.githubusercontent.com/u/1302850?v=3","gravatar_id":"","url":"https://api.github.com/users/joshfree","html_url":"https://github.com/joshfree","followers_url":"https://api.github.com/users/joshfree/followers","following_url":"https://api.github.com/users/joshfree/following{/other_user}","gists_url":"https://api.github.com/users/joshfree/gists{/gist_id}","starred_url":"https://api.github.com/users/joshfree/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshfree/subscriptions","organizations_url":"https://api.github.com/users/joshfree/orgs","repos_url":"https://api.github.com/users/joshfree/repos","events_url":"https://api.github.com/users/joshfree/events{/privacy}","received_events_url":"https://api.github.com/users/joshfree/received_events","type":"User","site_admin":false},"open_issues":112,"closed_issues":7464,"state":"open","created_at":"2015-08-10T18:04:00Z","updated_at":"2017-05-02T18:54:32Z","due_on":"2017-05-10T07:00:00Z","closed_at":null},"comments":12,"created_at":"2017-04-24T20:20:29Z","updated_at":"2017-05-02T19:41:22Z","closed_at":null,"body":"This test has a ~1% failure rate on windows 2008 when running on an offline CI machine repeatedly in a loop, and has recently failed in CI.\r\n\r\nIn all cases the detail is as follows (including the test arguments of True, \"\")\r\n```\r\n   System.Net.Tests.HttpRequestStreamTests.Read_FullLengthSynchronous_Success(transferEncodingChunked: True, text: \\\"\\\") [FAIL]\r\n      System.Net.Http.HttpRequestException : An error occurred while sending the request.\r\n      ---- System.Net.Http.WinHttpException : The server returned an invalid or unrecognized response\r\n      Stack Trace:\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n            at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1.ConfiguredTaskAwaiter.GetResult()\r\n            at System.Net.Http.HttpClient.<FinishSendAsyncBuffered>d__58.MoveNext()\r\n         --- End of stack trace from previous location where exception was thrown ---\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n            at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()\r\n            at System.Net.Tests.HttpRequestStreamTests.<Read_FullLengthSynchronous_Success>d__6.MoveNext()\r\n         --- End of stack trace from previous location where exception was thrown ---\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n         --- End of stack trace from previous location where exception was thrown ---\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n         --- End of stack trace from previous location where exception was thrown ---\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n         ----- Inner Stack Trace -----\r\n            at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n            at System.Threading.Tasks.RendezvousAwaitable`1.GetResult()\r\n            at System.Net.Http.WinHttpHandler.<StartRequest>d__105.MoveNext()\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/corefx/issues/comments/298739442","html_url":"https://github.com/dotnet/corefx/issues/18869#issuecomment-298739442","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/18869","id":298739442,"user":{"login":"davidsh","id":7684835,"avatar_url":"https://avatars3.githubusercontent.com/u/7684835?v=3","gravatar_id":"","url":"https://api.github.com/users/davidsh","html_url":"https://github.com/davidsh","followers_url":"https://api.github.com/users/davidsh/followers","following_url":"https://api.github.com/users/davidsh/following{/other_user}","gists_url":"https://api.github.com/users/davidsh/gists{/gist_id}","starred_url":"https://api.github.com/users/davidsh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidsh/subscriptions","organizations_url":"https://api.github.com/users/davidsh/orgs","repos_url":"https://api.github.com/users/davidsh/repos","events_url":"https://api.github.com/users/davidsh/events{/privacy}","received_events_url":"https://api.github.com/users/davidsh/received_events","type":"User","site_admin":false},"created_at":"2017-05-02T19:41:22Z","updated_at":"2017-05-02T19:41:22Z","body":"I was able to get traces and have WinHTTP team help decode them. \r\n\r\nIt turns out the test case that causes the test failure is this:\r\n\r\n```c#\r\n        [ConditionalTheory(nameof(PlatformDetection) + \".\" + nameof(PlatformDetection.IsNotOneCoreUAP))]\r\n        [InlineData(true, \"\")]\r\n        [InlineData(false, \"\")]\r\n        [InlineData(true, \"Non-Empty\")]\r\n        [InlineData(false, \"Non-Empty\")]\r\n        public async Task Read_FullLengthSynchronous_Success(bool transferEncodingChunked, string text)\r\n        {\r\n```\r\n\r\nThere seems to be a bug in WinHttpHandler dealing with sending zero-length content using chunked encoding. \r\n\r\nSo, this test failure is actually an HttpClient product issue even though these tests themselves are testing HttpListener.\r\n\r\nI’ll take a closer look at this.  Perhaps I’ll be able to reproduce the problem using an HttpClient unit test.\r\n"}}
{"actor":{"display_login":"davidsh"}}