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

[release/vs17.10] Fix issue with assemblies locking #9974

Conversation

YuliiaKovalova
Copy link
Member

@YuliiaKovalova YuliiaKovalova commented Apr 4, 2024

Summary

The issue is related to the presence of disposable resource that wasn't cleaned up in time.

Customer Impact

Absence of dispose causes "warning MSB3026: Could not copy ".dll". Beginning retry 1 in 1000ms. The process cannot access the file '.dll' because it is being used by another process. The file is locked by: "MSBuild.exe" and it's presence breaks project building.

Regression?

Yes, was introduced in scope of https://github.com/dotnet/msbuild/pull/9313/files#diff-0c7ff4eddab39e683e61e6f11011eac73dae76d2574999184b3c0e74f9c2fa10

Testing

Manual -the problem wasn't caught locally, but manual testing doesn't expose any side effects.

Risk

Low, doesn't contain any changes in logic.

@YuliiaKovalova YuliiaKovalova requested a review from a team as a code owner April 4, 2024 09:29
@YuliiaKovalova
Copy link
Member Author

since we plan to service this pr, I assume this localization can be safely delivered too
#9963
do you have any concerns?

Copy link
Contributor

Hello! I noticed that you're targeting one of our servicing branches. Please consider updating the version.

@YuliiaKovalova
Copy link
Member Author

/backport to main

Copy link
Contributor

github-actions bot commented Apr 4, 2024

Started backporting to main: https://github.com/dotnet/msbuild/actions/runs/8556564619

Copy link
Contributor

github-actions bot commented Apr 4, 2024

@YuliiaKovalova backporting to main failed, the patch most likely resulted in conflicts:

$ git am --3way --ignore-whitespace --keep-non-patch changes.patch

Applying: dispose AssemblyInformation
Applying: bump version
Using index info to reconstruct a base tree...
M	eng/Versions.props
Falling back to patching base and 3-way merge...
Auto-merging eng/Versions.props
CONFLICT (content): Merge conflict in eng/Versions.props
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
Patch failed at 0002 bump version
When you have resolved this problem, run "git am --continue".
If you prefer to skip this patch, run "git am --skip" instead.
To restore the original branch and stop patching, run "git am --abort".
Error: The process '/usr/bin/git' failed with exit code 128

Please backport manually!

Copy link
Contributor

github-actions bot commented Apr 4, 2024

@YuliiaKovalova an error occurred while backporting to main, please check the run log for details!

Error: git am failed, most likely due to a merge conflict.

@rainersigwald rainersigwald merged commit a2d3b95 into dotnet:vs17.10 Apr 10, 2024
9 checks passed
surayya-MS added a commit that referenced this pull request Apr 11, 2024
* Translation update from OneLocBuild (#9963)

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9347357

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9347357

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9394753

* Localized file check-in by OneLocBuild Task: Build definition ID 9434: Build ID 9394753

* Remove spurious `Ł` character in Italian version string

---------

Co-authored-by: Rainer Sigwald <[email protected]>

* Dispose AssemblyInformation in GetAssembliesMetadata (#9974)

Fixes AB#2017198 by releasing the handle to the file by disposing the AssemblyInformation deterministically.

* Update package version to 17.10.2 (#9994)

---------

Co-authored-by: dotnet bot <[email protected]>
Co-authored-by: Rainer Sigwald <[email protected]>
Co-authored-by: YuliiaKovalova <[email protected]>
Co-authored-by: Surayya Huseyn Zada <[email protected]>
surayya-MS pushed a commit to surayya-MS/msbuild that referenced this pull request Apr 11, 2024
Fixes AB#2017198 by releasing the handle to the file by disposing the AssemblyInformation deterministically.
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.

4 participants