-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[ui] Fix a bug where promotion would be asked with no new canaries #20408
[ui] Fix a bug where promotion would be asked with no new canaries #20408
Conversation
24238a3
to
a5b4c02
Compare
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!
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.
promote em if ya got em! (but only if ya got em)
Ember Test Audit comparison
|
…ore accurately reflect a state of a promotable workflow
1301e88
to
547cabb
Compare
…20408) * Fix a UI bug where promotion would be asked with no new canaries * Because we now make sure of your allocations, our test cases should more accurately reflect a state of a promotable workflow
I'm going to lock this pull request because it has been closed for 120 days ⏳. This helps our maintainers find and focus on the active contributions. |
The "Are all your canaries healthy?" part of the "should we prompt the user to manually promote their deployment" depended on an
array.every
check without a condition that the array have some members.This meant that, as shown in #20308, a user can run into a situation where a new canary allocation fails to place, but the system insists that "there are no unhealthy canaries!" so it's manual promotion time.
This checks for at least one new-version allocation with canary status that hasn't been rescheduled before flipping
canariesHealthy
to true. If there are none, the user will continue to be met with a "Your deployment's canaries are still being health checked" pending status.