Skip to content

Test failure in BlazorWebAssembly StaticWebAssets_BuildMinimal_Works - Expected group '.gz' to have '424' endpoints but found '423' - dotnet.js.gz is missing. #48750

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

Closed
carlossanlop opened this issue Apr 28, 2025 · 1 comment
Labels
arch-wasm Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch Known Build Error

Comments

@carlossanlop
Copy link
Member

carlossanlop commented Apr 28, 2025

@lewing @akoeplinger @wtgodbe PTAL: blazor + wasm.

Build Information

Build: https://dev.azure.com/dnceng-public/public/_build/results?buildId=1027066
Build error leg or test failing:

Error Message

{
  "ErrorMessage" : ["The following expected assets weren't found in the manifest:", "dotnet.js.gz"],
  "BuildRetry" : false,
  "ExcludeConsoleLog" : false
}
[xUnit.net 00:00:35.50]     Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BuildMinimal_Works [FAIL]
[xUnit.net 00:00:35.50]       System.Exception : Expected group '.gz' to have '424' endpoints but found '423'.
[xUnit.net 00:00:35.50]       Expected Endpoints:
[xUnit.net 00:00:35.50]       _framework/Microsoft.AspNetCore.Authorization.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Authorization.wasm.gz
[xUnit.net 00:00:35.50]       	_framework/Microsoft.AspNetCore.Authorization.wasm - 1 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Authorization.wasm.gz
[xUnit.net 00:00:35.51]       	_framework/Microsoft.AspNetCore.Components.Forms.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Forms.wasm.gz
[xUnit.net 00:00:35.51]       	_framework/Microsoft.AspNetCore.Components.Forms.wasm - 1 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Forms.wasm.gz
[xUnit.net 00:00:35.51]       	_framework/Microsoft.AspNetCore.Components.Web.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Web.wasm.gz
...
long list...
...
[xUnit.net 00:00:35.56]       Actual Endpoints:
[xUnit.net 00:00:35.56]       _framework/Microsoft.AspNetCore.Authorization.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Authorization.wasm.gz
[xUnit.net 00:00:35.56]       	_framework/Microsoft.AspNetCore.Authorization.wasm - 1 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Authorization.wasm.gz
[xUnit.net 00:00:35.56]       	_framework/Microsoft.AspNetCore.Components.Forms.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Forms.wasm.gz
[xUnit.net 00:00:35.56]       	_framework/Microsoft.AspNetCore.Components.Forms.wasm - 1 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Forms.wasm.gz
[xUnit.net 00:00:35.56]       	_framework/Microsoft.AspNetCore.Components.Web.wasm.gz - 0 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Web.wasm.gz
[xUnit.net 00:00:35.56]       	_framework/Microsoft.AspNetCore.Components.Web.wasm - 1 - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\Microsoft.AspNetCore.Components.Web.wasm.gz
...
long list...
...
[xUnit.net 00:00:35.60]           _framework/dotnet.js - ${ProjectPath}\obj\Debug\${Tfm}\compressed\_framework\dotnet.js.gz
[xUnit.net 00:00:35.60]       
[xUnit.net 00:00:35.60]       If the difference in baselines is expected, please re-generate the baselines.
[xUnit.net 00:00:35.60]       Start by ensuring you're dogfooding the SDK from the current branch (dotnet --version should be '*.0.0-dev').
[xUnit.net 00:00:35.60]           If you're not on the dogfood sdk, from the root of the repository run:
[xUnit.net 00:00:35.60]               1. dotnet clean
[xUnit.net 00:00:35.60]               2. .\restore.cmd or ./restore.sh
[xUnit.net 00:00:35.60]               3. .\build.cmd ./build.sh
[xUnit.net 00:00:35.60]               4. .\eng\dogfood.cmd or . ./eng/dogfood.sh
[xUnit.net 00:00:35.60]       
[xUnit.net 00:00:35.60]       Then, using the dogfood SDK run the .\src\RazorSdk\update-test-baselines.ps1 script.
[xUnit.net 00:00:35.60]       Stack Trace:
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(422,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.<CompareEndpointCounts>g__ThrowEndpointCountMismatchError|12_0(String group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints)
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(381,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.CompareEndpointCounts(String group, StaticWebAssetEndpoint[] manifestEndpoints, StaticWebAssetEndpoint[] expectedEndpoints)
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(323,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.CompareEndpointGroup(String group, StaticWebAssetEndpoint[] manifestAssets, StaticWebAssetEndpoint[] expectedAssets)
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.Razor.Tests/StaticWebAssetsBaselineComparer.cs(115,0): at Microsoft.NET.Sdk.Razor.Tests.StaticWebAssetsBaselineComparer.AssertManifest(StaticWebAssetsManifest expected, StaticWebAssetsManifest actual)
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.Razor.Tests/AspNetSdkBaselineTest.cs(293,0): at Microsoft.NET.Sdk.Razor.Tests.AspNetSdkBaselineTest.AssertManifest(StaticWebAssetsManifest actual, StaticWebAssetsManifest expected, String suffix, String runtimeIdentifier, String name)
[xUnit.net 00:00:35.60]         /_/test/Microsoft.NET.Sdk.BlazorWebAssembly.Tests/BlazorWasmStaticWebAssetsIntegrationTest.cs(42,0): at Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BuildMinimal_Works()
[xUnit.net 00:00:35.60]            at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
[xUnit.net 00:00:35.60]            at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
[xUnit.net 00:00:35.60]       Output:
[xUnit.net 00:00:35.60]         Executing 'dotnet msbuild /t:Build /private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj /restore /bl:msbuild0.binlog':
[xUnit.net 00:00:35.60]         》MSBuild version 17.15.0-preview-25223-119+721dc7a2a for .NET
[xUnit.net 00:00:35.60]         》  Determining projects to restore...
[xUnit.net 00:00:35.60]         》/private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj : warning NU1510: PackageReference System.Net.Http.Json will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
[xUnit.net 00:00:35.60]         》/private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj : warning NU1510: PackageReference System.Net.Http.Json will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
[xUnit.net 00:00:35.60]         》  Restored /private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj (in 1.87 sec).
[xUnit.net 00:00:35.60]         》/tmp/helix/working/9EE108A8/p/d/sdk/10.0.100-ci/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.RuntimeIdentifierInference.targets(326,5): message NETSDK1057: You are using a preview version of .NET. See: https://aka.ms/dotnet-support-policy [/private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj]
[xUnit.net 00:00:35.60]         》/private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj : warning NU1510: PackageReference System.Net.Http.Json will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
[xUnit.net 00:00:35.60]         》/private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj : warning NU1510: PackageReference System.Net.Http.Json will not be pruned. Consider removing this package from your dependencies, as it is likely unnecessary.
[xUnit.net 00:00:35.60]         》  blazorwasm-minimal -> /private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/bin/Debug/net10.0/blazorwasm-minimal.dll
[xUnit.net 00:00:35.60]         》  blazorwasm-minimal (Blazor output) -> /private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/bin/Debug/net10.0/wwwroot
[xUnit.net 00:00:35.60]         Command 'dotnet msbuild /t:Build /private/tmp/helix/working/9EE108A8/t/dotnetSdkTests.ZGsEKXth/StaticWebAsse---EDA84A0A/blazorwasm-minimal.csproj /restore /bl:msbuild0.binlog' exited with exit code 0.

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1027066
Error message validated: [The following expected assets weren't found in the manifest: dotnet.js.gz]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/28/2025 5:43:46 PM UTC

@carlossanlop carlossanlop added arch-wasm Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch Known Build Error labels Apr 28, 2025
@dotnet-policy-service dotnet-policy-service bot added the untriaged Request triage from a team member label Apr 28, 2025
@akoeplinger
Copy link
Member

this is fixed, please merge main into your branch

@dotnet-policy-service dotnet-policy-service bot removed the untriaged Request triage from a team member label Apr 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
arch-wasm Area-AspNetCore RazorSDK, BlazorWebAssemblySDK, dotnet-watch Known Build Error
Projects
None yet
Development

No branches or pull requests

2 participants