microsoft / microsoft/aspire

[CI Failure] Flaky: ProcessExecutionTests.WaitForExitAsync_WithGracefulServices_SignalerThrows_StillEscalatesToKill fails with 'Assert.Single() Failure: The collection was empty' on Windows

Open
#19,839 0 comments 0 reactions 0 assignees View on GitHub
ci-failure-cause test-failure
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 12h
Merged PRs (30d)
201

Description

## Build Information

Build: https://github.com/microsoft/aspire/actions/runs/33494022725
Build error leg or test failing: Tests / Cli / Cli (windows-latest) / `Aspire.Cli.Tests.DotNet.ProcessExecutionTests.WaitForExitAsync_WithGracefulServices_SignalerThrows_StillEscalatesToKill`
Pull request: #19826

## Error Message

```
Assert.Single() Failure: The collection was empty
at Aspire.Cli.Tests.DotNet.ProcessExecutionTests.WaitForExitAsync_WithGracefulServices_SignalerThrows_StillEscalatesToKill(Boolean isolateConsole) in D:\a\aspire\aspire\tests\Aspire.Cli.Tests\DotNet\ProcessExecutionTests.cs:line 265
```

## Description

Flaky: ProcessExecutionTests.WaitForExitAsync_WithGracefulServices_SignalerThrows_StillEscalatesToKill fails with 'Assert.Single() Failure: The collection was empty' on Windows

**Type**: flaky-test

## Occurrences

| Date | Build | Job | PR |
|------|-------|-----|----|
| 2026-09-01 | [33494022725](https://github.com/microsoft/aspire/actions/runs/33494022725) | Tests / Cli / Cli (windows-latest) | #19826 |
| 2026-09-03 | [33782779276](https://github.com/microsoft/aspire/actions/runs/33782779276) | Tests / No-package tests (regular, Aspire.Hosting.CodeGeneration.TypeScript.Tests, Hosting.CodeGeneration... / Hosting.CodeGeneration.TypeScript (windows-latest) | #19465 |

Contributor guide

Open the contributing guide

Research direction

Start with tests/Aspire.Cli.Tests/DotNet/ProcessExecutionTests.cs, especially line 265 and WaitForExitAsync_WithGracefulServices_SignalerThrows_StillEscalatesToKill. Run the targeted test on windows-latest, including both isolateConsole values, and compare the failing build runs. Done means the test reliably passes on Windows without the Assert.Single() collection-empty failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli, testing-qa
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
65/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.