Skip to content

Conversation

mitchdenny
Copy link
Member

@mitchdenny mitchdenny commented May 1, 2025

Reverts #9038

This PR reverts an earlier revert (with some modifications). Previous we used WaitForResourceHealthyAsync(...) which worked in the repo but failed in the nightly builds. This is because in the repo we show the dashboard resource in the resources list (its not hidden) but in the release packages the dashboard has a hidden state.

This change introduces a temporary work around n the ResourceHealthCheckService which special cases the dashboard resource so that health checks will be run for the dashboard.

Then in the AppHostRpcTarget we special case a WaitForResourceAsync call so that we wait for all the dashboard resource health reports to be healthy.

This change will go in before #9063 - but once that change is fully tested and merged we can refine this code to be less hacky. I want to get this in before though because I think #9063 may take a little bit to thoroughly test.

@github-actions github-actions bot added the area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication label May 1, 2025
@mitchdenny mitchdenny marked this pull request as ready for review May 2, 2025 01:08
@mitchdenny mitchdenny requested review from adamint and davidfowl May 2, 2025 01:08
@mitchdenny mitchdenny self-assigned this May 2, 2025
@mitchdenny mitchdenny added this to the 9.3 milestone May 2, 2025
@mitchdenny mitchdenny changed the title Revert "Revert "Wait for dashboard to be healthy before returning URL via RPC."" Wait for dashboard to be healthy before returning URL via RPC (revert-revert) May 2, 2025
@mitchdenny
Copy link
Member Author

@adamint heads up. The hacks in this PR is an example of why your #9063 is so important. But the blast radius on your change is quite large so we'll want to test it for a while before we merge it.

@mitchdenny mitchdenny merged commit d3bd0e9 into main May 2, 2025
170 checks passed
@mitchdenny mitchdenny deleted the revert-9038-revert-9027-mitchdenny/devcontainer-dashboard-portforwarding-bug branch May 2, 2025 02:00
@github-actions github-actions bot locked and limited conversation to collaborators Jun 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-app-model Issues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication area-cli
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants