-
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 errorlint in server directory (part 1) #18767
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. |
Codecov ReportAttention: Patch coverage is
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files
... and 19 files with indirect coverage changes @@ Coverage Diff @@
## main #18767 +/- ##
==========================================
+ Coverage 68.68% 68.71% +0.02%
==========================================
Files 420 420
Lines 35504 35505 +1
==========================================
+ Hits 24385 24396 +11
+ Misses 9685 9677 -8
+ Partials 1434 1432 -2 Continue to review full report in Codecov by Sentry.
|
/ok-to-test |
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
/test pull-etcd-integration-4-cpu-arm64 |
Hi @ahrtr I see this message from @codecov-commenter :
Is there any intention to address this ? |
Thank you for bringing this up. Where did you see the message? I'd like to defer to @henrybear327 and @ivanvc to comment on this. Thanks. |
This was briefly discussed in issue #18131 (comment) / #18143. At that point, it worked fine, but that banner/warning later started appearing (see how it was before #18143). Let's track it in the original issue (cc. @henrybear327). Thanks, @mmorel-35, for raising awareness. |
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 @mmorel-35
I have added a comment #18131 (comment) in relation to the codecov warning.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, jmhbnz, 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 |
There is no suggested assignee here. |
server/etcdmain/config.go
Outdated
case nil: | ||
case flag.ErrHelp: | ||
switch { | ||
case errors.Is(perr, nil): |
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.
Think this has different semantics than checking err == nil
.
How this is an improvement?
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.
This works the same : https://cs.opensource.google/go/go/+/refs/tags/go1.23.2:src/errors/wrap.go;l=46
Signed-off-by: Matthieu MOREL <[email protected]>
add6d6f
to
4445265
Compare
Sorry I’ll have to start over with #18780 |
@mmorel-35: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. I understand the commands that are listed here. |
Hi @mmorel-35, given the size of the etcd team, I don't think we're currently using the assignee field in pull requests. Feel free to keep adding them or skip them 😅. We have some maintainers who are on leave and others who are not tech leads. The tech leads are @ahrtr and @serathius :) |
This enable errorlint in packages server
Related to #18576