Skip to content

[Known Build Error] BackCompatibilityPublish_Hosted_Works fails with file lock on .gz compression temp #53660

@lewing

Description

@lewing

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1362100
Build error leg or test failing: Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1
Pull request: #53656

Error Message

{
  "ErrorMessage": "",
  "ErrorPattern": "BlazorWebAssembly\\.5_0\\.targets.*error : The process cannot access the file.*compress.*\\.gz.*because it is being used by another process",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}

Details

StaticWebAssets_BackCompatibilityPublish_Hosted_Works fails during the legacy .NET 5 compression step (BlazorWebAssembly.5_0.targets line 650) with a file lock on .gz temp files in obj/Debug/net5/compress/. This is the back-compat path for pre-net6.0 WASM clients hosted by a modern server.

The 5_0.targets compression step writes .gz files that may be locked by parallel test execution or antivirus on Windows Helix machines.

Sample error:

Microsoft.NET.Sdk.BlazorWebAssembly.5_0.targets(650,5): error : The process cannot access the file
'...\blazorwasm\obj\Debug\net5\compress\8TBK5+sk.gz' because it is being used by another process.

Sample log: https://helix.dot.net/api/2019-06-17/jobs/1c38b10c-d52a-455c-b028-d52b17e038ea/workitems/Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1/console

Related: #50784, #33956 (similar file lock patterns)

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1362100
Error message validated: [BlazorWebAssembly\.5_0\.targets.*error : The process cannot access the file.*compress.*\.gz.*because it is being used by another process]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 4/1/2026 6:04:17 PM UTC

Report

Build Definition Test Pull Request
1364972 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BackCompatibilityPublish_Hosted_Works #53682
1365109 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution #53685
1364885 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution #53175
1364714 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution #53680
1364753 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution
1363528 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution #53667
1363468 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.dll.1.WorkItemExecution #53669
1363031 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BackCompatibilityPublish_Hosted_Works #53659
1362890 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BackCompatibilityPublish_Hosted_Works #53450
1362100 dotnet/sdk Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest.StaticWebAssets_BackCompatibilityPublish_Hosted_Works #53656

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
7 10 10

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions