-
Notifications
You must be signed in to change notification settings - Fork 542
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: retries field to support zero value #2298
Conversation
fix issue apache#2297 by changing retries type int to *int
add unit test to the modified field
Codecov Report
@@ Coverage Diff @@
## master #2298 +/- ##
=======================================
Coverage 68.16% 68.16%
=======================================
Files 127 127
Lines 3374 3374
Branches 830 830
=======================================
Hits 2300 2300
Misses 1074 1074
Flags with carried forward coverage won't be shown. Click here to find out more. Continue to review full report at Codecov.
|
Thanks! Let's cc @zaunist @Baoyuantop to have a check |
Better add some E2E test case to cover this change. |
Hi @zaunist, maybe @Chaunceyan is not familiar with this, could you please give some hints or steps? |
Hi @zaunist, no problem, I suppose some cases on the route handler will do? |
I think it's better to add cases to https://github.com/apache/apisix-dashboard/blob/master/api/test/e2enew/upstream/upstream_retry.go |
You can just create a upstream with zero value, and check it return values. |
add e2e test for retries field
Sure, added in the new commit |
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.
LGTM
@zaunist @juzhiyuan It seems some of the ginkgo e2e tests failed. Is this a concern or they were being broken? |
I just retriggered the CI, wait for a moment. |
@juzhiyuan Hi Zhiyuan, happy new year. I guess I found the problem. My e2e test case introduced some side effects in the etcd which leads to the other failed cases. Would you mind trigger the CI again when available? Thanks |
Sure! Just rerun |
666 |
Hi @Chaunceyan, thank you for your contribution! Here is the Contributor T-shirt form[1], if you're interested, kindly take a look :) [1] https://github.com/apache/apisix/blob/master/CONTRIBUTING.md#contributor-t-shirt |
Thanks, I filled the form. Cheers |
fix issue #2297 by changing retries type int to *int
Please answer these questions before submitting a pull request, or your PR will get closed.
Why submit this pull request?
What changes will this PR take into?
Change the type of the field
api/internal/core/entity/entity.go:166
retries from int to *int.Related issues
fix/resolve #0001
Checklist: