Skip to content

[Test Failure] Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable fails with Assert.False() on Android, Linux and macOS #135782

Open

Description

@ViveliDuCh

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1634730
Build error leg or test failing: android-x64 Release AllSubsets_CoreCLR_Smoke - System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable(async: True)
Pull request: #135750

KBE authoring guidance
  • Error Details is for readers. Build Analysis parses only the single JSON block under Error Message.
  • ErrorPattern is a single-line regex (Build Analysis uses Singleline | IgnoreCase | NonBacktracking). It matches the failing test's [FAIL] line in both console formats: Android/XHarness ([FAIL] <test>(...)) and desktop xunit (<test>(...) [FAIL]). It does not include the assertion lines, so any failure of this test matches.
  • BuildRetry is false (no infrastructure retry case established). ExcludeConsoleLog is false.

Error Details

System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable(async: True) fails on Android API 29 (x64), Release CoreCLR. The test expects the zero-byte read task to remain pending before the server is signaled to send more data, but zeroByteReadTask.IsCompleted was already true.

[FAIL] System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable(async: True)
Assert.False() Failure
Expected: False
Actual:   True
   at System.Net.Http.Functional.Tests.ResponseStreamZeroByteReadTestBase.<>c__DisplayClass1_0.<<ZeroByteRead_BlocksUntilDataIsAvailable>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
   at System.Net.Test.Common.LoopbackServerFactory.<>c__DisplayClass6_0.<<CreateClientAndServerAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
   at System.Net.Http.Functional.Tests.ResponseStreamZeroByteReadTestBase.ZeroByteRead_BlocksUntilDataIsAvailable(Boolean async)
--- End of stack trace from previous location ---

Console log. The runner completed normally with one failed test; this is not evidence of a native crash.

This is not Android-specific. Over the 60 days before 2026-11-14, AzDO test history shows failures in 26 builds with the same Assert.False() Failure / Expected: False / Actual: True message (16 Linux builds: Ubuntu 26.04, AzureLinux, Alpine, Debian; x64 and arm64; 9 Android; 1 macOS x64), across main, release/10.0 and release/11.0, in CoreCLR and NativeAOT legs. Desktop xunit writes the failure as System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable(async: True) [FAIL], which the original Android-format signature did not match. For example, build 1681532 (net12.0-linux-Debug-x64-coreclr_release-Ubuntu.2604.Amd64.Open, console log).

Root cause is unknown. The Release stack does not distinguish the test's two identical assertions or establish whether the read task completed successfully, faulted, or was canceled. The test remains unchanged on main; reproduction there is unconfirmed. #135487 has a similar assertion in a different test/runtime and is a potential lead, not a verified duplicate. Source PR #135750 changes only XML documentation.

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": "\\[FAIL\\] System\\.Net\\.Http\\.Functional\\.Tests\\.Http1ResponseStreamZeroByteReadTest\\.ZeroByteRead_BlocksUntilDataIsAvailable\\(|System\\.Net\\.Http\\.Functional\\.Tests\\.Http1ResponseStreamZeroByteReadTest\\.ZeroByteRead_BlocksUntilDataIsAvailable\\([^)]*\\) \\[FAIL\\]",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Note

This issue was created with the assistance of GitHub Copilot.
Updated with GitHub Copilot to cover Linux and macOS failures.

Report

Build Repository Test Pull Request
1634730 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable #135750

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 1 1

Report

Build Repository Test Pull Request
1649958 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable
1643865 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable #125436

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
0 0 2

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 11/14/2026 9:28:05 PM UTC

Report

Build Repository Test Pull Request
1698795 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable
1693497 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable
1649958 dotnet/runtime System.Net.Http.Functional.Tests.Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 2 3

Known issue validation

Build: 🔎
Result validation: ⚠️ Provided build not found. Provide a valid build in the "Build: 🔎" line.
Validation performed at: 11/14/2026 9:28:05 PM UTC

Activity

  1. added
    blocking-clean-ci
    Known Build Error
    on Oct 14, 2026
  2. added
    untriaged
    on Oct 14, 2026
  3. dotnet-policy-service commented on Oct 14, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to 'arch-android': @vitek-karas, @simonrozsival, @steveisok, @akoeplinger
    See info in area-owners.md if you want to be subscribed.

  4. dotnet-policy-service commented on Oct 14, 2026

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @karelz, @dotnet/ncl
    See info in area-owners.md if you want to be subscribed.

  5. changed the title [-][Test Failure] Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable on Android x64 CoreCLR[/-] [+][Test Failure] Http1ResponseStreamZeroByteReadTest.ZeroByteRead_BlocksUntilDataIsAvailable fails with Assert.False() on Android, Linux and macOS[/+] on Nov 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Known Build Errorarea-System.Net.Httpblocking-clean-cios-androiduntriaged

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions