-
Notifications
You must be signed in to change notification settings - Fork 693
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
Return restore task on nomination #989
Conversation
Resolves NuGet/Home#3780. `NominateProjectAsync` returns a restore task CPS will use to block the build by setting it as a critical task. This change complies with the original design depicted in the [spec](https://github.com/NuGet/Home/wiki/NuGet-Restore-Manager).
CPS side effort to support blocking build on restore is in review dotnet/project-system#685. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -111,12 +111,11 @@ public sealed class VsSolutionRestoreService : IVsSolutionRestoreService | |||
_projectSystemCache.AddProjectRestoreInfo(projectNames, packageSpec); | |||
|
|||
// returned task completes when scheduled restore operation completes. | |||
// it should be discarded as we don't want to block CPS on that. | |||
var ignored = _restoreWorker.ScheduleRestoreAsync( | |||
var restoreTask = _restoreWorker.ScheduleRestoreAsync( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So the restoreTask returned is the same when two nominate call are made without a restore between them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct.
LGTM |
Resolves NuGet/Home#3780.
NominateProjectAsync
returns a restore task CPS will use to blockthe build by setting it as a critical task.
This change complies with the original design depicted in the
spec.
//cc @emgarten @jainaashish @joelverhagen @mishra14 @rrelyea