Skip to content

Unquarantine TempData cookie persistence test - #70261

Closed
BrennanConroy wants to merge 1 commit into
mainfrom
flaky/tempdata-cookie-unquarantine
Closed

BrennanConroy wants to merge 1 commit into
mainfrom
flaky/tempdata-cookie-unquarantine

Conversation

@BrennanConroy

@BrennanConroy BrennanConroy commented Nov 2, 2026 •

Copy link
Copy Markdown
Member

Fixes #70085.

Microsoft.AspNetCore.Components.E2ETest.Tests.TempDataCookieTest.TempDataPersistWithoutAccessing was quarantined after intermittent StaleElementReferenceException failures at WebElement.Click() (5 distinct builds in the issue's deterministic 30-day snapshot).

Root cause

The test runs with PageLoadStrategy.None. Before #70088, it submitted set-values-not-read and immediately searched for redirect-button, an ID present on both the departing /tempdata page and the destination /tempdata/redirect_without_read page. Selenium could return the departing page's element while navigation was replacing that document, making the reference stale at click time.

#70088 fixed the causal race by assigning the destination button the unique ID redirect-without-read-button and waiting for that destination-only element with Browser.Exists(...). The final TempData persistence assertion remains unchanged. This PR restores the cookie-backed test to the normal suite now that the causal fix is on main.

Validation

  • Exact test passed with Chrome 156.0.8078.73 and matching ChromeDriver 156.0.8078.73.
  • Repeated the exact fully qualified test 50 times: 50/50 passed.
  • The targeted test command rebuilt Microsoft.AspNetCore.Components.E2ETests and its required product/test assets successfully before execution.
  • git diff --check passed.

CI status

All completed non-Components-E2E checks pass, including code check, source-build, platform tests, Helix subsets, quarantined tests, and template tests. Components E2E CoreCLR also passes.

Build Analysis attributes the two failed Components E2E jobs to unrelated existing flakes:

  • VirtualizationTest.VariableHeight_HtmlTable_DoesNotProduceNestedTrElements failed in Mono client/WebAssembly with an empty rendered collection; Build Analysis reports a 13.68% historical failure rate.
  • ServerRoutingTest.NavigationLock_CanBlockExternalNavigation failed in Mono server because navigation remained at /subdir/; Build Analysis reports a 31.10% historical failure rate.

Neither test or subsystem is changed by this PR. A one-time GitHub check re-request was attempted for both jobs, but the Azure Pipelines integration rejected it with 403 Resource not accessible by integration; an authorized Azure rerun is required.

After a full repository npm run build and targeted E2E rebuild at this exact head, both unrelated failing tests passed locally with Chrome/ChromeDriver 156:

  • VirtualizationTest.VariableHeight_HtmlTable_DoesNotProduceNestedTrElements: passed.
  • ServerRoutingTest.NavigationLock_CanBlockExternalNavigation: passed.

Residual uncertainty

The original race is timing-dependent, so a finite local stress run cannot prove absence of every browser scheduling variant. The selector now cannot match the departing document, directly removing the stale-reference mechanism recorded in #70085.

🤖 Posted by Flaky (AI Agent)

The navigation race was fixed in #70088 by waiting for an element unique to the destination page. Restore the cookie-backed regression test to the normal test suite.

Co-authored-by: Copilot <[email protected]>
@github-actions github-actions Bot added the area-blazor Includes: Blazor, Razor Components label Nov 2, 2026
@BrennanConroy

Copy link
Copy Markdown
Member Author

Don't unquarantine tests, we have a process for that.

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

Labels

area-blazor Includes: Blazor, Razor Components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Quarantine Microsoft.AspNetCore.Components.E2ETest.Tests.TempDataCookieTest.TempDataPersistWithoutAccessing

1 participant