Skip to content

[blazor] Stabilize persisted state Auto render test - #70836

Merged
maraf merged 1 commit into
mainfrom
maraf-state-persistence-failure
Nov 26, 2026
Merged

maraf merged 1 commit into
mainfrom
maraf-state-persistence-failure

Conversation

@maraf

@maraf maraf commented Nov 25, 2026

Copy link
Copy Markdown
Member

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: c46c847140e5f77a512e6dd9c29a195cc6470c46

Dimension Assessment Rationale
Change confidence 6/10 ↑ Arms the one-shot flag on the destination page before startup.
↓ Final patch was not built or tested; a peer-reported passing control did not retain its patch.
Diagnosis confidence 8/10 ↑ Browser probe and a gated Chrome run reproduced the missing hook.
↓ The temporary full-runtime gate's exact source was not retained.
Evidence fit 7/10 ↑ The gated Chrome run produced the same exception in the reported theory row.
↓ The CI interleaving and flag consumption were not observed directly.

[blazor] Stabilize persisted state Auto render test

  • You've read the Contributor Guide and Code of Conduct.
  • You've included unit or integration tests for your change, where applicable.
  • You've included inline docs for your change, where applicable.
  • There's an open issue for the PR that you are making. If you'd like to propose a new feature or change, please open an issue to discuss the change or find an existing issue.

Prevent the home page from consuming the Auto test's one-shot flag.

Description

Move the WebAssembly resource-block setup for suppressed enhanced navigation to the destination page, just before Blazor starts. The home page can otherwise consume the flag during its own startup, leaving the destination without the unblock hook. The enhanced-navigation path remains unchanged.

The gated Chrome investigation reproduced the same exception in both suppressed-navigation Auto rows. A peer reported a passing control with the flag moved, but its exact patch was not retained. The final patch has not been built or tested. The CI timing remains unconfirmed. See build 1698890.

No linked issue.

Note

This PR description was generated with the assistance of GitHub Copilot.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@maraf maraf added the area-blazor Includes: Blazor, Razor Components label Nov 25, 2026
@maraf maraf self-assigned this Nov 25, 2026
@maraf
maraf marked this pull request as ready for review November 25, 2026 17:33
@maraf
maraf requested a review from a team as a code owner November 25, 2026 17:33
Copilot AI balanced review requested due to automatic review settings November 25, 2026 17:33

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

There are no active review issues for the test-only change that moves resource blocking to destination-page startup.

No open issues 🎉

What changed in this PR

This test-only change adjusts Blazor’s persisted-state Auto-render test setup to prevent the home page from consuming the one-shot WebAssembly resource-block flag.

Changes:

  • Removes resource blocking from the home-page setup when enhanced navigation is suppressed.
  • Arms the block on the destination page immediately before Blazor starts for the initial Auto/server pass, leaving the enhanced-navigation path unchanged.
File Description
src/​Components/​test/​E2ETest/​Tests/​StatePersistenceTest.cs Moves resource-block setup to destination-page startup and documents the ordering requirement.

Review effort: Balanced

@PureWeen

Copy link
Copy Markdown
Member

/review

@maraf

maraf commented Nov 25, 2026

Copy link
Copy Markdown
Member Author

/azp run aspnetcore-components-e2e

Note

This comment was generated with the assistance of GitHub Copilot.

@azure-pipelines

Copy link
Copy Markdown
No pipelines are associated with this pull request.

@maraf

maraf commented Nov 26, 2026 •

Copy link
Copy Markdown
Member Author

/ba-g Failure is #70860

@maraf
maraf merged commit 5ab980f into main Nov 26, 2026
38 of 40 checks passed
@maraf
maraf deleted the maraf-state-persistence-failure branch November 26, 2026 14:33
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:34 — with GitHub Actions Inactive
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:34 — with GitHub Actions Inactive
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:35 — with GitHub Actions Inactive
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:37 — with GitHub Actions Inactive
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:38 — with GitHub Actions Inactive
@maraf
maraf temporarily deployed to copilot-pat-pool November 26, 2026 14:39 — with GitHub Actions Inactive
@github-actions

Copy link
Copy Markdown
Contributor

✅ No documentation PR was created.

Confidence that documentation is needed: 2%

No docs needed: the PR is limited to stabilizing an E2E test (test infrastructure), with no public or observable behavior change.

Documentation surfaces considered

  • Conceptual article: Not required — Only an E2E test file changed; no user-visible behavior.
  • Migration guidance: Not required — No upgrade action needed.
  • Breaking change: Not required — No compatibility impact; test-only change.

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — c46c8471 Deployed Nov 26, 2026 by maraf via conclusion #484
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.

4 participants