Skip to content

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Feb 18, 2025

Backport of #7650 to release/9.1

/cc @mitchdenny

Customer Impact

Currently the WaitForResourceHealthyAsync call will wait until the resource is healthy, but it does not allow the developer to stop waiting if the underlying resource fails to start - it means they need to rely on a timeout exception.

This PR adds the behavior of throwing an exception (opt-in based on WaitBehavior enumeration). This is something that we have in the WaitFor API but never made its way to the WaitForResourceHealthyAsync API.

Testing

Unit tests added to cover this new overload with both enumeration cases tested.

Risk

Low. Existing behavior is preserved, this new feature is opt-in (although the code path did change for the existing behavior - but is covered extensively with existing test cases).

Regression?

@github-actions github-actions bot requested a review from mitchdenny as a code owner February 18, 2025 22:35
@mitchdenny mitchdenny added the area-app-testing Issues pertaining to the APIs in Aspire.Hosting.Testing label Feb 18, 2025
@mitchdenny mitchdenny added this to the 9.1 milestone Feb 18, 2025
@mitchdenny mitchdenny self-assigned this Feb 18, 2025
@danmoseley danmoseley added the Servicing-approved Approved for servicing release label Feb 18, 2025
@wtgodbe wtgodbe merged commit 5c7f20d into release/9.1 Feb 18, 2025
5 checks passed
@wtgodbe wtgodbe deleted the backport/pr-7650-to-release/9.1 branch February 18, 2025 23:33
@github-actions github-actions bot locked and limited conversation to collaborators Mar 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-testing Issues pertaining to the APIs in Aspire.Hosting.Testing Servicing-approved Approved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants