Skip to content

[wasm] Opt-in to use dotnet.boot.js #47451

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Mar 11, 2025
Merged

[wasm] Opt-in to use dotnet.boot.js #47451

merged 6 commits into from
Mar 11, 2025

Conversation

maraf
Copy link
Member

@maraf maraf commented Mar 11, 2025

Explicitly set WasmBootConfigFileName=dotnet.boot.js to prepare all tests that this is the new default.
In the follow-up we'll remove the explicit property set.
In another follow-up we will update some tests to be more agnostic to exact boot config schema.

Contributes to dotnet/aspnetcore#59456

@maraf maraf self-assigned this Mar 11, 2025
@ghost ghost added the untriaged Request triage from a team member label Mar 11, 2025
@maraf maraf removed the untriaged Request triage from a team member label Mar 11, 2025
@maraf maraf marked this pull request as ready for review March 11, 2025 12:36
@Copilot Copilot AI review requested due to automatic review settings March 11, 2025 12:36
@maraf maraf requested review from a team as code owners March 11, 2025 12:36
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the boot configuration to explicitly use "dotnet.boot.js" and prepares tests for the new default configuration.

  • Adds a new BootJsonDataLoader class to parse boot configuration JSON content from boot.js.
  • Replaces hard-coded boot configuration file names with an interpolated variable in tests.

Reviewed Changes

Copilot reviewed 35 out of 35 changed files in this pull request and generated 2 comments.

File Description
test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BootJsonData.cs Added a new BootJsonDataLoader and updated namespace style
test/Microsoft.NET.Sdk.BlazorWebAssembly.AoT.Tests/WasmAoTPublishIntegrationTest.cs Replaced hard-coded boot config filename with an interpolated variable

Copy link
Member

@pavelsavara pavelsavara left a comment

Choose a reason for hiding this comment

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

BootJsonData50 -> BootJsonData I would prefer to make the name more in-your-face about testing.

Like TestingBootJsonData etc for all types here

@maraf maraf merged commit 01b7a42 into dotnet:main Mar 11, 2025
39 checks passed
@maraf maraf deleted the BootJs branch March 11, 2025 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants