-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
"The process cannot access the file" error sporadically but frequently in CI builds #32300
Comments
@tmat possibly a race in SymStore.targets? |
The error is caused by converted PDBs for two different target frameworks being generated into the same directory. It seems that the property value is split on |
we should fix it by overriding the symbols path to include OSGroup similar to what we do for output and intermediate paths. |
In this case sure, even though we should probably avoid using |
Yes i should have been more clear, we use TargetFrameworkSuffix for paths. We should use that only.
Actually, That was our first experiment. Later on this project we shifted to remove the TargetFrameworkSuffix from TargetFramework bcoz we hit a significant block. I will try to dig up the reason. @ericstj do u remember wht caused us to remove the TargetFrameworkSuffix during the build ?
we could move the output path calculation stuff to sdk rather in the runtime repo and then anybody using the sdk wouldnt require to update the paths. |
That wouldn't have helped in this situation as the path is calculated in an external component without using pre-defined variables like
+1. Yes, please dig up the reason for the change in direction. |
Also, how does this gonna work with the new .NET SDK feature that also adds platform specification to the TFM? |
That's still tbd but using a different separator should be fine as well. In the meantime I propose to fix this by (conditionally) adding the |
Fixes dotnet/runtime#32300 This fixes the frequent failures where multiple inner builds try to write to the same location in combination with SymStore.targets. As discussed in the linked issue, we should investigate if we can change the TargetFramework.Sdk to not depend on such hacks.
@ViktorHofer Sounds good, as long as that's just a temporary workaround. As you pointed out |
* Support TargetFramework.Sdk in SymStore.targets Fixes dotnet/runtime#32300 This fixes the frequent failures where multiple inner builds try to write to the same location in combination with SymStore.targets. As discussed in the linked issue, we should investigate if we can change the TargetFramework.Sdk to not depend on such hacks.
I've been seeing CI legs failing sporadically but frequently with an error like this during the build:
e.g. https://dev.azure.com/dnceng/public/_build/results?buildId=520739&view=logs&jobId=423ae147-26a3-5a4d-a4d3-4b3fc1dd598e&j=423ae147-26a3-5a4d-a4d3-4b3fc1dd598e&t=3d4a7aa4-0a94-53e5-e198-62555696ed38
cc: @ViktorHofer
The text was updated successfully, but these errors were encountered: