-
Notifications
You must be signed in to change notification settings - Fork 9.8k
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
tests: fix status responses size and nil #14299
Conversation
Signed-off-by: Clark <[email protected]>
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.
@clarkfw thanks for the PR. I would appreciate it if you could provide some details in the PR description for these changes and the issue(s) it solves.
I've update the comment. By the way, is it better to open an issue before committing a PR like this(bug fix)? |
Codecov Report
@@ Coverage Diff @@
## main #14299 +/- ##
==========================================
- Coverage 75.58% 75.32% -0.27%
==========================================
Files 456 456
Lines 37039 37039
==========================================
- Hits 27997 27898 -99
- Misses 7301 7389 +88
- Partials 1741 1752 +11
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. |
Thank you @clarkfw No, the issue is not required to open. But, when there is no issue related to the PR, the details provided in the PR description help reviewers to understand the context quickly for the proposed changes. |
Thanks for the detailed explanation, which makes it easier for me to participate in contribution. |
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
Thank you @clarkfw
I see that you made the same change in #14304, so you need to rebase that PR after this one is merged. |
@spzala This is only test case change, the PR is fixing the golang slice length related issue. For example, the value 10 is actually added as the 3rd element (index: 2) instead of the first element (index: 0). It's a classic error when people handle golang slice.
|
Ok, lgtm! Thanks @ahrtr @clarkfw I meant to review it after my initial general comment on PR description but coming back to work today from couple of days vacation/long weekend :) |
Thank you for taking the time to review🫰 |
As I migrate tests to common framework, I found 2 problems in the following code
resp
is filled withnil
before it is appended--endpoints
argument is redundant, asctl.spawnJsonCmd()
has already taken care of it. With this redundant--endpoints
, status of one endpoint appears 2 times inepStatus
etcd/tests/framework/e2e/etcdctl.go
Lines 290 to 304 in 4f0e92d