Skip to content

Fix flaky HTTP/3 request trailer validation test - #69246

Merged
wtgodbe merged 1 commit into
mainfrom
brennanconroy-request-trailers-flake
Sep 15, 2026
Merged

wtgodbe merged 1 commit into
mainfrom
brennanconroy-request-trailers-flake

Conversation

@BrennanConroy

@BrennanConroy BrennanConroy commented Sep 11, 2026 •

Copy link
Copy Markdown
Member

Fix flaky HTTP/3 request trailer validation test

Keep the request application active while invalid HTTP/3 trailers are parsed.

Description

RequestTrailers_ContainsNewlines used the no-op application, which could complete the response before the request trailers were parsed. WaitForStreamErrorAsync could then observe the completed response stream before MessageError was assigned and fail with an error code of -1.

Use the echo application so it continues reading the request body while the trailers are processed. This keeps the test synchronized with the real request-processing path without changing the shared HTTP/3 test helper.

Fixes: #69224

Copilot AI lite review requested due to automatic review settings September 11, 2026 18:05
@github-actions github-actions Bot added the area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions label Sep 11, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues were identified.

Review tier: Lite
Findings: None

What changed in this PR

Fixes a flaky HTTP/3 request trailer validation test by keeping request processing active while invalid trailers are parsed.

Changes:

  • Replaces _noopApplication with _echoApplication.
  • Prevents the response from completing before trailer validation.
File Description
src/​Servers/​Kestrel/​test/​InMemory.FunctionalTests/​Http3/​Http3StreamTests.cs Keeps request processing active during invalid trailer validation.

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

@wtgodbe
wtgodbe merged commit e0ec5cd into main Sep 15, 2026
31 checks passed
@wtgodbe
wtgodbe deleted the brennanconroy-request-trailers-flake branch September 15, 2026 16:05
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 12.0-preview1 milestone Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-networking Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarantine Microsoft.AspNetCore.Server.Kestrel.Core.Tests.Http3StreamTests.RequestTrailers_ContainsNewlines

3 participants