-
Notifications
You must be signed in to change notification settings - Fork 843
Add deployed compute resources and endpoints to pipeline deployment summary #14367
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
Changes from all commits
e02e1d4
120d333
3640052
dbb2fdb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -333,6 +333,7 @@ private async Task PrintEndpointsAsync(PipelineStepContext context, DockerCompos | |||||
| context.ReportingStep.Log(LogLevel.Information, | ||||||
| $"Successfully deployed **{TargetResource.Name}** to Docker Compose environment **{environment.Name}**. No public endpoints were configured.", | ||||||
| enableMarkdown: true); | ||||||
| context.Summary.Add(TargetResource.Name, "No public endpoints"); | ||||||
| return; | ||||||
| } | ||||||
|
|
||||||
|
|
@@ -346,13 +347,15 @@ private async Task PrintEndpointsAsync(PipelineStepContext context, DockerCompos | |||||
| { | ||||||
| var endpointList = string.Join(", ", endpoints.Select(e => $"[{e}]({e})")); | ||||||
| context.ReportingStep.Log(LogLevel.Information, $"Successfully deployed **{TargetResource.Name}** to {endpointList}.", enableMarkdown: true); | ||||||
| context.Summary.Add(TargetResource.Name, string.Join(", ", endpoints)); | ||||||
| } | ||||||
| else | ||||||
| { | ||||||
| // No published ports found in docker compose ps output. | ||||||
| context.ReportingStep.Log(LogLevel.Information, | ||||||
| $"Successfully deployed **{TargetResource.Name}** to Docker Compose environment **{environment.Name}**.", | ||||||
| enableMarkdown: true); | ||||||
| context.Summary.Add(TargetResource.Name, "No public endpoints"); | ||||||
|
||||||
| context.Summary.Add(TargetResource.Name, "No public endpoints"); | |
| context.Summary.Add(TargetResource.Name, "Endpoints unavailable (no published ports detected)"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
endpointsis aHashSet<string>, so joining it directly can produce non-deterministic ordering in the log/summary output. Consider ordering the endpoints (e.g., sort) before formatting so the deployment summary is stable and easier to scan/compare.