Skip to content

Conversation

@dmvolod
Copy link
Contributor

@dmvolod dmvolod commented May 21, 2025

Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.

This PR allows to external projects to utilize this function during custom logger creation to align functionality with internal ETCD client logic.
Fox example Kubernetes copy/paste this function about 2 years ago, but now it's not up to date. It's better to import it and have up to date always.
Also Cluster API requires this function too.

@k8s-ci-robot
Copy link

Hi @dmvolod. 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 /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

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.

@serathius
Copy link
Member

/ok-to-test

@dmvolod dmvolod force-pushed the export-etcd-client-debug-level-func branch from 7caaaba to 073dadc Compare May 22, 2025 11:03
@dmvolod dmvolod changed the title Client: Export EtcdClientDebugLevel function Client: Rename etcdClientDebugLevel function to the ClientLogLevel May 22, 2025
@dmvolod
Copy link
Contributor Author

dmvolod commented May 22, 2025

/cherrypick release-3.5

@dmvolod
Copy link
Contributor Author

dmvolod commented May 22, 2025

/cherrypick release-3.6

@k8s-infra-cherrypick-robot

@dmvolod: only etcd-io org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

Details

In response to this:

/cherrypick release-3.5

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.

@k8s-infra-cherrypick-robot

@dmvolod: only etcd-io org members may request cherry picks. If you are already part of the org, make sure to change your membership to public. Otherwise you can still do the cherry-pick manually.

Details

In response to this:

/cherrypick release-3.6

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.

@dmvolod
Copy link
Contributor Author

dmvolod commented May 22, 2025

@serathius please request cherry-pick to the 3.5 and 3.6 versions.
Thank you.

@codecov
Copy link

codecov bot commented May 22, 2025

Codecov Report

❌ Patch coverage is 66.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 68.44%. Comparing base (5e543d7) to head (166463c).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
client/v3/logger.go 50.00% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
client/v3/client.go 84.52% <100.00%> (ø)
client/v3/logger.go 27.77% <50.00%> (ø)

... and 23 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #20006   +/-   ##
=======================================
  Coverage   68.44%   68.44%           
=======================================
  Files         429      429           
  Lines       35203    35203           
=======================================
+ Hits        24093    24094    +1     
+ Misses       9709     9706    -3     
- Partials     1401     1403    +2     

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e543d7...166463c. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@serathius
Copy link
Member

@serathius please request cherry-pick to the 3.5 and 3.6 versions.
Thank you.

I would prefer we don't backport a feature, especially to v3.5. Backport for v3.6 would depend on the impact, however if K8s has already copied the function I think they can just wait until we release v3.7.

@dmvolod
Copy link
Contributor Author

dmvolod commented May 22, 2025

I would prefer we don't backport a feature, especially to v3.5. Backport for v3.6 would depend on the impact, however if K8s has already copied the function I think they can just wait until we release v3.7.

Yes, k8s as already copied the function, but very old implementation and now it's not working as expected for ETCD v3.5 and v3.6. Please backport if possible, I will replace it in some K8s when new ETCD version been release.
Cluster API still using ETCD v3.5 and will use for a long time.
Thanks in advance.

@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

@serathius
Copy link
Member

cc @ahrtr

@ahrtr
Copy link
Member

ahrtr commented Dec 25, 2025

thx for the change.

Please rebase this PR, also add a changelog under https://github.com/etcd-io/etcd/blob/main/CHANGELOG/CHANGELOG-3.7.md#package-clientv3

@dmvolod dmvolod force-pushed the export-etcd-client-debug-level-func branch from 073dadc to 31b0870 Compare December 29, 2025 13:42
@dmvolod dmvolod force-pushed the export-etcd-client-debug-level-func branch from 31b0870 to a260ed6 Compare December 29, 2025 13:53
@dmvolod
Copy link
Contributor Author

dmvolod commented Dec 29, 2025

Thanks, rebased and fixed. Please review.

@k8s-ci-robot
Copy link

k8s-ci-robot commented Dec 29, 2025

@dmvolod: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci-etcd-robustness-release36-amd64 073dadc link true /test ci-etcd-robustness-release36-amd64

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.

Details

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.

@dmvolod dmvolod force-pushed the export-etcd-client-debug-level-func branch from a260ed6 to 166463c Compare December 29, 2025 13:58
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, dmvolod, serathius

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@ahrtr ahrtr merged commit 40c5aab into etcd-io:main Dec 29, 2025
32 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

5 participants