Skip to content

[CI flake] Blazor recovery-email test loses Playwright execution context #41

Open

Description

@mmitche

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Microsoft.DotNet.Web.ProjectTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_RecoveryEmailsUseStoredAddressAndDoNotSendWithoutIt intermittently loses its Playwright execution context during navigation.

Upstream tracking: dotnet/aspnetcore#70568. An upstream quarantine is already proposed in dotnet/aspnetcore#70569.

Affected builds and PRs

PR PR target branch Build(s) Notes
dotnet/aspnetcore#70120 main 1675099 Windows platform-test attempt 1 failed; attempt 2 passed.
dotnet/aspnetcore#70522 main 1676735 Windows platform-test attempt 1 failed; attempt 2 passed.

Failure

Microsoft.Playwright.PlaywrightException : Execution context was destroyed, most likely because of a navigation

Evaluation and decision

Defer implementation to the existing upstream investigation and quarantine. Creating competing fork work would duplicate active upstream remediation.

Coverage and validation gaps

The retained Windows test-result artifacts contain the test identity and exception, but not a deterministic local reproduction. Browser timing, web-server state, and machine resource telemetry from the failed agents are unavailable.

Activity

  1. mmitche commented on Nov 13, 2026

    @mmitche
    OwnerAuthor

    Failure

    The Blazor recovery-email template test lost its Playwright execution context while navigating, failing two developers' final-head CI builds. The upstream quarantine tracker now identifies these as two of five matching failures in its 30-day evidence snapshot.

    Possible cause

    The failure occurs when the test calls Page.EvaluateAsync while navigation is still replacing the page execution context. This remains a hypothesis, but the identical stack and error across the upstream evidence support a navigation/evaluation race; dotnet#70568 tracks the investigation and dotnet#70569 has quarantined the test.

    Affected builds and PRs

    PR PR target branch Build(s) Notes
    dotnet/aspnetcore#70446 main Failed build 1674027 Windows Release xUnit; BlazorWebTemplate_RecoveryEmailsUseStoredAddressAndDoNotSendWithoutIt(Chromium) failed with Execution context was destroyed, most likely because of a navigation. Azure timeline/recovery-attempt evidence was unavailable from this host.
    dotnet/aspnetcore#70453 main Failed build 1674206 Same test, platform, and exception. Azure timeline/recovery-attempt evidence was unavailable from this host.

    Decision

    No competing fork prototype: upstream already has the durable tracker and merged quarantine. A causal fix needs browser/navigation evidence beyond the unavailable hosted trace.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions