-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Use --disable-parallel during xplat restores #4516
Conversation
Hi @dagood, I'm your friendly neighborhood .NET Foundation Pull Request Bot (You can call me DNFBOT). Thanks for your contribution! The agreement was validated by .NET Foundation and real humans are currently evaluating your PR. TTYL, DNFBOT; |
private string GetDisableParallel() | ||
{ | ||
return "--disable-parallel"; | ||
} |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
Works around NuGet parallel restore timeouts becoming build failures when the machine has a slow connection, for example in our Docker Fedora containers.
6a78a29
to
6b361b8
Compare
Merged, resolved conflicts, and added |
My OSX msbuild timings are:
I believe buildtools setup isn't included in that, which takes up a decent chunk of time in both cases. Any ideas what the windows errors are? https://ci.dot.net/job/dotnet_cli/job/rel_1.0.0/job/release_windows_nt_x64_prtest/458/ @dotnet-bot test Windows_NT x64 Release Build |
@dotnet-bot test Windows_NT x64 Release Build please. |
1 similar comment
@dotnet-bot test Windows_NT x64 Release Build please. |
@livarcocc Did you see a build where #4527 didn't make restores work? (@mellinoe suggested merging only the NSS upgrade until it was proven to be not enough.) |
Looks like you're having issues reaching NuGet servers. Can you open this issue in the nuget/home repo, @saineshwar ? |
Maybe there's some context I'm missing, but it's possible @saineshwar is using a version of @saineshwar what version of Here's the NuGet issue about parallel restore timeout failures that |
Works around NuGet parallel restore timeouts becoming build failures when the machine has a slow connection, for example in our Docker Fedora containers.
See https://github.com/dotnet/core-setup/issues/327
Upgrades buildtools to take dotnet/buildtools#1114
Restore takes a very long time (> 7 minutes) in my Fedora 23 Docker container, but I haven't compared before/after yet. Having 4 NuGet sources seems like it would hurt even more with
--disable-parallel
. Some followup work to this would be to add a switch to let devs enable parallel restores if their connection can handle it.I noticed a manually-queued (I think) Fedora build succeeded recently: https://mseng.visualstudio.com/dotnetcore/_build/index?buildId=3380864&_a=summary. Getting a lucky connection speed is a factor in this bug, so it's possible that instead of taking this PR, CLI could start spinning builds repeatedly to get successful ones.
@livarcocc @piotrpMSFT
/cc @dleeapho @mellinoe