Skip to content
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

Build race condition in Microsoft.NET.WebAssembly.Webcil.dll #89987

Closed
jkotas opened this issue Aug 4, 2023 · 1 comment · Fixed by #89999
Closed

Build race condition in Microsoft.NET.WebAssembly.Webcil.dll #89987

jkotas opened this issue Aug 4, 2023 · 1 comment · Fixed by #89999
Assignees
Labels
area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab

Comments

@jkotas
Copy link
Member

jkotas commented Aug 4, 2023

2023-08-03T21:52:12.6661786Z   Microsoft.NET.WebAssembly.Webcil -> D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Debug\net8.0\Microsoft.NET.WebAssembly.Webcil.dll
2023-08-03T21:52:13.4556038Z   Microsoft.NET.WebAssembly.Webcil -> D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Release\net8.0\Microsoft.NET.WebAssembly.Webcil.dll
2023-08-03T21:52:13.5074134Z D:\a\_work\1\s\.packages\microsoft.dotnet.build.tasks.targetframework\8.0.0-beta.23402.2\build\BinPlace.targets(37,5): error MSB3026: Could not copy "D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Release\net8.0\Microsoft.NET.WebAssembly.Webcil.dll" to "D:\a\_work\1\s\artifacts\bin\ref\net8.0\Microsoft.NET.WebAssembly.Webcil.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\a\_work\1\s\artifacts\bin\ref\net8.0\Microsoft.NET.WebAssembly.Webcil.dll' because it is being used by another process. The file is locked by: "Pdb2Pdb (8384)" [D:\a\_work\1\s\src\libraries\Microsoft.NET.WebAssembly.Webcil\src\Microsoft.NET.WebAssembly.Webcil.csproj::TargetFramework=net8.0]

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=362728
Build error leg or test failing: Build / windows-x64 Debug NativeAOT / Build product
Pull request: #89969

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Microsoft.NET.WebAssembly.Webcil.dll' because it is being used by another process.",
  "ErrorPattern": "",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=362728
Error message validated: Microsoft.NET.WebAssembly.Webcil.dll' because it is being used by another process.
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 8/4/2023 12:39:56 AM UTC

Report

Build Definition Step Name Console log Pull Request
362947 dotnet/runtime Build Log #89841
362728 dotnet/runtime Build product Log #89969
362610 dotnet/runtime Build Log #89963
362218 dotnet/runtime Build Log #89895
362251 dotnet/runtime Build product Log #89699
361648 dotnet/runtime Build Log #89903
361438 dotnet/runtime Build product Log #89892

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
5 7 7
@jkotas jkotas added blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab labels Aug 4, 2023
@ghost ghost added the untriaged New issue has not been triaged by the area owner label Aug 4, 2023
@ghost
Copy link

ghost commented Aug 4, 2023

Tagging subscribers to this area: @dotnet/area-infrastructure-libraries
See info in area-owners.md if you want to be subscribed.

Issue Details
2023-08-03T21:52:12.6661786Z   Microsoft.NET.WebAssembly.Webcil -> D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Debug\net8.0\Microsoft.NET.WebAssembly.Webcil.dll
2023-08-03T21:52:13.4556038Z   Microsoft.NET.WebAssembly.Webcil -> D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Release\net8.0\Microsoft.NET.WebAssembly.Webcil.dll
2023-08-03T21:52:13.5074134Z D:\a\_work\1\s\.packages\microsoft.dotnet.build.tasks.targetframework\8.0.0-beta.23402.2\build\BinPlace.targets(37,5): error MSB3026: Could not copy "D:\a\_work\1\s\artifacts\bin\Microsoft.NET.WebAssembly.Webcil\Release\net8.0\Microsoft.NET.WebAssembly.Webcil.dll" to "D:\a\_work\1\s\artifacts\bin\ref\net8.0\Microsoft.NET.WebAssembly.Webcil.dll". Beginning retry 1 in 1000ms. The process cannot access the file 'D:\a\_work\1\s\artifacts\bin\ref\net8.0\Microsoft.NET.WebAssembly.Webcil.dll' because it is being used by another process. The file is locked by: "Pdb2Pdb (8384)" [D:\a\_work\1\s\src\libraries\Microsoft.NET.WebAssembly.Webcil\src\Microsoft.NET.WebAssembly.Webcil.csproj::TargetFramework=net8.0]

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=362728
Build error leg or test failing: Build / windows-x64 Debug NativeAOT / Build product
Pull request: #89969

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "Microsoft.NET.WebAssembly.Webcil.dll' because it is being used by another process.",
  "ErrorPattern": "",
  "BuildRetry": true,
  "ExcludeConsoleLog": false
}
Author: jkotas
Assignees: -
Labels:

area-Infrastructure-libraries, blocking-clean-ci, Known Build Error

Milestone: -

@ViktorHofer ViktorHofer self-assigned this Aug 4, 2023
ViktorHofer added a commit that referenced this issue Aug 4, 2023
Fixes #89987

Repo task projects need to reside under src/tasks as the
TasksConfiguration property applies to these projects. By having a
referenced task project outside of src/tasks, it's easy to get
binclashes because of a project being built for different configurations
(Debug vs Release).
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Aug 4, 2023
ViktorHofer added a commit that referenced this issue Aug 4, 2023
Fixes #89987

Repo task projects need to reside under src/tasks as the
TasksConfiguration property applies to these projects. By having a
referenced task project outside of src/tasks, it's easy to get
binclashes because of a project being built for different configurations
(Debug vs Release).
@ghost ghost removed in-pr There is an active PR which will close this issue when it is merged untriaged New issue has not been triaged by the area owner labels Aug 4, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Sep 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Infrastructure-libraries blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' Known Build Error Use this to report build issues in the .NET Helix tab
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants