Skip to content

feat: warn about missing packages#523

Merged
mik-ky merged 1 commit intomainfrom
ck/missing-packages-warning
May 28, 2025
Merged

feat: warn about missing packages#523
mik-ky merged 1 commit intomainfrom
ck/missing-packages-warning

Conversation

@mik-ky
Copy link
Copy Markdown
Contributor

@mik-ky mik-ky commented May 26, 2025

Adds missing packages warning when deploying a release. User can continue to deploy if they wish, and if the --no- prompt flag is passed it bypasses this check (as no questions are asked).

This is sitting behind a feature flag.

Changes

No, don't continue

image

Yes, continue

image

--no-prompt flag

image

Requires OctopusDeploy/go-octopusdeploy#335

[sc-110366]

@mik-ky mik-ky force-pushed the ck/missing-packages-warning branch 3 times, most recently from 25370c5 to de3e9ad Compare May 27, 2025 04:45
//
//emptyDeploymentPreviews := fixtures.EmptyDeploymentPreviews()
//api.ExpectRequest(t, "POST", "/api/Spaces-1/releases/"+release19.ID+"/deployments/previews").RespondWith(&emptyDeploymentPreviews)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Cleaning up some commented out code

@mik-ky mik-ky force-pushed the ck/missing-packages-warning branch 2 times, most recently from 252981d to 1e8a4c7 Compare May 27, 2025 05:19
Copy link
Copy Markdown
Collaborator

@tothegills tothegills left a comment

Choose a reason for hiding this comment

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

Code looks good, manually tested, great test coverage.

func promptMissingPackages(octopus *octopusApiClient.Client, stdout io.Writer, asker question.Asker, release *releases.Release) bool {
missingPackages, err := releases.GetMissingPackages(octopus, release)
if err != nil {
// We don't want to prevent deployments from going through because of this check
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Nice!

@mik-ky mik-ky force-pushed the ck/missing-packages-warning branch from 1e8a4c7 to b5b93ff Compare May 28, 2025 00:57
@mik-ky mik-ky merged commit c349e2d into main May 28, 2025
4 checks passed
@mik-ky mik-ky deleted the ck/missing-packages-warning branch May 28, 2025 02:31
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.

2 participants