-
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
api: wrap underlying EtcdError error #18578
base: main
Are you sure you want to change the base?
Conversation
Without wrapping, using `errors.Is()` (or even trying to compare the error with `==`) fails as EtcdError swallows the underlying error. Signed-off-by: Ivan Valdes <ivan@vald.es>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: ivanvc 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 |
@ivanvc: 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. |
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 files
... and 87 files with indirect coverage changes @@ Coverage Diff @@
## main #18578 +/- ##
==========================================
- Coverage 68.77% 66.08% -2.69%
==========================================
Files 420 420
Lines 35474 35476 +2
==========================================
- Hits 24396 23445 -951
- Misses 9656 10561 +905
- Partials 1422 1470 +48 Continue to review full report in Codecov by Sentry.
|
Without wrapping, using
errors.Is()
(or even trying to compare the error with==
) fails as EtcdError swallows the underlying error.Related to #18493.
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.