-
Notifications
You must be signed in to change notification settings - Fork 738
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
Do not promote when not ready on skip analysis #695
Conversation
if !canary.SkipAnalysis() { | ||
return false | ||
} | ||
|
||
// regardless if analysis is being skipped, rollback if canary failed to progress |
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.
without this block, flagger immediately tries to promote the new version which at this point has 0 healthy pods.
@worldtiki have you managed to reproduce the condition when Flagger would promote a canary with 0 healthy pods? If so then it will be great to add an e2e test to https://github.com/weaveworks/flagger/blob/master/test/e2e-istio-tests.sh |
Sure. Should I add a new test or create a separate file? That one looks like it's only testing happy paths where as this is more of an edge case. |
@worldtiki you could add a new file and append it to Istio ClircleCI job definition here https://github.com/weaveworks/flagger/blob/master/.circleci/config.yml#L97 Thanks! |
@@ -3,21 +3,6 @@ | |||
# This script runs e2e tests for Canary, B/G and A/B initialization, analysis and promotion | |||
# Prerequisites: Kubernetes Kind and Istio | |||
|
|||
set -o errexit |
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 please add back set -o errexit
to all scripts
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.
Of course.
ps: I don't know if this new structure of tests makes sense. I'm happy to change this if you want.
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.
LGTM
Thanks @worldtiki 🥇
Fixes #362