[main] Source code updates from dotnet/dotnet #66132
.NET Result Analysis
Details
Tip
To unconditionally bypass the build analysis check (turn it green), you can use the escape mechanism feature. The completion time may vary, potentially taking several minutes, depending on the build analysis workload at the moment.
Build Failures
aspnetcore-components-e2e / Test: Blazor E2E tests on Linux / Run E2E tests
[ 🚧 Report infrastructure issue] [ 📄 Report repository issue]-
❌Bash exited with code '1'.
Test Failures (3 tests failed)
🔹 [All failing tests from aspnetcore-components-e2e]
- Exception Message
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__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109 Screen shot captured at '/mnt/vss/_work/1/s/src/Components/test/E2ETest/bin/screenshots/148b2e2811fe4003a5d45168c138f4ee.png' Encountered browser errors [2026-04-09T01:32:36Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:32:36.759Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:32:36Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:32:36.759Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:32:36Z] [Info] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:63775 "[2026-04-09T01:32:36.762Z] Information: Normalizing '_blazor' to 'http://127.0.0.1:40653/subdir/_blazor'." [2026-04-09T01:32:36Z] [Severe] http://127.0.0.1:40653/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-04-09T01:32:36Z] [Severe] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:189879 Uncaught Error: Failed to start platform. Reason: TypeError: Faile…ttp://127.0.0.1:40653/subdir/_framework/dotnet.js [2026-04-09T01:32:36Z] [Info] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:63775 "[2026-04-09T01:32:36.767Z] Information: WebSocket connected to ws://127.0.0.1:40653/subdir/_blazor?id=RWSiJhWO00pX5Zz0NTtgNA."Page 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:40653/subdir/initializers?streaming=False&wasm=True&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-started">Modern "afterWebStarted"</p><p id="classic-and-modern-before-server-start">Classic and modern "beforeServerStart"</p><p id="modern-before-server-start">Modern "beforeServerStart"</p><p id="classic-and-modern-circuit-opened">Classic and modern "circuitOpened"</p><p id="modern-circuit-opened">Modern "circuitOpened"</p><p id="classic-and-modern-after-server-started">Classic and modern "afterServerStarted"</p><p id="modern-after-server-started">Modern "afterServerStarted"</p></div>
<blazor-focus-on-navigate selector="[data-focus- CallStack
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 137 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 43 at InvokeStub_BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ----- Inner Stack Trace ----- at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109
- Exception Message
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__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109 Screen shot captured at '/mnt/vss/_work/1/s/src/Components/test/E2ETest/bin/screenshots/85d2a897f90a4d659a7c2601e1efe9b6.png' Encountered browser errors [2026-04-09T01:31:12Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:31:12.568Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:31:12Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:31:12.568Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:31:12Z] [Severe] http://127.0.0.1:40653/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-04-09T01:31:12Z] [Severe] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:189879 Uncaught Error: Failed to start platform. Reason: TypeError: Faile…ttp://127.0.0.1:40653/subdir/_framework/dotnet.jsPage 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>Streaming request</h3><div><!--bl-root--></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-started">Modern "afterWebStarted"</p></div>
<blazor-focus-on-navigate selector="[data-focus-on-navigate]"></blazor-focus-on-navigate><script>
// This script must come before blazor.web.js to test that
// the framework does the right thing when an element is already focused.
const elementToFocus = document.querySelector('[data-focus-on-load]');
if (elementToFocus) {
elementToFocus.focus();
}
</script>
<script src="_framework/blazor.web.5d16fmeutw.js" autostart="false" suppress-error="BL9992"></script>
<script src="_content/TestContentPackage/counterInterop.js"></script>
<script src="js/circuitContextTest.js"></script>
<script>
// This is called by the Components.WasmMinimal project.
function getQueryParam(key) {
return new URLSearchParams(location.search).get(key);
}function callBlazorStart() { function appendHiddenParagraph(id) { const paragraph = document.createElement('p'); paragraph.id = id; paragraph.style = 'display: none;'; document.body.appendChild(paragraph); } const enableClassicInitializers = se</pre></dd>- CallStack
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 137 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 43 at InvokeStub_BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ----- Inner Stack Trace ----- at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109
- Exception Message
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__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109 Screen shot captured at '/mnt/vss/_work/1/s/src/Components/test/E2ETest/bin/screenshots/539422f404f14ff99237a479ac30f249.png' Encountered browser errors [2026-04-09T01:31:55Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:31:55.827Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:31:55Z] [Warning] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:50289 "[2026-04-09T01:31:55.827Z] Warning: Initializer 'http://127.0.0.1:40653/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-04-09T01:31:55Z] [Info] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:63775 "[2026-04-09T01:31:55.830Z] Information: Normalizing '_blazor' to 'http://127.0.0.1:40653/subdir/_blazor'." [2026-04-09T01:31:55Z] [Severe] http://127.0.0.1:40653/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-04-09T01:31:55Z] [Severe] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:189879 Uncaught Error: Failed to start platform. Reason: TypeError: Faile…ttp://127.0.0.1:40653/subdir/_framework/dotnet.js [2026-04-09T01:31:55Z] [Info] http://127.0.0.1:40653/subdir/_framework/blazor.web.5d16fmeutw.js 0:63775 "[2026-04-09T01:31:55.834Z] Information: WebSocket connected to ws://127.0.0.1:40653/subdir/_blazor?id=NZ49443nsxp-bET7JD6rrA."Page 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>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:40653/subdir/initializers?streaming=True&wasm=True&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-started">Modern "afterWebStarted"</p><p id="classic-and-modern-before-server-start">Classic and modern "beforeServerStart"</p><p id="modern-before-server-start">Modern "beforeServerStart"</p><p id="classic-and-modern-circuit-opened">Classic and modern "circuitOpened"</p><p id="modern-circuit-opened">Modern "circuitOpened"</p><p id="classic-and-modern-after-server-started">Classic and modern "afterServerStarted"</p><p id="modern-after-server-started">Modern "afterServerStarted"</p></div>
<blazor-focus-on-navigate selector="[data-focus-on-n- CallStack
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 137 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 43 at InvokeStub_BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(Object, Span`1) at System.Reflection.MethodBaseInvoker.InvokeWithFewArgs(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) ----- Inner Stack Trace ----- at Microsoft.AspNetCore.E2ETesting.WaitAssert.<>c__DisplayClass21_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 109
❌ 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", ···]) [Details] [2.16% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
Failing Configuration
❌ Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(streaming: True, webassembly: True, server: False, expectedInvokedCallbacks: ["classic-and-modern-before-web-start", "classic-and-modern-after-web-started", "classic-and-modern-before-web-assembly-start", "classic-and-modern-after-web-assembly-started", "server--classic-and-modern-before-web-assembly-··· [Details] [2.17% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]
Failing Configuration
❌ Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent(streaming: True, 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", ···]) [Details] [2.17% failure rate]
-
[ 🚧 Report test infrastructure issue] [ 📄 Report test repository issue]