Repository navigation
[test-quarantine] Stabilize Blazor Web JS Initializers test case - #69193
BrundhaVelusamy wants to merge 16 commits into
Conversation
…nsModernCallbacksByDefaultWhenPresent
|
Thanks for your PR, @BrundhaVelusamy. Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
🟢 Approval recommended
The test setup race is addressed and validation passed.
Pull request overview
Stabilizes the Blazor Web JS initializers E2E test by configuring WebAssembly session state before navigation.
Changes:
- Moves
block-webassembly-settingssetup before page navigation. - Removes quarantine marking and an unused import.
File summaries
| File | Description |
|---|---|
src/Components/test/E2ETest/ServerRenderingTests/BlazorWebJsInitializersTest.cs |
Fixes test setup ordering to eliminate the startup race. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
|
/review |
PureWeen
left a comment
There was a problem hiding this comment.
One validated test-setup issue below.
This review comment was generated by GitHub Copilot with the help of a human.
|
@BrundhaVelusamy, this comment: #68856 (comment) is right. Both tests share the same setup and both fail on the same line. Could you fix both in this PR? Now, about the fix implementation. Why are we using |
@ilonatommy, Thanks for the suggestion. I updated both theory tests to pass enable-classic-initializers and block-webassembly-settings through the target URL instead of using sessionStorage. This removes the startup configuration ordering dependency and allows both tests to use the same deterministic setup flow. I also updated App.razor to read these initializer-specific options from the query string (while retaining the existing storage fallback for unrelated callers), removed the setup navigation/helper logic, and removed the quarantine from InitializersRunsClassicInitializersWhenEnabled. |
|
Failure in |
|
E2E test failures are connected, @BrundhaVelusamy please check the logs in https://dev.azure.com/dnceng-public/public/_build/results?buildId=1617664&view=ms.vss-test-web.build-test-results-tab. |
Head branch was pushed to by a user without write access
|
|
/review |
There was a problem hiding this comment.
Source-only review of frozen head 52632d6b7ff773a06494f01baad2ab21882617a4 found one new P3 test-path issue: the added WebAssembly fallback loader is registered after dotnet.js URL selection, so WebAssembly theory rows remain unable to start under the forced null settings.
Both routed guides completed: docs/CrossCuttingGuidance.md and docs/BlazorComponentsGuidance.md. The earlier setup-race feedback at discussion_r4093474335 was valid for a superseded revision and is resolved by the query-string setup; it does not duplicate this finding. No unresolved candidates or materially changed uncovered areas remain.
Provenance: PR 69193; merge base 8192456de81ed6bbc6e484404069f59907bd0d6f; base tip and immutable guidance commit ceb0eec49d8d2c77f4f7c26b85ddb6e96940dfed. Proof is source-only from the frozen version-2 bundle. Target code, builds, CI, tests, browser workflows, and samples were not executed; security assessment was excluded by policy. Review is limited to tracked Git bytes and cannot observe feedback posted after bundle preparation.
Generated by ASP.NET Core Pull Request Review for #69193 · copilot · gpt56 · 448.6 AIC · ⌖ 10.3 AIC · ⊞ 18.8K
Comment /review to run again
|
Non-blocking coverage note (pre-existing at If that matrix dimension is meant to cover the streamed-response path, enable This review was created by GitHub Copilot with help from a human. |
|
Looks like this PR hasn't been active for some time and the codebase could have been changed in the meantime. |
|
Duplicate of #70258 |
Stabilize Blazor Web JS Initializers test case
Description
Stabilizes BlazorWebJsInitializersTest.InitializersRunsModernCallbacksByDefaultWhenPresent by configuring block-webassembly-settings before navigating to the test page.
Previously, the test set the session storage value after navigation had already started. During application startup, the setting is consumed as part of the initialization flow, creating a potential race condition where the expected initializer behavior could be missed intermittently.
This change moves the WebAssembly configuration setup ahead of page navigation, ensuring the expected startup state is available before initialization begins. The update is limited to test code and does not affect product behavior or public APIs.
Fixes #68856
Testing
The original intermittent failure could not be reproduced locally. Validation is based on eliminating a potential startup race condition in the test setup and confirming stability through repeated execution.