Skip to content

Quarantine BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys and BlazorWebTemplate_CanRequireConfirme [Content t #69095

Open

Description

@github-actions

Failing Test(s)

  • BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys
  • BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanRequireConfirmedEmail

Failure Frequency

Failed 2 times over the past 30 days (each test).

Error Message

Project new blazor  --no-restore -int None -au Individual failed to publish. Exit code 1.
D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\.dotnet\dotnet.exe publish  -c Release /bl
StdErr:
StdOut:   Determining projects to restore...
  All projects are up-to-date for restore.
D:\a\_work\1\s\.dotnet\sdk\11.0.100-rc.1.26420.103\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.RuntimeIdentifierInference.targets(385,5): message NETSDK1057: You are using a preview version of .NET. See: (aka.ms/redacted) [D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.quxjwqu0bttp\AspNet.quxjwqu0bttp.csproj]
D:\a\_work\1\s\src\ProjectTemplates\test\Templates.Blazor.Tests\bin\Release\net11.0\TestTemplates\AspNet.quxjwqu0bttp\Components\Account\Pages\Manage\EnableAuthenticator.razor(19,17): error RZ1021: Markup in a code block must start with a tag and all start tags must be matched with end tags.  Do not use unclosed tags like "<br>".  Instead use self-closing tags like "<br/>".

Stacktrace

Details
   at Templates.Test.Helpers.Project.RunDotNetPublishAsync(IDictionary`2 packageOptions, String additionalArgs, Boolean noRestore) in /_/src/ProjectTemplates/Shared/Project.cs:line 183
   at BlazorTemplates.Tests.BlazorTemplateTest.CreateBuildPublishAsync(String auth, String[] args, String targetFramework, Func`2 getTargetProject, Boolean onlyCreate) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorTemplateTest.cs:line 50
   at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanUsePasskeys(BrowserKind browserKind) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 64
   at BlazorTemplates.Tests.BlazorWebTemplateTest.BlazorWebTemplate_CanRequireConfirmedEmail(BrowserKind browserKind) in /_/src/ProjectTemplates/test/Templates.Blazor.Tests/BlazorWebTemplateTest.cs:line 284

Logs

Details
Project new blazor  --no-restore -int None -au Individual failed to publish. Exit code 1.
StdOut:   Determining projects to restore...
  All projects are up-to-date for restore.
message NETSDK1057: You are using a preview version of .NET. See: (aka.ms/redacted)
error RZ1021: Markup in a code block must start with a tag and all start tags must be matched with end tags.  Do not use unclosed tags like "<br>".  Instead use self-closing tags like "<br/>". [.../Components/Account/Pages/Manage/EnableAuthenticator.razor(19,17)]

(A representative excerpt is shown above for both tests, which fail identically during template publish; the full Helix console/work-item log was not retrievable from within this run's environment.)

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1576467&view=results

Generated by Daily Test Quarantine Management · copilot · auto · 607.1 AIC · ⌖ 13.3 AIC · ⊞ 4.5K · ◷

Activity

  1. github-actions commented on Sep 7, 2026

    @github-actions
    ContributorAuthor

    Failed 2 times over the past 30 days (each test). Most recent failing build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1576467&view=results

    Investigation

    Both BlazorWebTemplate_CanUsePasskeys and BlazorWebTemplate_CanRequireConfirmedEmail fail during the shared template-publish step (CreateBuildPublishAsync → dotnet publish) with the same root cause: error RZ1021: Markup in a code block must start with a tag and all start tags must be matched with end tags. in the generated Components/Account/Pages/Manage/EnableAuthenticator.razor file, specifically flagging an unclosed <br> tag (line 19) that should be a self-closing <br/>.

    This is a Razor compiler diagnostic surfacing during the Individual-auth Blazor Web template's publish step against an EnableAuthenticator.razor page that ships as part of the Identity scaffolding in the template. Since both failing tests share the same -au Individual template configuration and publish path, they are almost certainly hitting the exact same generated-file markup issue rather than two independent flakes — likely a template content regression (an unclosed <br> tag introduced in the Identity UI scaffolding) intermittently tripping the Razor source generator/compiler under certain SDK preview builds, or a race in incremental publish/restore causing stale generated markup to be re-evaluated. I could not confirm from within this sandboxed run whether the <br> in the actual template source is genuinely unclosed (which would make this a deterministic bug rather than a flake) — a maintainer should check EnableAuthenticator.razor in the Identity UI scaffolding template for an unclosed <br> tag around line 19 as the most likely fix.

    Generated by Daily Test Quarantine Management · copilot · auto · 607.1 AIC · ⌖ 13.3 AIC · ⊞ 4.5K · ◷

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions