[ci-scan] Test failure: HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 42/100
Direzione di ricerca
Start with src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs, especially VerifyRequestDuration and RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded near the reported stack trace. Review the retained Helix console and compare this recurrence with #96407 to identify why HttpRequestException is recorded on Windows x86; the underlying cause is not established and no deterministic local reproduction is reported. Done means the failure cause is understood and the test's accepted error tag matches the intended behavior.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded failed on Windows x86 because the request-duration metric recorded System.Net.Http.HttpRequestException instead of one of the accepted values: System.Threading.Tasks.TaskCanceledException or response_ended.
This is the same test/assertion combination as closed #96407, now recurring in a new build. The assertion has one exact match in the retained Helix console. No matching open KBE or addressing PR was found.
Reproduction Steps
Observed in runtime build 1685859 for #137748.
Configuration: net12.0-windows-Release-x86-coreclr_release-Windows.Server2025.Amd64.Open.
A deterministic local reproduction has not been established.
Expected behavior
The error-type tag is one of the values accepted by this test, and the test passes.
Actual behavior
System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded [FAIL]
Assert.Contains() Failure: Item not found in collection
Collection: ["System.Threading.Tasks.TaskCanceledException", "response_ended"]
Not found: "System.Net.Http.HttpRequestException"
Stack Trace:
/_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(91,0): at System.Net.Http.Functional.Tests.HttpMetricsTestBase.VerifyRequestDuration(Measurement`1 measurement, Uri uri, Version protocolVersion, Nullable`1 statusCode, String method, String[] acceptedErrorTypes)
/_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(1177,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.<>c__DisplayClass5_0.<RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded>b__0(Uri uri)
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(119,0): at System.Threading.Tasks.TaskTimeoutExtensions.GetRealException(Task task)
--- End of stack trace from previous location ---
/_/src/libraries/Common/tests/System/Threading/Tasks/TaskTimeoutExtensions.cs(89,0): at System.Threading.Tasks.TaskTimeoutExtensions.WhenAllOrAnyFailed(Task[] tasks)
/_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(123,0): at System.Net.Test.Common.LoopbackServer.<>c__DisplayClass15_0.<CreateClientAndServerAsync>b__0(LoopbackServer server)
/_/src/libraries/Common/tests/System/Net/Http/LoopbackServer.cs(104,0): at System.Net.Test.Common.LoopbackServer.CreateServerAsync(Func`2 funcAsync, Options options)
/_/src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs(1161,0): at System.Net.Http.Functional.Tests.HttpMetricsTest_Http11.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded()
Regression?
The signature was reported in #96407 before this PR. Its recurrence is confirmed; the underlying HTTP failure cause has not been established.
Known Workarounds
None verified. No retry or test quarantine is requested by this issue.
Configuration
Windows Server 2025 x64 host, x86 CoreCLR Release, .NET 12 library tests. The triggering PR changes Linux mount selection; that lookup is not used on Windows.
Other information
Build Information
Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1685859
Build error leg or test failing: net12.0-windows-Release-x86-coreclr_release-Windows.Server2025.Amd64.Open - System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded
Pull request: https://github.com/dotnet/runtime/pull/137748
Error Message
{
"ErrorMessage": "Not found: \"System.Net.Http.HttpRequestException\"",
"ErrorPattern": "",
"BuildRetry": false,
"ExcludeConsoleLog": false
}
Agentic workflow metadata (ci-failure-scan)
Workflow artifact: ci-failure-scan
Artifact kind: kbe-verification
Verified match count: 1 hits in failure.log
No matching PASS or SKIP lines.
[!NOTE]
This issue was prepared with GitHub Copilot.
Known issue validation
Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1685859
Error message validated: [Not found: "System.Net.Http.HttpRequestException"]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 11/20/2026 8:24:42 AM UTC
Report
| Build | Repository | Test | Pull Request |
|---|---|---|---|
| 1691574 | dotnet/runtime | System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded | |
| 1685859 | dotnet/runtime | System.Net.Http.Functional.Tests.HttpMetricsTest_Http11_Async.RequestDuration_ConnectionClosedWhileReceivingHeaders_Recorded | dotnet/runtime#137748 |
Summary
| 24-Hour Hit Count | 7-Day Hit Count | 1-Month Count |
|---|---|---|
| 0 | 2 | 2 |
- Lingua principale
- C#
- Stelle
- 18.5k
- Fork
- 5.8k
- Merge medio
- 2g 18h
- PR unite (30g)
- 588
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di dotnet/runtime
-
area-CodeGen-coreclr untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
dotnet/runtime#138181 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-System.Collections untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
dotnet/runtime#138090 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-System.Text.Json untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
dotnet/runtime#138089 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-Setup untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
dotnet/runtime#137376 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
area-System.Memory untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
dotnet/runtime#137334 · 4 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di dotnet/runtime
Issue simili
-
Add `net10.0`Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
dotnet-outdated/dotnet-outdated#871 ·
I maintainer di solito rispondono entro 1 giorno
-
triage/untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
unoplatform/uno#26676 ·
I maintainer di solito rispondono entro 1 giorno
-
.NET bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno
-
[问题] 导出文件时,提示后面还有1243390911步Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
jhaizhou-ops/S2Arm#2177 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno