Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove workarounds in HealthChecksUI sample #570

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

DamianEdwards
Copy link
Member

@DamianEdwards DamianEdwards commented Nov 14, 2024

Removes workarounds in the HealthChecksUI sample that should no longer be required now that dotnet/aspire#3786 and dotnet/aspire#3749 are fixed.

NOTE: I'm currently deploying the sample via azd to ensure it still works. Will update here to confirm outcome once done.

OK so seems there's a regression from this change. I'll investigate:

image

LOL it came good after a few seconds 😄
image

azd up output:

Packaging services (azd package)

Provisioning Azure resources (azd provision)
Provisioning Azure resources can take some time.

Subscription: ****
Location: ****

  You can view detailed progress in the Azure Portal:
  *****

  (✓) Done: Container Registry: acrrfuiqiqdyuxji (9.938s)
  (✓) Done: Log Analytics workspace: law-rfuiqiqdyuxji (18.178s)
  (✓) Done: Container Apps Environment: cae-rfuiqiqdyuxji (1m36.401s)

Deploying services (azd deploy)

  (✓) Done: Deploying service apiservice
  - Endpoint: https://apiservice.internal.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service cache
  - Endpoint: https://cache.internal.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service healthchecksui
  - Endpoint: https://healthchecksui.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  (✓) Done: Deploying service webfrontend
  - Endpoint: https://webfrontend.delightfulbay-32d021f3.westus.azurecontainerapps.io/

  Aspire Dashboard: https://aspire-dashboard.ext.delightfulbay-32d021f3.westus.azurecontainerapps.io

SUCCESS: Your up workflow to provision and deploy to Azure completed in 5 minutes 4 seconds.

@DamianEdwards DamianEdwards marked this pull request as draft November 14, 2024 20:02
@DamianEdwards DamianEdwards marked this pull request as ready for review November 14, 2024 20:03
Copy link
Member

@joperezr joperezr left a comment

Choose a reason for hiding this comment

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

Changes LGTM. Out of curiosity, if we wouldn't have ingested 9.0 GA yet (with the fixes), and we tried doing these changes, would a test(s) have failed as part of CI in this PR? If not, should it and should we add a test for it?

@DamianEdwards
Copy link
Member Author

Out of curiosity, if we wouldn't have ingested 9.0 GA yet (with the fixes), and we tried doing these changes, would a test(s) have failed as part of CI in this PR? If not, should it and should we add a test for it?

Not for this specific change, as it relates to publishing. We don't have any tests that verify the output of publish currently. The cheapest thing we could do is add tests to verify the manifests generated are what's expected. Of course any change that impacts the manifest would then require the "expected state" manifest to be updated. Logged #572 to track that idea.

@DamianEdwards DamianEdwards merged commit 4969bf2 into main Nov 15, 2024
3 checks passed
@DamianEdwards DamianEdwards deleted the damianedwards/fix-healthchecksui-workarounds branch November 15, 2024 00:54
@davidfowl
Copy link
Member

Looks good!

@davidfowl
Copy link
Member

I don't think you need this branch

context => context[urlEnvVarName] = isPublishing
? ReferenceExpression.Create($"{healthChecksEndpoint}/{probePath}")
: new HostUrl($"{healthChecksEndpoint.Url}/{probePath}")));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants