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

Return restore task on nomination #989

Merged
merged 1 commit into from
Nov 2, 2016
Merged

Return restore task on nomination #989

merged 1 commit into from
Nov 2, 2016

Conversation

alpaix
Copy link
Contributor

@alpaix alpaix commented Nov 1, 2016

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.

//cc @emgarten @jainaashish @joelverhagen @mishra14 @rrelyea

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).
@alpaix
Copy link
Contributor Author

alpaix commented Nov 1, 2016

CPS side effort to support blocking build on restore is in review dotnet/project-system#685.
//cc @natidea

Copy link
Contributor

@mishra14 mishra14 left a 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(
Copy link

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct.

@natidea
Copy link

natidea commented Nov 1, 2016

LGTM

@emgarten emgarten merged commit 6eacc01 into NuGet:dev Nov 2, 2016
@alpaix alpaix deleted the 3780 branch January 5, 2017 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants