Skip to content

Conversation

@bihari123
Copy link

Replace deprecated strings.Replace(s, old, new, -1) with the more
modern and readable strings.ReplaceAll(s, old, new).

Also improve readability of commandUsageTemplate initialization
by breaking it into multiple lines.

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

  Replace deprecated strings.Replace(s, old, new, -1) with the more
  modern and readable strings.ReplaceAll(s, old, new).

  Also improve readability of commandUsageTemplate initialization
  by breaking it into multiple lines.

Signed-off-by: Bihari123 <[email protected]>
@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: bihari123
Once this PR has been reviewed and has the lgtm label, please assign ahrtr for approval. For more information see the Code Review Process.

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot
Copy link

Hi @bihari123. Thanks for your PR.

I'm waiting for a github.com 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.

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.

@ahrtr
Copy link
Member

ahrtr commented Nov 12, 2025

/ok-to-test

@k8s-ci-robot
Copy link

@bihari123: 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
pull-etcd-coverage-report fbef122 link true /test pull-etcd-coverage-report

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
Copy link

codecov bot commented Nov 12, 2025

Codecov Report

❌ Patch coverage is 83.33333% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 69.13%. Comparing base (83b2ba5) to head (fbef122).
⚠️ Report is 4 commits behind head on main.

Files with missing lines Patch % Lines
pkg/cobrautl/help.go 83.33% 1 Missing ⚠️
Additional details and impacted files
Files with missing lines Coverage Δ
pkg/cobrautl/help.go 44.44% <83.33%> (+1.96%) ⬆️

... and 18 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #20924      +/-   ##
==========================================
- Coverage   69.21%   69.13%   -0.08%     
==========================================
  Files         422      422              
  Lines       34839    34843       +4     
==========================================
- Hits        24113    24089      -24     
- Misses       9323     9347      +24     
- Partials     1403     1407       +4     

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 83b2ba5...fbef122. Read the comment docs.

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

{{end}}
`[1:]

commandUsageTemplate = template.Must(template.New("command_usage").Funcs(templFuncs).Parse(strings.ReplaceAll(commandUsage, "\\\n", "")))
Copy link
Member

Choose a reason for hiding this comment

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

Please avoid reformatting code unrelated to PR goal.

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.

4 participants