-
Notifications
You must be signed in to change notification settings - Fork 360
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
Occasional restore failures #6236
Comments
Hmm, as a workaround for when the credential provider used to crash all the time, we were clearing all the nuget caches on every single invocation of msbuild. I wonder if we're seeing this now as I removed that, and we should now add a single http cache clear at the start of a build? |
#5952 is where I removed this. I don't think it should be reintroduced as we were clearing it multiple times per build, but maybe a single clear is still required? |
A single clear could work...though I think still we should follow up with the right people to get to the root cause, |
NuGet/Home#3116 seems relevant? It seems like NuGet just bails when a feed is in the http cache and doesn't find a package in it. We were being guarded from this behavior by clearing the http cache every single time. I broke this, so I'll prepare a change so we still clear the http cache. |
The nuget issue provides a workaround of using a |
Merged a change that sets the environment variable in the build machines. Will keep an eye out to see if it resolves the issue completely, or if we need to go back to clearing the http cache multiple times per job. |
I'm seeing restore failures in some cases, across a number of build pipelines. The failures usually succeed on retry. Example (I've retained this build):
https://dev.azure.com/dnceng/public/_build/results?buildId=826657&view=results
The packages in question are in dotnet5 and dotnet5-transport and were pushed prior to the dependency update PR starting. The most interesting thing about this is that the first attempt to get info about at least some of these packages from the feed is that we're hitting the cache:
These are not hosted pool machines, so it's quite possible we are hitting the cache. But why is the cache up to date? For sure there is a new package that should be found.
I've seen this in a variety of other places:
https://dev.azure.com/dnceng/public/_build/results?buildId=827136&view=logs&j=09811346-8274-5b72-2d96-1dd38f87c84b&s=ff05ad62-bb9a-53b6-ce9f-72f329a63e7c
Microsoft.DotNet.Cli.Utils is one package was not found in this case
The text was updated successfully, but these errors were encountered: