-
Notifications
You must be signed in to change notification settings - Fork 116
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
Evaluate progress condition after progress deadline seconds have passed #765
Conversation
@@ -155,6 +155,7 @@ def rollout_annotation_err_msg | |||
|
|||
def deploy_failing_to_progress? | |||
return false unless progress_condition.present? | |||
return false if deploy_started? && Time.now.utc - @deploy_started_at < progress_deadline |
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.
Worth a comment here, since the deploy is indeed failing to progress, we're just ignoring that for now :)
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.
Code looks good, can you update the readme and changelog before merging
5bb8a48
to
aaa2486
Compare
aaa2486
to
e58c95d
Compare
This change checks for the progress condition of a k8s deployment type after the progress deadline seconds have passed.
ie. when a deployment has been marked as failed to progress, we will wait for at least PDS seconds after a deploy/retry to mark it failed, instead of failing it right away
Note this assumes that
@deploy_started_at
is reset during retries as the DeployTask creates a new instance of resource_deployer each time.cc @Shopify/pipeline