Repository navigation
Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Failure
RazorComponentEndpointInvokerTest.Invoker_RedirectWhileHandlingFormPost_DoesNotWriteUninitializedComponentFrames intermittently wrote the page's form markup instead of leaving the redirected response body empty. The failed Helix stage had to be retried before the pull request's final iteration completed.
Possible cause
The test exercises a redirect while a form-post render is replacing the component tree. The observed full form markup suggests the render sometimes writes the replacement output before the redirect abandons it, but the retained log does not show the internal ordering and this remains a hypothesis. The same test and assertion are unchanged on current release/10.0 and main, and no matching upstream or fork issue or fixing pull request was found.
Affected builds and PRs
| PR | PR target branch | Build(s) | Notes |
|---|---|---|---|
| dotnet/aspnetcore#70282 | release/10.0 |
failed attempt 1 and recovery attempt 2 in build 1662957 | Ubuntu 22.04 x64 Helix, Microsoft.AspNetCore.Components.Endpoints.Tests--net10.0; Assert.Empty() received HTML beginning <form method="post" action="/">. |
Decision
Defer a code change. This is one recovered occurrence of a recently added regression test, and the evidence does not yet distinguish a product race from test setup or scheduling. A worthwhile prototype needs a repeatable stress reproduction and ordering evidence around redirect handling; weakening the assertion, adding a retry, or adding a delay would only hide the behavior.
Expected Behavior
The redirect should discard the abandoned render output consistently, leaving an empty response body.
Steps To Reproduce
Run Invoker_RedirectWhileHandlingFormPost_DoesNotWriteUninitializedComponentFrames repeatedly under the release/10.0 Components Endpoints Helix configuration. The single retained CI occurrence has not been reproduced locally.
Exceptions (if any)
Assert.Empty() Failure: String was not empty
String: "<form method="post" action="/"><input typ"...
.NET Version
.NET 10 Helix test configuration.
Anything else?
The available Windows host does not provide the Linux Helix image or hosted CI scheduling needed to validate this occurrence. The public console log was retained, but no diagnostic trace captured the renderer/redirect ordering.
Activity
mmitche commentedon Nov 6, 2026
Duplicate check against #1
This is not the same failure as #1. Both mention navigation and response content, but they fail in opposite layers and with opposite body behavior:
BlazorWebTemplate_ConditionalPasskeyRegistrationInvoker_RedirectWhileHandlingFormPost_DoesNotWriteUninitializedComponentFramesTemplates.Blazor.TestsMicrosoft.AspNetCore.Components.Endpoints.TestsNetwork.getResponseBody<form method="post" action="/">...htmlContentStronger provenance
The endpoint regression test was introduced on
mainby source-flow commitc7bd3dd4616aand backported torelease/10.0by477d369965a0. Those commits also changed the product code to:NavigationExceptionafter draining non-streaming render work; andHandleNavigationException, explicitly discarding the tree abandoned mid-diff.The recovered CI failure occurred after that code and its regression test were present on
release/10.0. It therefore suggests the Components Endpoints correction is nondeterministically incomplete or the test exposes another ordering path. It does not support merging this occurrence into the Identity/Playwright issue.Decision
Keep this issue separate. The original no-prototype decision also remains appropriate: the exact alternate ordering path is not captured, so changing the regression assertion, adding a retry, or duplicating the existing discard logic would be speculative. A useful next occurrence should capture renderer scheduling or
NavigationExceptionpropagation aroundWaitForNonStreamingPendingTasks.