Skip to content

[Flakiness triage] Blazor passkey template response-body race #70363

Closed as not planned

Description

@mmitche

Copied from mmitche/AspNetCore#1 at the author's request because GitHub rejected a cross-owner issue transfer. The original report and discussion remain available there. This is a duplicate tracking report for dotnet/aspnetcore#69494, not a newly collected set of failures.

Is there an existing issue for this?

  • I have searched the existing issues

The canonical issue is dotnet/aspnetcore#69494.

Describe the bug

Failure

The BlazorWebTemplate_ConditionalPasskeyRegistration template test failed on three unrelated pull requests, interrupting their final CI iteration. The established failure in the canonical issue happens when the test reads an earlier response body after automatic navigation has made it unavailable.

Possible cause

The test captures the response, waits for later navigation and other checks, and only then reads its body; Chromium can discard that body during the interval. This mechanism is reproduced locally and documented in the canonical issue, but its association with the three CI occurrences below remains an inference because their retained test-result records lack the exact exception text.

Affected builds and PRs

PR PR target branch Build(s) Notes
dotnet/aspnetcore#70119 main Failed build 1656560; same-iteration recovery build 1656681 Windows Release x64; Templates.Blazor.Tests_net12.0_x64.html; failed test result 46113304/100043 had no retained error text.
dotnet/aspnetcore#70263 main Failed attempt 1 and recovery attempt in build 1662505 Platform tests; Windows Release x64; failed test result 46293580/100051 had no retained error text.
dotnet/aspnetcore#70108 main Failed attempt 1 and recovery attempt in build 1657221 Platform tests; Windows Release x64; failed test result 46131412/100043 had no retained error text.

Evidence

The failed tasks reported XUnit: Tests failed: ... Templates.Blazor.Tests_net12.0_x64.html, and the only retained failed result in each occurrence was BlazorWebTemplate_ConditionalPasskeyRegistration. The exact exception text was unavailable in those three records. The PR target branches were verified from GitHub's PR base-branch metadata when copying this report.

Expected Behavior

The test should retain the response text before automatic navigation makes the body unavailable, without changing the application's behavior or weakening its assertions.

Steps To Reproduce

Run BlazorWebTemplate_ConditionalPasskeyRegistration with the passkey-upgrade flow. The known failure occurs when the first upgrade POST's response body is read after the page automatically submits its continuation and navigates. See the canonical issue and draft correction for the mechanism and validation boundaries.

Exceptions (if any)

The established issue and local browser reproduction exhibit:

Microsoft.Playwright.PlaywrightException:
Protocol error (Network.getResponseBody): No resource with given identifier found
Response body is not available for a response that was navigated away from.

This is not a recovered excerpt from the three CI test-result records, whose exception text is missing.

.NET Version

The recorded CI results target net12.0. The complete generated-application theory was not run locally because the repository's pinned .NET 12 SDK and matching product/template artifacts are absent.

Anything else?

Decision update

The obsolete fork-base blocker in the original report has been removed. Draft dotnet/aspnetcore#70362 saves the first upgrade POST's HTML before delivering it to the browser. Initial GETs and the continuation POST remain on the normal path, and the existing assertions are preserved; no production code, retry, delay, or timeout changes are proposed.

A bounded local Chromium experiment using the actual template continuation script reproduced the body-read error in 12/12 baseline runs and passed 12/12 with response capture. The exact added C# capture block also compiled against cached Playwright APIs. These checks support the proposed mechanism, not a claim that the full generated-application theory or CI remediation is verified.

The narrow test-only correction is worth review, but the complete theory still needs validation. This report is being consolidated as a duplicate, not closed as fixed. The original follow-up discussion retains the detailed review rationale and limitations.

Implementation, investigation, and issue migration were assisted by GitHub Copilot.

Activity

  1. mmitche commented on Nov 6, 2026

    @mmitche
    MemberAuthor

    Duplicate of #69494

    Copied from mmitche#1 at the author's request because GitHub cannot transfer issues across repository owners. The historical occurrences, uncertainty, and review discussion are linked in this report. Please use #69494 as the canonical tracking issue; the proposed correction is draft #70362. Closing this duplicate is not a claim that the flake is fixed.

  2. added
    area-identity
    on Nov 6, 2026
  3. github-actions commented on Nov 6, 2026

    @github-actions
    Contributor

    Triage Summary

    Area: area-identity (passkey registration flow test, same area as canonical issue #69494)
    Type: Task (test flakiness; no shipped behavior reported broken)

    Potential Duplicates

    Notes

    Generated by Issue Triage Agent for dotnet/aspnetcore for #70363 · copilot · auto · 21.6 AIC · ⌖ 1.08 AIC · ⊞ 7.7K · ◷

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-identitytest-failure

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions