Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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: rs conflict with fallback to patch #3559
fix: rs conflict with fallback to patch #3559
Changes from 45 commits
7943d8d
650e86d
ae05623
29fe254
8bfb37d
7526220
3822105
b30b93d
5e2bda5
0dd919e
90d5ada
aa8f677
332ef46
a73bfa5
23f6883
a6297b6
a913d1c
401c8c8
0e6db13
3810f1d
2384b7e
89ed30f
61a56bb
d9a6655
faaafc6
2aeaf63
7411720
f4a2e27
bec20f2
a9e11ef
1a6fe3b
8454637
2b73c42
5f09e84
66b2e59
cce7ac4
1272d22
bbcc80e
e1bc540
4ebd960
fed308b
046fde9
e39bb6e
697a55f
e52400d
ec9d9b0
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 115 in rollout/canary.go
Codecov / codecov/patch
rollout/canary.go#L115
Check warning on line 958 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L958
Check warning on line 962 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L962
Check warning on line 966 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L966
Check warning on line 990 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L990
Check warning on line 1014 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L1014
Check warning on line 1021 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L1021
Check warning on line 1027 in rollout/controller.go
Codecov / codecov/patch
rollout/controller.go#L1027
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.
we should probably add several test cases to validate the new
updateReplicaSetFallbackToPatch
methodThere 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.
There are two test that cover most the happy paths to lock in the behavior on the two conflict points here. I don't think it's worth going down a lot of the error paths like incorrect json marshal's etc.
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.
codecovs percentages don't always make sense to me, here is the coverage of that function https://app.codecov.io/gh/argoproj/argo-rollouts/pull/3559?src=pr&el=tree&filepath=rollout%2Fcontroller.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=argoproj#6b8a01c38fada35656503847a6f4a00d-R951
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.
It seems that the coverage is comparing the wrong base from the link above.
Check warning on line 88 in rollout/ephemeralmetadata.go
Codecov / codecov/patch
rollout/ephemeralmetadata.go#L87-L88