Skip to content

Unquarantine AppHostServerSession exited-server RPC test - #21616

Merged
David Fowler (davidfowl) merged 1 commit into
microsoft:mainfrom
davidfowl:fix/unquarantine-19150
Nov 1, 2026
Merged

David Fowler (davidfowl) merged 1 commit into
microsoft:mainfrom
davidfowl:fix/unquarantine-19150

Conversation

@davidfowl

Copy link
Copy Markdown
Collaborator

Description

This PR unquarantines AppHostServerSessionTests.GetRpcClientAsync_WhenServerExitsBeforeSocketIsAvailable_FailsWithoutWaitingForConnectionTimeout. It changes no assertions.

Why the original failures no longer apply

  • The real failures were Windows-only and old. They happened on 2026-08-07 and 2026-08-11: GetRpcClientAsync took about 15s, past the 5s limit, to notice that the server process had exited.
  • That latency came from post-exit waits that have since been bounded. The time was spent in ChildProcess/ProcessExecution after exit: draining output and verifying termination. The process rewrite (Simplify Aspire.Cli process code using .NET 11 Process APIs #17079 and follow-ups) bounded every one of those waits with TerminationTimeout, and the separate Windows IsolatedProcess path is gone.
  • The 2026-08-17 ubuntu occurrence linked on the issue is misattributed. That job failed in Aspire.Hosting.Tests, not in this test.

Evidence

  • Scheduled Quarantined Tests workflow. It runs quarantined tests on all three OSes every 2h. I scanned 119 runs from 2026-10-21 to 2026-10-31: 317 Aspire.Cli.Tests jobs (108 Windows, 108 Ubuntu, 101 macOS). This test never failed. Every failure in those jobs came from other quarantined tests: ProcessGuestLauncherTests.LaunchAsync_WithGracefulServices_BlockingSignalerDoesNotConsumeGracefulBudget (311 jobs) and RpcCancellationReachesServer (17 jobs).
  • Local loop. I ran the AppHostServerSessionTests class 20 times on Linux: 20/20 runs green, with 19 tests and 0 failures each time.
  • Real process. The test itself is functional: it spawns a real dotnet --version server process and asserts that the RPC connect fails promptly with the exit code.

Limitations

  • No fails-before repro. The failure was Windows-only, and the code paths involved have been rewritten since, so it can't be reproduced on current code. This PR removes stale quarantine; it doesn't change product code.
  • Branch base. The branch is based on 8c74492, 2 commits behind main. The fork token can't push the workflow-file change in Lower minimum Helm version to 4.0.0 #21590, and neither skipped commit touches the CLI.

Fixes #19150

Checklist

  • Is this feature complete?
    • Yes. Ready to ship.
  • Are you including unit tests for the changes and scenario tests if relevant?
    • Yes (existing test, no longer quarantined)
  • Did you add public API?
    • No
  • Does the change make any security assumptions or guarantees?
    • No
  • Does the change require an update in our Aspire docs?
    • No

🤖 Posted by AspireAgent (AI Agent)

The test passed in all 317 scheduled Quarantined Tests jobs between
2026-10-21 and 2026-10-31 (108 Windows, 108 Ubuntu, 101 macOS). The
Windows-only 15s failures predate the ChildProcess/ProcessExecution
rewrite that bounded post-exit drain and termination waits.

Fixes #19150

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.sh | bash -s -- 21616

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/microsoft/aspire/main/eng/scripts/get-aspire-cli-pr.ps1) } 21616"

@aspire-repo-bot
aspire-repo-bot Bot requested a balanced review from Copilot October 31, 2026 20:48
@github-actions github-actions Bot added the needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners label Oct 31, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

No active review issues were identified for the change restoring the exited-server RPC regression test to regular test runs.

No open issues 🎉

What changed in this PR

Restores the CLI’s exited-server RPC regression test to regular test runs by removing its quarantine for #19150. Product code and test assertions remain unchanged.

Changes:

  • Removes the quarantine attribute from the test that checks prompt RPC failure after the server exits.
  • Removes the unused Aspire.TestUtilities import.
File Description
tests/​Aspire.Cli.Tests/​Projects/​AppHostServerSessionTests.cs Unquarantines the exited-server RPC test and removes the unused import.

Review effort: Balanced

@davidfowl
David Fowler (davidfowl) marked this pull request as ready for review October 31, 2026 21:11
@davidfowl David Fowler (davidfowl) added the ci-health Fixes CI flakiness or CI infrastructure (AspireAgent queue) label Nov 1, 2026 — with Copilot SWE Agent
@davidfowl
David Fowler (davidfowl) merged commit fbec992 into microsoft:main Nov 1, 2026
59 checks passed
@microsoft-github-policy-service microsoft-github-policy-service Bot added this to the 17.0 milestone Nov 1, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Dec 2, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

ci-health Fixes CI flakiness or CI infrastructure (AspireAgent queue) needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners

Projects

None yet

3 participants