Skip to content

[release/9.1] Add WaitBehavior to WaitForResourceHealthyAsync - #7664

Merged
William Godbe (wtgodbe) merged 2 commits into
release/9.1from
backport/pr-7650-to-release/9.1
Feb 18, 2025
Merged

[release/9.1] Add WaitBehavior to WaitForResourceHealthyAsync#7664
William Godbe (wtgodbe) merged 2 commits into
release/9.1from
backport/pr-7650-to-release/9.1

Conversation

@github-actions

@github-actionsgithub-actionsBot commented Feb 18, 2025

Copy link
Copy Markdown
Contributor

Backport of #7650 to release/9.1

/cc Mitch Denny (@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?

@mitchdennyMitch Denny (mitchdenny) added the area-app-testing Issues pertaining to the APIs in Aspire.Hosting.Testing label Feb 18, 2025
@mitchdennyMitch Denny (mitchdenny) added this to the 9.1 milestone Feb 18, 2025
@danmoseleyDan Moseley (danmoseley) added the Servicing-approved Approved for servicing release label Feb 18, 2025
@wtgodbe
William Godbe (wtgodbe) merged commit 5c7f20d into release/9.1Feb 18, 2025
@wtgodbe
William Godbe (wtgodbe) deleted the backport/pr-7650-to-release/9.1 branch February 18, 2025 23:33
@github-actionsgithub-actionsBot locked and limited conversation to collaborators Mar 21, 2025
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-app-testingIssues pertaining to the APIs in Aspire.Hosting.TestingServicing-approvedApproved for servicing release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@danmoseley@wtgodbe@mitchdenny@adamint