Repository navigation
Preserve original failures in HTTP metrics and QUIC test diagnostics - #137472
Conversation
Add canceled-request metrics cases and preserve explicit successful-response checks. Add a deterministic QUIC connection-failure test with no output helper. Co-authored-by: Copilot App <[email protected]>
Keep metrics callback assertions outside the request pipeline and tolerate absent test output in QUIC error paths. Observe completed server-task failures even when logging is unavailable. Co-authored-by: Copilot App <[email protected]>
|
Azure Pipelines: Successfully started running 4 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @karelz, @dotnet/ncl |
|
Can you share the original errors and the new (properly preserved) errors? I'm having hard time understanding the exact underlying problem from the description. |
|
@ManickaP These failures came from build 1678292 while investigating #137416. The goal is better diagnostics when these flaky tests fail, not to fix the underlying connection flakes. We haven’t reproduced those exact CI failures with the patch, so their original client-side exceptions remain unknown. This should let subsequent failures expose those exceptions rather than secondary assertion/logging failures. HTTP metrics (original result): The callback runs even when the request fails, when QUIC (original result): Here the connection-failure cleanup dereferences a null output helper, replacing the connection exception before the key-log assertions run. The patch makes that logging null-safe. Note Drafted with GitHub Copilot. |
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
Co-authored-by: Copilot App <[email protected]>
|
/ba-g unrelated failures on iOS |
|
/backport to release/11.0 |
|
Started backporting to |
…st diagnostics (#138213) Backport of #137472 to release/11.0. Test-only; no product code changes. /cc @lewing @akoeplinger Captures the enrichment callback's response and asserts after the send instead of inside the callback, and makes QUIC test helper logging null-safe while still surfacing the server task's exception, so the original test failures are no longer masked by secondary assertion failures or NREs. # Customer Impact None; test-only. # Regression No. # Testing Clean cherry-pick of test-only changes; PR CI runs the tests. # Risk Low; test-only. Co-authored-by: Alexander Köplinger <[email protected]> Co-authored-by: Copilot App <[email protected]>
…st diagnostics (#138216) Backport of #137472 to release/10.0. Test-only; no product code changes. The HTTP metrics test now captures the enrichment response and asserts it after the send, instead of asserting inside the callback, which masked the original exception on failed requests. QUIC test helpers now log null-safely, because MsQuicRemoteExecutorTests passes a null output helper and a NullReferenceException could hide connection failures. # Customer Impact None; test-only. # Regression No. # Testing Compiled System.Net.Http.Functional.Tests and System.Net.Quic.Functional.Tests with SDK 10.0.115; PR CI runs the tests. # Risk Low; test-only. Co-authored-by: Copilot App <[email protected]>
Preserve original failures in networking tests uncovered while investigating #137416:
finally, including on failed requests whereResponseis legitimately null. Asserting inside the callback masks the original exception. Capture the response instead and assertSameafter a successful send, keeping the original test flow.MsQuicRemoteExecutorTestsexplicitly passesnullas its output helper, so error-path logging can throwNullReferenceExceptionand hide a connection failure. Make helper logging null-safe, but readserverTask.Exceptionindependently so its fault remains observed even without logging.Test-only changes: no product, MsQuic version, retry, or timeout changes. The underlying TLS/QUIC flakes remain unresolved.
Validation: The baseline build, 14 HTTP diagnostic-listener cases, and 6 focused QUIC cases passed on macOS ARM64 with locally built MsQuic 2.6.4/OpenSSL. Local cancellation and failed-handshake repros confirmed both masking bugs before the fixes; neither repro is in the final diff. Windows Schannel and full suites were not run.
Note
Generated with GitHub Copilot.