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

Apparent race condition copying files from sync.cmd #26858

Closed
ghost opened this issue Jul 18, 2018 · 6 comments
Closed

Apparent race condition copying files from sync.cmd #26858

ghost opened this issue Jul 18, 2018 · 6 comments
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Jul 18, 2018

Opened on behalf of @MattGal

Possibly related to these recent PRs?
dotnet/corefx#31097
dotnet/corefx#31139
(similar symptoms, BuildVersion.props called out in one log)

Warnings: 1
Status Message: failed

Build : Master - 20180718.04 (Product Build)
Failing configurations:

@weshaggard
Copy link
Member

weshaggard commented Jul 18, 2018

@ViktorHofer these failures look related to your binplacepackages.depproj changes from dotnet/corefx#30897.

2018-07-18T12:09:13.7376150Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3027: Could not copy "E:\A\_work\64\s\corefx\packages\System.Diagnostics.Tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Diagnostics.Tools.dll". Exceeded retry count of 10. Failed.  [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7378369Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3021: Unable to copy file "E:\A\_work\64\s\corefx\packages\System.Diagnostics.Tools\4.3.0\ref\netstandard1.0\System.Diagnostics.Tools.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Diagnostics.Tools.dll". The process cannot access the file 'E:\A\_work\64\s\corefx\bin\ref\netstandard1.4\System.Diagnostics.Tools.dll' because it is being used by another process. [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7401526Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3027: Could not copy "E:\A\_work\64\s\corefx\packages\System.IO\4.3.0\ref\netstandard1.3\System.IO.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.IO.dll". Exceeded retry count of 10. Failed.  [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7410764Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3021: Unable to copy file "E:\A\_work\64\s\corefx\packages\System.IO\4.3.0\ref\netstandard1.3\System.IO.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.IO.dll". The process cannot access the file 'E:\A\_work\64\s\corefx\bin\ref\netstandard1.4\System.IO.dll' because it is being used by another process. [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7479636Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3027: Could not copy "E:\A\_work\64\s\corefx\packages\System.Security.Cryptography.Primitives\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Primitives.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Security.Cryptography.Primitives.dll". Exceeded retry count of 10. Failed.  [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7484374Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3027: Could not copy "E:\A\_work\64\s\corefx\packages\System.Diagnostics.Tracing\4.3.0\ref\netstandard1.3\System.Diagnostics.Tracing.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Diagnostics.Tracing.dll". Exceeded retry count of 10. Failed.  [E:\A\_work\64\s\corefx\external\netstandard\netstandard.depproj]
2018-07-18T12:09:13.7486930Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3027: Could not copy "E:\A\_work\64\s\corefx\packages\System.Globalization.Calendars\4.3.0\ref\netstandard1.3\System.Globalization.Calendars.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Globalization.Calendars.dll". Exceeded retry count of 10. Failed.  [E:\A\_work\64\s\corefx\external\netstandard\netstandard.depproj]
2018-07-18T12:09:13.7490214Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3021: Unable to copy file "E:\A\_work\64\s\corefx\packages\System.Diagnostics.Tracing\4.3.0\ref\netstandard1.3\System.Diagnostics.Tracing.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Diagnostics.Tracing.dll". The process cannot access the file 'E:\A\_work\64\s\corefx\bin\ref\netstandard1.4\System.Diagnostics.Tracing.dll' because it is being used by another process. [E:\A\_work\64\s\corefx\external\netstandard\netstandard.depproj]
2018-07-18T12:09:13.7493993Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3021: Unable to copy file "E:\A\_work\64\s\corefx\packages\System.Globalization.Calendars\4.3.0\ref\netstandard1.3\System.Globalization.Calendars.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Globalization.Calendars.dll". The process cannot access the file 'E:\A\_work\64\s\corefx\bin\ref\netstandard1.4\System.Globalization.Calendars.dll' because it is being used by another process. [E:\A\_work\64\s\corefx\external\netstandard\netstandard.depproj]
2018-07-18T12:09:13.7496769Z E:\A\_work\64\s\corefx\Tools\FrameworkTargeting.targets(283,5): error MSB3021: Unable to copy file "E:\A\_work\64\s\corefx\packages\System.Security.Cryptography.Primitives\4.3.0\ref\netstandard1.3\System.Security.Cryptography.Primitives.dll" to "E:\A\_work\64\s\corefx\bin/ref/netstandard1.4/System.Security.Cryptography.Primitives.dll". The process cannot access the file 'E:\A\_work\64\s\corefx\bin\ref\netstandard1.4\System.Security.Cryptography.Primitives.dll' because it is being used by another process. [E:\A\_work\64\s\corefx\external\binplacePackages\binplacePackages.depproj]
2018-07-18T12:09:13.7740765Z 
2018-07-18T12:09:13.7743193Z Build FAILED.

https://devdiv.visualstudio.com/DefaultCollection/DevDiv/Default/_build/results?buildId=1870127&view=logs

I've seen a number of official builds and CI legs hitting this randomly.

@ericstj it seems like it is copying over the dependencies or something from all the different configurations. Which is racing with other depproj's like the netstandard one.

@weshaggard
Copy link
Member

@ViktorHofer
Copy link
Member

ViktorHofer commented Jul 18, 2018

Hmm. It seems the assembly references of System.Memory race with the other depproj files. This only happens for the following configurations as other configuration don't have assembly references for System.Memory:

netstandard1.1;
netstandard1.2;
netstandard1.3;
netstandard1.4;
netstandard1.5;
netstandard1.6;

Looking further...

@weshaggard
Copy link
Member

IIRC our depproj's shouldn't be doing a deep copy and should only copy the direct PackageReferences but that doesn't seem to be happening.

@ViktorHofer
Copy link
Member

Right, I just checked and BinPlaceConfiguration directives clearly do deep copies.

@weshaggard
Copy link
Member

I just submitted dotnet/corefx#31167 to fix the deep copy for binplacepackages and harvestpackages projects which shouldn't be deep.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 3.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 16, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants