-
Notifications
You must be signed in to change notification settings - Fork 867
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: stuck rollout when 2nd deployment happens before 1st finishes #3354
fix: stuck rollout when 2nd deployment happens before 1st finishes #3354
Conversation
Go Published Test Results2 106 tests 2 106 ✅ 2m 50s ⏱️ Results for commit 7e25564. ♻️ This comment has been updated with latest results. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3354 +/- ##
==========================================
+ Coverage 81.83% 82.85% +1.01%
==========================================
Files 135 135
Lines 20688 16841 -3847
==========================================
- Hits 16931 13953 -2978
+ Misses 2883 2013 -870
- Partials 874 875 +1 ☔ View full report in Codecov by Sentry. |
E2E Tests Published Test Results 4 files 4 suites 3h 46m 57s ⏱️ For more details on these failures, see this check. Results for commit 7e25564. ♻️ This comment has been updated with latest results. |
f87656f
to
99e2cdf
Compare
@meeech Would you be able to review the PR? |
@ashutosh16 I'll have a look and test it out as well. Q: Does this fix need to be done for the bluegreen as well. An identical change was made there. |
I tested with the following scenario:
the fix is not needed for b/g, since the svc is already update with correct |
ExpectRevisionPodCount("2", 0). | ||
ExpectRevisionPodCount("3", 1)) | ||
} | ||
|
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.
@ashutosh16 I ran the e2e tests with the fix removed, and this test passed. So I don't think this is a valid test? (at least for avoiding regressions)
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.
You're right the e2e does not simulate the scenario correctly. I looked into e2e function UpdateSpec()
and it seems it resume the rollout and then update to new revision which doesn't cover this scenario. I'll look into it further.
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.
Fixed the testcase. It should fail without the fix.
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.
So my only concern here is I removed the fix and the test still passed.
5bd3250
to
4ffad05
Compare
Signed-off-by: asingh51 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: asingh51 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: asingh51 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: asingh51 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: asingh51 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]> fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]>
4ffad05
to
7e25564
Compare
Quality Gate passedIssues Measures |
…3354) fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]> Co-authored-by: asingh51 <[email protected]>
…3354) fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused fix: stuck rollout when rollout is paused Signed-off-by: ashutosh16 <[email protected]> Co-authored-by: asingh51 <[email protected]>
Linking back to the related issue: #3331 |
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.