-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix(controller): allowing abort during a full promotion Fixes #4461 #4462
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
base: master
Are you sure you want to change the base?
fix(controller): allowing abort during a full promotion Fixes #4461 #4462
Conversation
Published E2E Test Results 4 files 4 suites 3h 32m 38s ⏱️ For more details on these failures, see this check. Results for commit fc7394f. ♻️ This comment has been updated with latest results. |
Published Unit Test Results2 354 tests 2 354 ✅ 3m 2s ⏱️ Results for commit fc7394f. ♻️ This comment has been updated with latest results. |
8c0a014 to
ad9befa
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.
Pull Request Overview
Fixes an issue where canary rollouts cannot be aborted after a full promotion is requested. The bug prevented the abort command from taking effect when PromoteFull is true, causing canary pods to remain at full weight instead of scaling down to zero during an abort.
- Modified abort logic to check abort status before applying full promotion weight
- Added condition to only remove abort during rollback scenarios, not full promotion
- Added comprehensive test coverage for the abort after full promotion scenario
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| utils/replicaset/canary.go | Modified weight calculation to respect abort status even during full promotion |
| rollout/canary.go | Updated abort removal logic to only apply during rollback, preserving abort during full promotion |
| utils/replicaset/canary_test.go | Added test cases for abort scenarios during full promotion |
| test/e2e/functional_test.go | Added end-to-end test for abort after full promotion and removed conflicting abort call |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
test/e2e/functional_test.go
Outdated
| Sleep(5*time.Second). | ||
| Then(). | ||
| ExpectRevisionPodCount("1", 4). | ||
| ExpectRevisionPodCount("2", 0) |
Copilot
AI
Oct 10, 2025
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.
Missing period after the first ExpectRevisionPodCount call - should be .ExpectRevisionPodCount("1", 4). to maintain consistent method chaining.
| ExpectRevisionPodCount("2", 0) | |
| ExpectRevisionPodCount("2", 0) |
ce22b96 to
5fb63d8
Compare
Signed-off-by: Antonio Azambuja <[email protected]>
5fb63d8 to
fc7394f
Compare
|



Checklist:
"fix(controller): Updates such and such. Fixes #1234".Summary