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
Fix to check all canary resources are deleted #484
Conversation
Code coverage for golang is
|
@@ -94,6 +94,7 @@ func (e *Executor) ensureCanaryClean(ctx context.Context) model.StageStatus { | |||
|
|||
resources := strings.Split(value, ",") | |||
if err := e.removeCanaryResources(ctx, resources); err != nil { | |||
e.LogPersister.AppendErrorf("Unable to remove canary resources: %v", err) |
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.
Can you add this log for baseline
too?
return fmt.Errorf("unable to delete %d resources", len(resources)-deletedCount) | ||
if deletedCount < resourcesLen { | ||
e.LogPersister.AppendInfof("Deleted %d/%d resources", deletedCount, resourcesLen) | ||
return fmt.Errorf("unable to delete %d resources", resourcesLen-deletedCount) |
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.
Nice.
Code coverage for golang is
|
Fixed |
/approve |
What this PR does / why we need it:
Which issue(s) this PR fixes:
Fixes #478
Does this PR introduce a user-facing change?: