-
Notifications
You must be signed in to change notification settings - Fork 934
Fix aspire run graceful shtudown behavior and unify with aspire start/aspire stop. #17814
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
65 commits
Select commit
Hold shift + click to select a range
537f7be
Unify graceful shutdown ladder for aspire run on Windows
danegsta e9508ea
Extend graceful shutdown ladder to .NET direct-launch AppHost path
danegsta d31fdda
Fix Process.ExitCode/HasExited on Windows isolated spawn path
danegsta 53808ef
Fix aspire start on Windows: dedupe PROC_THREAD_ATTRIBUTE_HANDLE_LIST
danegsta 65f3cda
Drop RequestShutdown/RequestedExitCode plumbing in favor of disposabl…
danegsta 7636067
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta 1533fd8
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta 5e70a20
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta 0e8de7e
Fix publish-path backchannel wiring missed in merge
danegsta 28b27c0
Potential fix for pull request finding
danegsta 9c14441
Potential fix for pull request finding
danegsta 4d3e8bc
Address PR review findings: env removal, gate disposal, dead code
danegsta 7ee0c7a
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta c392239
Merge remote-tracking branch 'origin/danegsta/windows-tsx-shutdown' i…
danegsta b9403bb
Fix graceful shutdown: parallel signal + 10s budget
danegsta 369b6b1
Re-enable inherited CTRL+C handling in CLI startup on Windows
danegsta b5e287f
Revert graceful shutdown budget back to 5s
danegsta 1d6743c
Strengthen CLI graceful shutdown regression tests
danegsta b4aaa8b
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta eaf0ef3
Address shutdown PR review comments
danegsta ed42de6
Deduplicate CLI test helpers
danegsta e7e3315
Resolve Windows console job on-demand and rename shutdown service
danegsta 190048f
Add ProcessShutdownCoordinator: single cancel->shutdown decision point
danegsta 6565127
Unify ProcessExecution + IsolatedProcessExecution into one wrapper (P2)
danegsta 30ec2ec
Make graceful shutdown a command-level policy owned by GracefulShutdo…
danegsta cd75220
Merge GracefulShutdownService into ConsoleCancellationManager; make I…
danegsta 65ef50a
Unify process execution + shutdown ladder onto IProcessExecution
danegsta 231530c
Fold ProcessShutdownCoordinator into ProcessExecution
danegsta 048ad29
Merge ProcessTerminator into ProcessGracefulShutdownLadder
danegsta cf3763d
Fold ProcessGracefulShutdownLadder into ProcessExecution
danegsta b4ce224
Merge origin/main into danegsta/windows-tsx-shutdown
danegsta 2bc02e2
Split AppHostServerSession.StartAsync into Start() + WaitForExitAsync()
danegsta f6459c1
Make AppHostServerSession start async (SemaphoreSlim gate + RunAsync)
danegsta 900eb02
Make LayoutProcessRunner.Start async to await disposal on spawn failure
danegsta b9b6cff
Update stale StartAsync call comments referencing synchronous Start()
danegsta 30829b7
Address PR review: fix env guard, document ProcessExit + RunAsync con…
danegsta 7aba974
Streamline signaler drain in ShutdownLadderAsync
danegsta 0151ba2
Fix Windows isolated-process exit wait and signaler drain race
danegsta 192cf1b
Trim over-justified comments in shutdown path
danegsta 37cc223
Throw plain OperationCanceledException from Windows WaitForExitAsync
danegsta 4ad3154
Harden pid-file read against Windows sharing violation in ProcessGues…
danegsta 8cd91e7
Restore IAppHostServerSessionFactory seam for short-lived codegen ses…
danegsta c884c08
Minor CLI cleanups: GetSafePid rename and Processes namespace import
danegsta 4b96756
Remove redundant ConsoleCancellationManager DI registration
danegsta da58bb0
Dispose _startGate semaphore in AppHostServerSession.DisposeAsync
danegsta 8be597a
Avoid hard-casting IProcessExecution to ProcessExecution
danegsta 8159ae3
Drop unnecessary Interlocked machinery in GuestAppHostProject.RunAsync
danegsta e50fc82
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta e15fcb9
Hoist graceful-shutdown budget to a virtual BaseCommand property
danegsta f5f4412
Make AppHostServerSession ctor params required; reorder token last
danegsta ec0acff
Collapse Ctrl+C ladder to a two-press flow
danegsta 52dedf8
Rename signal-count local n to signalNumber in Cancel
danegsta 663e9ce
Add CreatePrebuiltAppHostServer test helper to reduce boilerplate
danegsta e20586a
Remove accidentally committed ShutdownSmoke smoke-test project
danegsta a0dadd0
Replace NotStarted factory with SessionNotStartedException type
danegsta b1c6631
Route aspire run session through IAppHostServerSessionFactory
danegsta 885b55d
Route aspire publish session through IAppHostServerSessionFactory
danegsta 6cd35b7
Clarify undisposed execution comment for IAsyncDisposable
danegsta a5c7c12
Avoid parent-env snapshot in replace-don't-overlay spawn path
danegsta e191005
Use Assert.Skip for debugger-attached timing tests
danegsta c0189bf
Remove wasteful startup delays from guest apphost server startup
danegsta ad3cb77
Make ProcessGuestLauncher ctor and LaunchAsync args non-optional
danegsta e925699
Make remaining new optional args required where default is never used
danegsta dc29493
Fix run cancellation exit code, Windows force-kill escalation, and di…
danegsta a221fa9
Merge remote-tracking branch 'origin/main' into danegsta/windows-tsx-…
danegsta File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.