-
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 for #19066 Print warnings when deprecated options are configured in config file #19148
base: main
Are you sure you want to change the base?
Conversation
Hi @mansoor17syed. 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. |
810eed4
to
f5cdee6
Compare
/ok-to-test |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 27 files with indirect coverage changes @@ Coverage Diff @@
## main #19148 +/- ##
==========================================
+ Coverage 68.77% 68.81% +0.04%
==========================================
Files 420 420
Lines 35640 35649 +9
==========================================
+ Hits 24510 24531 +21
+ Misses 9704 9694 -10
+ Partials 1426 1424 -2 Continue to review full report in Codecov by Sentry.
|
This PR doesn't fix #19066 . Please follow #18998 (comment) Thanks anyway |
Hi @ahrtr Thank you for the review and feedback! I initially assumed that the comment in the earlier PR referred specifically to their changes. Could you please confirm if the fix for issue #19066 is intended to address the comment you provided here : #18998 (comment) Appreciate your clarification! |
YES |
56f54b1
to
f929a61
Compare
f340ceb
to
1d4f997
Compare
Can you Please have a look once now if I have done the right changes Still open for feedback and suggestions |
@mansoor17syed The change looks good. Please squash the commits |
Could you please also add a test to cover the config file case? |
98f23c0
to
70b0e50
Compare
can chk now I have added the UT but some seems failing I doubt its because of my changes. |
Please squash the commits. |
2fca19d
to
d83f391
Compare
@ahrtr @serathius |
/test pull-etcd-robustness-arm64 |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahrtr, mansoor17syed 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 |
I don’t seem to have the permissions to merge this. @ahrtr Could you kindly take care of it? |
Usually a PR needs two approval to be merged. Let's wait one of other maintainers or reviewers to take a look. thx |
server/etcdmain/config_test.go
Outdated
} | ||
|
||
// Compare sets of flags | ||
if !reflect.DeepEqual(foundFlags, tc.expectedFlags) { |
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.
Why not use assert.Equal?
server/etcdmain/config_test.go
Outdated
|
||
// Special check for experimental-warning-unary-request-duration | ||
if tc.configFileYAML.ExperimentalWarningUnaryRequestDuration != 0 { | ||
t.Log("Note: experimental-warning-unary-request-duration deprecation is handled separately") |
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.
Why log here? if we want to leave context a comment would be enough.
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.
Ok will chk this
can you have a look now ? |
Use minimal config struct for YAML marshaling. Replace custom mapToSortedSlice with standard library functions. Fix flag verification for deprecated experimental options. Fixes etcd-io#19066 Signed-off-by: mansoora <[email protected]> test: fix TestConfigFileDeprecatedOptions Use minimal config struct for YAML marshaling. Replace custom mapToSortedSlice with standard library functions. Fix flag verification for deprecated experimental options. Fixes etcd-io#19066 Signed-off-by: mansoora <[email protected]>
f8c0bf3
to
d398945
Compare
@mansoor17syed: The following test 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. |
fix for #19066 Print warnings when deprecated options are configured in config file
Issue Details
Add warnings when deprecated options are configured
Problem: Currently, etcd doesn't warn users when they configure deprecated options
Goal: Improve user experience by warning about deprecated configurations before they're removed
Solution Overview
Implementation Location: server/config/config.go