-
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: append weighted destination only when weight is mentioned #2734
fix: append weighted destination only when weight is mentioned #2734
Conversation
Go Published Test Results2 097 tests 2 097 ✅ 2m 49s ⏱️ Results for commit e09f049. ♻️ This comment has been updated with latest results. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2734 +/- ##
==========================================
+ Coverage 81.79% 81.87% +0.08%
==========================================
Files 135 135
Lines 20649 20650 +1
==========================================
+ Hits 16889 16908 +19
+ Misses 2885 2869 -16
+ Partials 875 873 -2 ☔ View full report in Codecov by Sentry. |
E2E Tests Published Test Results 4 files 4 suites 3h 26m 55s ⏱️ For more details on these failures, see this check. Results for commit e09f049. ♻️ This comment has been updated with latest results. |
Can we also add a unit test for the nil pointer check? |
4b7f279
to
90e544c
Compare
Hi @zachaller thanks for reviewing, let me add that as well |
31816e6
to
81bf063
Compare
Hi @zachaller please could you review this? apologies for taking so long to address your comment, I have made few changes in the existing UT itself because the existing UT "TestRolloutWithExperimentStep" was not covering the desired code.. It was logging error but somehow the UT was passing. |
81bf063
to
9acfde0
Compare
@zachaller Hi please could you update on this? |
@zachaller please let me know if any further change is required before we can merge this |
@leoluz please could you review? |
@zachaller please can you review |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
@zachaller please can you review |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
45222e0
to
299c344
Compare
…eriment template Signed-off-by: divyansh375 <divyanshsaxena98@gmail.com>
299c344
to
e09f049
Compare
Quality Gate passedKudos, no new issues were introduced! 0 New issues |
As of now, in canary deployment with weighted experiment, the rollout throws nil pointer exception, when in an experiment step, one template contains weight and the other doesn't. For example:
Hence handling a nil pointer check and also a UT verification for port name .
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.