Skip to content

timeout in ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream #67509

Closed

Description

@danmoseley

net7.0-windows-Debug-x64-CoreCLR_release-Windows.11.Amd64.ClientPre.Open
System.Net.Http.Functional.Tests.Http1SingleChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream

It seems it didn't fail before, but on this PR it failed the same way on retry.

    System.Net.Http.Functional.Tests.Http1SingleChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream(readMode: AsyncArray, useSsl: False) [FAIL]
      System.TimeoutException : The operation has timed out.
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamZeroByteReadTests.cs(125,0): at System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTestBase.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream(ReadWriteMode readMode, Boolean useSsl)
        --- End of stack trace from previous location ---
    System.Net.Http.Functional.Tests.Http1MultiChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream(readMode: AsyncArray, useSsl: False) [FAIL]
      System.TimeoutException : The operation has timed out.
      Stack Trace:
        /_/src/libraries/System.Net.Http/tests/FunctionalTests/ResponseStreamZeroByteReadTests.cs(125,0): at System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTestBase.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream(ReadWriteMode readMode, Boolean useSsl)
        --- End of stack trace from previous location ---
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
  Connection: Close
  Date: Sun, 03 Apr 2022 15:31:27 GMT
  Content-Length: 0
}
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.HttpConnectionResponseContent, Headers:
{
  Connection: Close
  Date: Sun, 03 Apr 2022 15:31:28 GMT
  Content-Length: 0
}

https://helixre8s23ayyeko0k025g8.blob.core.windows.net/dotnet-runtime-refs-pull-67501-merge-02ca4a1af08348f886/System.Net.Http.Functional.Tests/2/console.90326a9a.log?sv=2019-07-07&se=2022-04-23T15%3A22%3A39Z&sr=c&sp=rl&sig=Be2A%2BVQDtQ4O4chxwstI9n7OON59LfehcbqYbl1ebeg%3D

Activity

  1. ghost added
    untriaged
    on Apr 3, 2022
  2. rzikm commented on Apr 7, 2022

    @rzikm
    Member

    Strangely enough, I can't find this failure in the AzureDevOpsTests table (nor any other failures, for that matter), but this test seems to frequently require retry in order to pass.

  3. rzikm commented on Apr 12, 2022

    @rzikm
    Member

    Still no records in the DB, I suggest we close this until it resurfaces

  4. wfurt commented on Apr 12, 2022

    @wfurt
    Member

    I think we don't keep passes in database any longer.I check that t the test is not disabled so I think it would be OK to close.

  5. karelz commented on Apr 12, 2022

    @karelz
    Member

    Triage: We need to track down why the failures are missing from test results DB @dotnet/dncenghot can you please help?

  6. ChadNedzlek commented on Apr 12, 2022

    @ChadNedzlek
    Contributor

    I'll take a peek at the table and logs to see why this guy is missing.

  7. ChadNedzlek commented on Apr 12, 2022

    @ChadNedzlek
    Contributor

    I see 5 tests for this workitem in the DB, I believe the first one is the test in question? The names are pretty long and hard to keep in memory, so I might have misread:

    Name Outcome
    System.Net.Http.Functional.Tests.Http1SingleChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream Failed
    System.Net.Http.Functional.Tests.Http1CloseResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream PassedOnRerun
    System.Net.Http.Functional.Tests.Http1ContentLengthResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream PassedOnRerun
    System.Net.Http.Functional.Tests.Http1MultiChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream PassedOnRerun
    System.Net.Http.Functional.Tests.Http1RawResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream PassedOnRerun
  8. rzikm commented on Apr 13, 2022

    @rzikm
    Member

    I see, all of the records for main say 'PassedOnRerun', there are actually no hard failures in the DB on main. There are actually a few failures on PRs (about 6 PRs were affected)

  9. karelz commented on Apr 19, 2022

    @karelz
    Member

    How often does it fail in PRs?

  10. rzikm commented on Apr 20, 2022

    @rzikm
    Member

    14 failures in the last month across 7 PRs

  11. markwilkie commented on Apr 20, 2022

    @markwilkie
    Contributor
  12. wfurt commented on Apr 20, 2022

    @wfurt
    Member

    I think we should try to reproduce it locally. Is it always new Windows or do se see other OSes as well @rzikm?
    At least the original reports is with useSsl: False so it shield be only good old socket. There is 10s timeout that should be enough IMHO but we may try to bump it up.

  13. rzikm commented on Apr 21, 2022

    @rzikm
    Member

    It's a mix of Centos.7.Amd64.Open, Windows.10.Amd64.Server2022.ES.Open, Windows.11.Amd64.ClientPre.Open, Alpine.314.Amd64.Open, Windows.81.Amd64.Open,

    The failures are there both with useSsl and without it.

    Query
    cluster('engsrvprod.kusto.windows.net').database('engineeringdata').AzureDevOpsTests
        | where TestName startswith "System.Net"
            and Outcome == 'Failed' //or Outcome == 'PassedOnRerun'
        | extend i = indexof_regex(TestName, @"[^.]+$")
        | extend Method = substring(TestName, i)
        | extend Type = substring(TestName, 0, i - 1)
        | project-away i//, TestName
        | where Method startswith 'ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream'
        //| where TestName == 'System.Net.Http.Functional.Tests.Http1SingleChunkResponseStreamZeroByteReadTest.ZeroByteRead_IssuesZeroByteReadOnUnderlyingStream'
        | distinct JobId, WorkItemId, Message, StackTrace, Method, Type, Arguments, Outcome
        | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').Jobs
            | where Finished > now(-30d)
            | where (Branch == 'refs/heads/main') or (Source startswith "pr/")
            | where Type startswith "test/functional/cli/"
                and not(Properties contains "runtime-staging")
            | summarize arg_max(Finished, Properties, Type, Branch, Source, Started, QueueName, Attempt, Build) by JobId
        | project-rename JobType = Type) on JobId
        | extend PropertiesJson = parse_json(Properties)
        | extend OS = replace_regex(tostring(PropertiesJson.operatingSystem), @'\((.*)\).*|([^\(].*)', @'\1\2')
        | extend Runtime = iif(PropertiesJson.runtimeFlavor == "mono", "Mono", iif(PropertiesJson.DefinitionName contains "coreclr", "CoreCLR", ""))
        | extend TargetBranch = extractjson("$.['System.PullRequest.TargetBranch']", Properties)
        | extend Architecture = PropertiesJson.architecture
        | extend DefinitionName = PropertiesJson.DefinitionName
        | project-away JobId
        | extend JobId = extractjson("$.['System.JobId']", Properties)
        //| where JobId == '913fd104-6683-4129-8fd6-02f22466d821'
        //| where Architecture == 'arm64'
        //| where OS == 'Windows.10.Arm64v8.Open'
        | join kind=inner (cluster('engsrvprod.kusto.windows.net').database('engineeringdata').WorkItems
            | project-keep ConsoleUri, WorkItemId) on WorkItemId
        | project-away PropertiesJson
        | project-reorder Started, Type, Method, Arguments, StackTrace, ConsoleUri, OS, Architecture, DefinitionName, Branch, Attempt, Build, * 
    ;
    
  14. added this to the 7.0.0 milestone on Apr 21, 2022
  15. removed
    untriaged
    on Apr 21, 2022
  16. karelz commented on Apr 21, 2022

    @karelz
    Member

    Triage: We should likely address it in 7.0. Not super urgent.
    Note: It is not related to SSL.

  17. wfurt commented on Jul 17, 2022

    @wfurt
    Member

    It failed for me few times on my local Windows 11 machine while investigating some other failures. I'll try to collect dump and I'll investigate as time permits.

  18. rzikm commented on Jul 27, 2022

    @rzikm
    Member

    Right now, there are only 3 hits on main in the last 3 months and all of them are in a run where lots of other tests have failed as well so it may be unrelated. @wfurt did you manage to collect the dump? Otherwise I am inclined to close this.

  19. wfurt commented on Jul 27, 2022

    @wfurt
    Member

    It was happening to me locally. I increased some timeouts and I did not see it since. I'm still running test sets and if I don't see it today I'll post PR with updated timeouts.

  20. self-assigned this
    on Jul 27, 2022
  21. ghost added
    in-pr
    on Aug 1, 2022
  22. added
    test-bug
    on Aug 2, 2022
  23. ghost removed
    in-pr
    on Aug 4, 2022
  24. ghost locked as resolved and limited conversation to collaborators on Sep 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area-System.Net.Httptest-bug

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions