-
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
fix: enable nil-compare rule from testifylint #18689
Conversation
Hi @mmorel-35. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
93cb172
to
19a5953
Compare
/assign @spzala |
19a5953
to
4b78791
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted filessee 23 files with indirect coverage changes @@ Coverage Diff @@
## main #18689 +/- ##
==========================================
+ Coverage 68.75% 68.78% +0.02%
==========================================
Files 420 420
Lines 35494 35494
==========================================
+ Hits 24404 24413 +9
- Misses 9655 9660 +5
+ Partials 1435 1421 -14 Continue to review full report in Codecov by Sentry.
|
/ok-to-test |
Thank you! |
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. Thanks, Matthieu. Can you delete client/pkg/testutil/assert.go
in a follow-up pull request?
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, ivanvc, mmorel-35 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Are you sure that's not used by any project that depends on etcd. |
Good point. Let's deprecate. |
4b78791
to
cf17090
Compare
OK, I updated the comments on the |
2d64a72
to
827654b
Compare
/retest linux-arm64-integration-4-cpu |
@mmorel-35: The
The following commands are available to trigger optional jobs:
Use In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Sorry, @mmorel-35. I think it'd be better in another PR, to open it up for discussion. |
827654b
to
4b9c600
Compare
Alright, it's reverted |
/test pull-etcd-integration-1-cpu-amd64 |
Thank you so much. /retest |
@jmhbnz, Matthieu removed the deprecation notice from |
4b9c600
to
731b2a1
Compare
@ahrtr , |
/assign @jmhbnz |
Signed-off-by: Matthieu MOREL <[email protected]>
731b2a1
to
de2c95d
Compare
/test pull-etcd-integration-1-cpu-amd64 |
/test pull-etcd-robustness-arm64 |
Link to #18719 |
This fixes nil-compare rule from testifylint.
It also replaces
testutil.AssertNil
andtestutil.AssertNotNil
byassert.Nil
andrequire.NotNil
The require package is used for NotNil replacement because of the Fatal method being used in testutil version of the method.