Repository navigation
Improve Blazor WebAssembly E2E startup diagnostics - #68200
Merged
Merged
Conversation
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b5edf21b-722e-40e5-bf3a-1a3da70f8e44
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves diagnostics for Blazor WebAssembly E2E test startup by proactively validating that the non-trimmed WASM client outputs (and associated static web assets manifests) are present before starting the gateway host, so missing prerequisites fail fast with actionable details.
Changes:
- Adds pre-start validation for the client assembly path, content root,
wwwroot/index.html, and the.staticwebassets.*.jsonmanifests. - Updates host args to reuse the newly computed runtime/endpoints manifest paths.
- Improves the failure experience with a detailed exception message and rebuild guidance.
Show a summary per file
| File | Description |
|---|---|
| src/Components/test/E2ETest/Infrastructure/ServerFixtures/BlazorWasmTestAppFixture.cs | Adds prerequisite checks and clearer startup failure diagnostics for non-trimmed WASM E2E fixtures. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 1
Co-authored-by: Copilot App <[email protected]> Copilot-Session: b5edf21b-722e-40e5-bf3a-1a3da70f8e44
3 of 4 tasks
akoeplinger
approved these changes
Aug 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Improve Blazor WebAssembly E2E startup diagnostics
Fail fast when non-trimmed WASM E2E prerequisites are missing
Description
We started this while trying to make Components issue reproduction and build workflows easier for contributors and coding agents. While using Copilot to reproduce an unrelated Components issue in a fresh local worktree, incomplete E2E client outputs caused setup friction to dominate the investigation.
With the loaded runtime manifest missing,
/subdirstill returned 200, framework asset requests returned 500, and the unchanged test failed after about 4.3 minutes without clearly identifying the missing prerequisite.This one-file change validates the exact inputs used by the non-trimmed client/WASM fixture before creating the host:
wwwroot/index.htmlbeneath that content rootWhen an input is missing, startup now fails in about 12 seconds and reports every exact path with found/missing status plus the dependency-aware rebuild command. The guidance notes that a
--no-dependenciesbuild can copy existing dependency outputs, but it does not rebuild referenced client apps, so it should not be used when referenced app outputs may be stale or missing.Valid unchanged baselines passed for
BasicTestApp,StandaloneApp(a second direct genericTProgramfixture), and the independent server-execution path. Trimmed-app mode returns before the new guard and remains unchanged.This intentionally detects missing prerequisites only. It does not attempt to validate stale-but-present manifest contents.
Fixes #N/A