-
Notifications
You must be signed in to change notification settings - Fork 101
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
Clean up resources even though AWS resources are not used #4612
Conversation
@@ -207,12 +207,18 @@ func (ct CoreRPTest) Test(t *testing.T) { | |||
} | |||
}) | |||
|
|||
t.Logf("Creating secrets if provided") |
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.
lol.. this code had been deleted for some reason...
t.Logf("validating deletion of AWS resource for %s", ct.Description) | ||
validation.ValidateNoAWSResource(ctx, t, &resource, ct.Options.AWSClient) | ||
t.Logf("finished validation of deletion of AWS resource %s for %s", resource.Name, ct.Description) | ||
} | ||
} | ||
|
||
if (step.CoreRPResources == nil && step.SkipKubernetesOutputResourceValidation) || step.SkipResourceDeletion { |
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.
Could we remove the continue here and change the logic in this line so that we do not add similar regressions if some cleanup gets added after this?
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.
Ah this condition is true only if CoreRPResource is empty and skipped explicitly. So generally, continue
will not be executed.
Description
The root cause is the bug in DELETE controller of Dapr resource. As a workaround, this PR skips the resource deletion during tearing down the test.
Changing test concurrency to 1 since local tests without concurrent tests are passing.Issue reference
Fixes: #4543
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: