Skip to content

[release/11.0] Preserve original failures in HTTP metrics and QUIC test diagnostics - #138213

Merged
lewing merged 1 commit into
release/11.0from
backport/pr-137472-to-release/11.0
Nov 24, 2026
Merged

lewing merged 1 commit into
release/11.0from
backport/pr-137472-to-release/11.0

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

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.

…137472)

<!-- -->

Preserve original failures in networking tests uncovered while
investigating #137416:

- **HTTP metrics:** Enrichment runs from `finally`, including on failed
requests where `Response` is legitimately null. Asserting inside the
callback masks the original exception. Capture the response instead and
assert `Same` after a successful send, keeping the original test flow.
- **QUIC diagnostics:** `MsQuicRemoteExecutorTests` explicitly passes
`null` as its output helper, so error-path logging can throw
`NullReferenceException` and hide a connection failure. Make helper
logging null-safe, but read `serverTask.Exception` independently 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.

---------

Co-authored-by: Copilot App <[email protected]>
@lewing lewing added test-bug Problem in test source code (most likely) area-System.Net labels Nov 24, 2026
@azure-pipelines

Copy link
Copy Markdown
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.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

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

@lewing

lewing commented Nov 24, 2026

Copy link
Copy Markdown
Member

/ba-g QUIC certificate validation fails before the changed diagnostic logging; the other failures are separately tracked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.Net Servicing-approved Approved for servicing release test-bug Problem in test source code (most likely)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants