-
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: canary step analysis run wasn't terminated as keep running after promote action being called. Fixes #3220 #3221
fix: canary step analysis run wasn't terminated as keep running after promote action being called. Fixes #3220 #3221
Conversation
… promote action being called Signed-off-by: oleksandr-codefresh <[email protected]>
758b6de
to
3d93386
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #3221 +/- ##
==========================================
+ Coverage 81.81% 81.83% +0.01%
==========================================
Files 135 135
Lines 20627 20629 +2
==========================================
+ Hits 16876 16881 +5
+ Misses 2880 2877 -3
Partials 871 871 ☔ View full report in Codecov by Sentry. |
Can we get a unit and/or e2e test for this? |
@zachaller was thinking about that, but you don't have any unit tests for this method (reconcileStepBasedAnalysisRun) ATM |
We do this function get's called via this https://github.com/argoproj/argo-rollouts/blob/master/rollout/analysis_test.go#L167 we spin up a controller there with a fake k8s client which will reconcile which ends up calling that function eventually. |
ok, will try to add |
…rminated as keep running after promote action being called Signed-off-by: oleksandr-codefresh <[email protected]>
@zachaller added |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@zachaller Hi, could you pls take a look? |
… promote action being called. Fixes argoproj#3220 (argoproj#3221) * fix: canary step analysis run wasn't terminated as keep running after promote action being called Signed-off-by: oleksandr-codefresh <[email protected]> * fix unit test: added test case for canary step analysis run wasn't terminated as keep running after promote action being called Signed-off-by: oleksandr-codefresh <[email protected]> --------- Signed-off-by: oleksandr-codefresh <[email protected]> Co-authored-by: pasha-codefresh <[email protected]> (cherry picked from commit 0300af1)
fixes #3220
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.