Skip to content

[release/11.0] Source code updates from dotnet/dotnet - #68929

Merged
wtgodbe merged 5 commits into
release/11.0from
darc-release/11.0-8a63c8b4-c6d3-4b42-9bce-61436296c0d8
Sep 3, 2026
Merged

wtgodbe merged 5 commits into
release/11.0from
darc-release/11.0-8a63c8b4-c6d3-4b42-9bce-61436296c0d8

Quarantine flaky BlazorWebJsInitializersTest.InitializersRunsModernCa…

d3b4f7e
Select commit
Loading
Failed to load commit list.
Azure Pipelines / aspnetcore-components-e2e succeeded Sep 3, 2026 in 1h 48m 40s

Build #20260902.58 had test failures

Details

Tests

  • Failed: 5 (0.13%)
  • Passed: 3,717 (99.62%)
  • Other: 9 (0.24%)
  • Total: 3,731

Annotations

Check failure on line 34 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Build log #L34

Bash exited with code '1'.

Check failure on line 216 in Build log

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Build log #L216

Bash exited with code '1'.

Check failure on line 1 in Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation

OpenQA.Selenium.NoAlertPresentException : no such alert
  (Session info: chrome=147.0.7727.101)
Raw output
   at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
   at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.TargetLocator.Alert()
   at Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation() in /mnt/vss/_work/1/s/src/Components/test/E2ETest/Tests/RoutingTest.cs:line 1175
   at InvokeStub_RoutingTest.NavigationLock_CanBlockExternalNavigation(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)

Check failure on line 1 in Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(streaming: False, webassembly: True, server: True, expectedInvokedCallbacks: ["classic-and-modern-before-web-start", "classic-and-modern-after-web-started", "classic-and-modern-before-server-start", "classic-and-modern-circuit-opened", "classic-and-modern-after-server-started", ···])

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(streaming: False, webassembly: True, server: True, expectedInvokedCallbacks: ["classic-and-modern-before-web-start", "classic-and-modern-after-web-started", "classic-and-modern-before-server-start", "classic-and-modern-circuit-opened", "classic-and-modern-after-server-started", ···])

OpenQA.Selenium.BrowserAssertFailedException : Xunit.Sdk.NotEmptyException: Assert.NotEmpty() Failure: Collection was empty
   at Xunit.Assert.NotEmpty(IEnumerable collection) in /_/src/xunit.assert/Asserts/CollectionAsserts.cs:line 539
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0.<Exists>b__0() in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 80
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass23_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 129
Browser URL: http://127.0.0.1:41451/subdir/initializers?streaming=False&wasm=True&server=True
Screen shot captured at '/mnt/vss/_work/1/s/src/Components/test/E2ETest/bin/screenshots/da6bd33b9e1047faafad499ca02b1620.png'
Encountered browser errors
[2026-09-03T00:17:55Z] [Warning] http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js 0:57311 "[2026-09-03T00:17:55.784Z] Warning: Initializer 'http://127.0.0.1:41451/subdir/BasicTestApp.vpc4xa0l6h.lib.module.js' will be ignored because multiple runtimes are available. Use 'before(Web|WebAssembly|Server)Start' and 'after(Web|WebAssembly|Server)Started' instead."
[2026-09-03T00:17:55Z] [Warning] http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js 0:57311 "[2026-09-03T00:17:55.784Z] Warning: Initializer 'http://127.0.0.1:41451/subdir/JSInitializers/Classic/BasicTestApp.j2kfp6tx1s.lib.module.js' will be ignored because multiple runtimes are available. Use 'before(Web|WebAssembly|Server)Start' and 'after(Web|WebAssembly|Server)Started' instead."
[2026-09-03T00:17:55Z] [Info] http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js 0:70797 "[2026-09-03T00:17:55.788Z] Information: Normalizing '_blazor' to 'http://127.0.0.1:41451/subdir/_blazor'."
[2026-09-03T00:17:55Z] [Severe] http://127.0.0.1:41451/subdir/_framework/dotnet.js - Failed to load module script: Expected a JavaScript-or-Wasm module script but the server responded with a MIME type of "". Strict MIME type checking is enforced for module scripts per HTML spec.
[2026-09-03T00:17:55Z] [Severe] http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js 0:206429 Uncaught Error: Failed to start platform. Reason: TypeError: Faile…ttp://127.0.0.1:41451/subdir/_framework/dotnet.js
[2026-09-03T00:17:55Z] [Info] http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js 0:70797 "[2026-09-03T00:17:55.795Z] Information: WebSocket connected to ws://127.0.0.1:41451/subdir/_blazor?id=LsuTZhpUo-_GWbuc4PwXlg."
Network responses (_framework, _blazor, and errors):
  [200] text/javascript - http://127.0.0.1:41451/subdir/_framework/blazor.web.a1buqcr1ea.js
  [200] text/plain - http://127.0.0.1:41451/subdir/_framework/dotnet.js
  [200] application/json - http://127.0.0.1:41451/subdir/_blazor/negotiate?negotiateVersion=1Page content:
<head><meta charset="utf-8">
    <base href="/subdir/">
    </head>
<body><h3>JS initializers in Blazor web</h3>

<p>
    This page demonstrates the use of JS initializers in Blazor Web. Initializers run callbacks for when the app starts running as well as when it starts web assembly or interactive server runtimes. Interactive server supports wiring up events for the circuit creation and disposal. Classic initializers are not supported by default (and will emit a warning on the console) but can be enabled through the Blazor web options.
</p><h3>Non streaming request</h3><div><!--bl-root--></div><div><!--!--><!--!--><h3 id="server-component">ServerComponent</h3>

<a id="remove-server-component" href="http://127.0.0.1:41451/subdir/initializers?streaming=False&amp;wasm=True&amp;Server=False">Remove server component (circuit will close)</a></div><div id="initializers-content"><p id="classic-and-modern-before-web-start">Classic and modern "beforeWebStart"</p><p id="modern-before-web-start">Modern "beforeWebStart"</p><p id="classic-and-modern-after-web-started">Classic and modern "afterWebStarted"</p><p id="modern-after-web-st
Raw output
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.WaitAssertCore[TResult](IWebDriver driver, Func`1 assertion, TimeSpan timeout) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 160
   at Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(Boolean streaming, Boolean webassembly, Boolean server, String[] expectedInvokedCallbacks) in /mnt/vss/_work/1/s/src/Components/test/E2ETest/ServerRenderingTests/BlazorWebJsInitializersTest.cs:line 45
   at InvokeStub_BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(Object, Span`1)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
----- Inner Stack Trace -----
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass18_0.<Exists>b__0() in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 80
   at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass23_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 129

Check failure on line 1 in Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerRoutingTest.NavigationLock_CanBlockExternalNavigation

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Microsoft.AspNetCore.Components.E2ETest.ServerExecutionTests.ServerRoutingTest.NavigationLock_CanBlockExternalNavigation

OpenQA.Selenium.NoAlertPresentException : no such alert
  (Session info: chrome=147.0.7727.101)
Raw output
   at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
   at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.TargetLocator.Alert()
   at Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation() in /mnt/vss/_work/1/s/src/Components/test/E2ETest/Tests/RoutingTest.cs:line 1175
   at InvokeStub_RoutingTest.NavigationLock_CanBlockExternalNavigation(Object, Object, IntPtr*)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)

Check failure on line 1 in Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation

See this annotation in the file changed.

@azure-pipelines azure-pipelines / aspnetcore-components-e2e

Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation

OpenQA.Selenium.NoAlertPresentException : no such alert
  (Session info: chrome=147.0.7727.101)
Raw output
   at OpenQA.Selenium.WebDriver.UnpackAndThrowOnError(Response errorResponse, String commandToExecute)
   at OpenQA.Selenium.WebDriver.ExecuteAsync(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.WebDriver.Execute(String driverCommandToExecute, Dictionary`2 parameters)
   at OpenQA.Selenium.TargetLocator.Alert()
   at Microsoft.AspNetCore.Components.E2ETest.Tests.RoutingTest.NavigationLock_CanBlockExternalNavigation() in /mnt/vss/_work/1/s/src/Components/test/E2ETest/Tests/RoutingTest.cs:line 1175
   at InvokeStub_RoutingTest.NavigationLock_CanBlockExternalNavigation(Object, Object, IntPtr*)
   at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)