Skip to content

Quarantine BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent #68856

Open

Description

@github-actions

Failing Test(s)

  • Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent

Failure Frequency

Failed 3 times over the past 30 days.

Error 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__DisplayClass23_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 129
Browser URL: (127.0.0.1/redacted)

Stacktrace

Details
at Xunit.Assert.NotEmpty(IEnumerable collection) in /_/src/xunit.assert/Asserts/CollectionAsserts.cs:line 539
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

Logs

Details

No Helix console log content could be retrieved for this run (log download is not permitted for Part 1 analysis; only the injected error/stack data above was available). A screenshot was captured by the test infrastructure at failure time but is not accessible from this workflow.

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=1569739

Generated by Daily Test Quarantine Management · auto · 367.4 AIC · ⌖ 10.4 AIC · ⊞ 4.3K · ◷

Activity

  1. github-actions commented on Aug 27, 2026

    @github-actions
    ContributorAuthor

    This test asserts that JS initializer callbacks (streaming/wasm/server combinations) get invoked and recorded in an expected-callbacks collection. It has failed 3 times over the past 30 days with Assert.NotEmpty() Failure: Collection was empty inside a WaitAssert wait-loop, meaning the expected callback-invocation collection remained empty for the whole wait window on the /initializers?streaming=True&wasm=True&server=True page. This looks like a timing race where the JS initializer callbacks (loaded across streaming/WASM/Server render modes simultaneously) don't reliably signal completion back to the test harness within the wait timeout, rather than a functional regression in initializer dispatch itself. Not a consistent regression (is_consistent_regression is false/absent). Quarantining while the timing is investigated further.

    Quarantining via a follow-up PR.

    Generated by Daily Test Quarantine Management · auto · 367.4 AIC · ⌖ 10.4 AIC · ⊞ 4.3K · ◷

  2. added
    area-blazor
    on Sep 2, 2026
  3. added this to the 11.0.0 milestone on Sep 3, 2026
  4. BrennanConroy commented on Sep 10, 2026

    @BrennanConroy
    Member

    Looks like Microsoft.AspNetCore.Components.E2ETests.ServerRenderingTests.BlazorWebJsInitializersTest.InitializersRunsClassicInitializersWhenEnabled fails the same way

    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__DisplayClass23_0`1.<WaitAssertCore>b__0(IWebDriver _) in /mnt/vss/_work/1/s/src/Shared/E2ETesting/WaitAssert.cs:line 129
    

    https://dev.azure.com/dnceng-public/public/_build/results?buildId=1581913&view=ms.vss-test-web.build-test-results-tab&runId=43641014&resultId=100591&paneView=debug

  5. ilonatommy commented on Sep 25, 2026

    @ilonatommy
    Member

    Adding more meaningful error that these failures are sometimes producing:

    Failed to load module script: Expected a JavaScript-or-Wasm module script
    but the server responded with a MIME type of "".
    Uncaught Error: Failed to start platform.
    Network response:
    [200] text/plain - .../_framework/dotnet.js
    

    All 124 failures in the last 30 days are on

    .

    InitializersRunsClassicInitializersWhenEnabled fails more rarely, twice in the last 30 days on an equivalent line

  6. modified the milestones: 11.0.0, 12.0-preview1 on Oct 1, 2026
  7. added
    agent:working
    and removed on Nov 6, 2026
  8. BrennanConroy commented on Nov 10, 2026

    @BrennanConroy
    Member

    Flaky stopped after adding the required test-fixed label for the merged fix.

    🤖 Posted by Flaky (AI Agent)

  9. added and removed
    agent:working
    on Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-blazortest-failuretest-fixed

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions