-
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
Remaining errors.Is for error equality checks #18551
Conversation
Signed-off-by: redwrasse <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: redwrasse The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @redwrasse. 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. |
Seeing some package name conflicts, let me fix |
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 #18551 +/- ##
==========================================
+ Coverage 68.73% 68.80% +0.07%
==========================================
Files 420 420
Lines 35470 35470
==========================================
+ Hits 24381 24406 +25
+ Misses 9668 9647 -21
+ Partials 1421 1417 -4 Continue to review full report in Codecov by Sentry.
|
/ok-to-test |
goimports error, i'll fix it |
Signed-off-by: redwrasse <[email protected]>
8b68a6e
to
1775d5e
Compare
@redwrasse: 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 @redwrasse, thanks for the pull request. Due to its size and ease of review, would you be able to help us break it into multiple smaller PRs? I suggest one per module, i.e., I also suggest waiting for #18510 to be merged so you can continue working on it after we have the maintainers' approval and get it merged into main. Thanks again, Samir. |
Link to #18576 |
@ivanvc sounds good, I'll hold off for now and if we move forward I can help with a separate PR per-module. |
@redwrasse, is it okay to assign you to our new parent issue for this? (#18576) If that's ok, you can comment |
Closing this PR, since as discussed the remaining errors.Is changes PRs should be submitted per-module. |
This PR follows up on #18510 to replace the rest of error equality/inequality checks with
errors.Is
, which is robust to error wrapping (https://pkg.go.dev/errors#pkg-overview).Note I believe there are a number of cases of explicit error strings substring matching in tests for that are not covered in this PR. This PR just changes explicit
err ==
anderr !=
toerrors.Is
and!errors.Is
.@ivanvc