Skip to content

Mark --snapshot-count as deprecated in v3.6 and will be decommissioned in 3.7#18998

Merged
ahrtr merged 1 commit intoetcd-io:mainfrom
ahrtr:snapshot_count_20241203
Dec 4, 2024
Merged

Mark --snapshot-count as deprecated in v3.6 and will be decommissioned in 3.7#18998
ahrtr merged 1 commit intoetcd-io:mainfrom
ahrtr:snapshot_count_20241203

Conversation

@ahrtr
Copy link
Copy Markdown
Member

@ahrtr ahrtr commented Dec 3, 2024

…d in v3.7

Signed-off-by: Benjamin Wang <benjamin.ahrtr@gmail.com>
@ahrtr ahrtr force-pushed the snapshot_count_20241203 branch from ebdd53c to 8bc42d9 Compare December 3, 2024 15:02
@codecov
Copy link
Copy Markdown

codecov bot commented Dec 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 68.83%. Comparing base (b038739) to head (8bc42d9).
Report is 2 commits behind head on main.

Additional details and impacted files
Files with missing lines Coverage Δ
server/embed/config.go 79.49% <100.00%> (ø)
server/etcdmain/config.go 66.89% <100.00%> (+1.89%) ⬆️

... and 19 files with indirect coverage changes

@@           Coverage Diff           @@
##             main   #18998   +/-   ##
=======================================
  Coverage   68.82%   68.83%           
=======================================
  Files         420      420           
  Lines       35621    35629    +8     
=======================================
+ Hits        24517    24525    +8     
+ Misses       9683     9680    -3     
- Partials     1421     1424    +3     

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 b038739...8bc42d9. Read the comment docs.

@ahrtr
Copy link
Copy Markdown
Member Author

ahrtr commented Dec 3, 2024

cc @ivanvc and @jmhbnz

Copy link
Copy Markdown
Member

@fuweid fuweid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Member

@jmhbnz jmhbnz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Thanks @ahrtr

Copy link
Copy Markdown
Member

@ivanvc ivanvc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks, @ahrtr.

@k8s-ci-robot
Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahrtr, fuweid, ivanvc, jmhbnz, 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:
  • OWNERS [ahrtr,jmhbnz,serathius]

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 715c12d into etcd-io:main Dec 4, 2024
@ahrtr ahrtr deleted the snapshot_count_20241203 branch December 4, 2024 16:41
Comment thread server/etcdmain/config.go
Comment on lines +173 to +185
var warningsForDeprecatedFlags []string
cfg.cf.flagSet.Visit(func(f *flag.Flag) {
if msg, ok := deprecatedFlags[f.Name]; ok {
warningsForDeprecatedFlags = append(warningsForDeprecatedFlags, msg)
}
})
if len(warningsForDeprecatedFlags) > 0 {
if lg := cfg.ec.GetLogger(); lg != nil {
for _, msg := range warningsForDeprecatedFlags {
lg.Warn(msg)
}
}
}
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that it only checks the command line flags. We should check the config file input as well. Proposed actions:

  • Move this code snip into configFromCmdLine;
  • add similar check in configFromFile

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.

Mark --snapshot-count as deprecated and to be decommissioned in 3.7

6 participants