-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[dotnet-watch] Notify DCP of terminated session when process exits on its own #50992
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
Conversation
This PR is targeting |
Thanks for your PR, @@tmat. |
3bca85d
to
85bf7bf
Compare
85bf7bf
to
1dd6d3b
Compare
1dd6d3b
to
fc261e5
Compare
5dc2950
to
4fa949d
Compare
6471a0c
to
b942ea0
Compare
b942ea0
to
0dd4e52
Compare
@DustinCampbell ptal |
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.
I read through everything and didn't spot any cases where cancellation tokens and disposable objects didn't flow as they did before.
await Task.WhenAll( | ||
projectsToRestart.Select(async runningProject => | ||
{ | ||
var newRunningProject = await runningProject.RestartOperation(shutdownCancellationToken); |
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.
Does RestartOperation
need an "Async" suffix?
|
||
var message = new StringBuilder(); | ||
message.AppendLine($"Expected output {(expectedPresent ? "not found" : "found")}:"); | ||
|
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.
nit: extra blank line
approved via email, failure is a known issue. |
Description
Previously we only notified DCP when dotnet-watch terminated the process.
Fixes cancellation handling in a few places to avoid reporting errors that are caused by expected process termination/shutdown and pass correct cancellation tokens.
Fixes process output redirection for Aspire child processes.
Fixes #50952
Fixes dotnet/aspire#9756
Customer Impact
Impacts Aspire customers.
Regression?
Risk
Justification: Only impacts dotnet-watch and Aspire CLI.
Verification
Packaging changes reviewed?