Skip to content

Conversation

@antonioazambuja
Copy link

@antonioazambuja antonioazambuja commented Sep 19, 2025

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this is a chore.
  • The title of the PR is (a) conventional with a list of types and scopes found here, (b) states what changed, and (c) suffixes the related issues number. E.g. "fix(controller): Updates such and such. Fixes #1234".
  • I've signed my commits with DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My builds are green. Try syncing with master if they are not.
  • My organization is added to USERS.md.

Summary

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2025

Published E2E Test Results

  4 files    4 suites   3h 32m 38s ⏱️
118 tests 107 ✅  7 💤 4 ❌
478 runs  444 ✅ 28 💤 6 ❌

For more details on these failures, see this check.

Results for commit fc7394f.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 19, 2025

Published Unit Test Results

2 354 tests   2 354 ✅  3m 2s ⏱️
  129 suites      0 💤
    1 files        0 ❌

Results for commit fc7394f.

♻️ This comment has been updated with latest results.

@antonioazambuja antonioazambuja force-pushed the fix/allowing-abort-during-a-full-promotion branch 6 times, most recently from 8c0a014 to ad9befa Compare September 26, 2025 17:03
@zachaller zachaller requested a review from Copilot October 10, 2025 13:44
Copy link

Copilot AI left a 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.

Sleep(5*time.Second).
Then().
ExpectRevisionPodCount("1", 4).
ExpectRevisionPodCount("2", 0)
Copy link

Copilot AI Oct 10, 2025

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.

Suggested change
ExpectRevisionPodCount("2", 0)
ExpectRevisionPodCount("2", 0)

Copilot uses AI. Check for mistakes.
@antonioazambuja antonioazambuja force-pushed the fix/allowing-abort-during-a-full-promotion branch 3 times, most recently from ce22b96 to 5fb63d8 Compare October 20, 2025 13:50
@antonioazambuja antonioazambuja force-pushed the fix/allowing-abort-during-a-full-promotion branch from 5fb63d8 to fc7394f Compare October 20, 2025 14:47
@sonarqubecloud
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant