etcd icon indicating copy to clipboard operation
etcd copied to clipboard

Update update_dep.sh

Open henrybear327 opened this issue 1 year ago • 7 comments

Based on the experience of performing dependency bumps, some minor improvements are made to the script to make it conform to our current dependency bump procedure, listed as follows:

  • print out the dependency's version before and after the bump
  • check if the dependency is fully indirect
  • change the behavior of bumping dependency (doesn't ignore bumping indirect dependency in the go mod files anymore)
  • check if all dependencies across all go mod files have the same pinned version respectively after bumping a dependency

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

henrybear327 avatar Sep 19 '24 17:09 henrybear327

/cc @ivanvc /cc @ahrtr I am not good with bash scripts :(

This is the script that I have been using to bump the dependencies in the past months. Hopefully, it will be helpful for future volunteers before the dependabot is fixed!

henrybear327 avatar Sep 19 '24 17:09 henrybear327

@henrybear327, there are some shellcheck warnings in the script. Would you want to draft the PR? And would you like me to continue on top of it? Or do you want to address the issues?

ivanvc avatar Sep 19 '24 17:09 ivanvc

@henrybear327, there are some shellcheck warnings in the script. Would you want to draft the PR? And would you like me to continue on top of it? Or do you want to address the issues?

@ivanvc let's draft the PR and you can probably take over it if you have time to improve it!

Hopefully it's a helpful start otherwise you can trash the PR and start from scratch!

Thanks!

henrybear327 avatar Sep 19 '24 17:09 henrybear327

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 69.14%. Comparing base (116caca) to head (340a0bb).

Additional details and impacted files

see 18 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #18609      +/-   ##
==========================================
- Coverage   69.20%   69.14%   -0.07%     
==========================================
  Files         422      422              
  Lines       34821    34821              
==========================================
- Hits        24099    24077      -22     
- Misses       9328     9343      +15     
- Partials     1394     1401       +7     

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 116caca...340a0bb. Read the comment docs.

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

codecov-commenter avatar Sep 19 '24 17:09 codecov-commenter

@henrybear327, there are some shellcheck warnings in the script. Would you want to draft the PR? And would you like me to continue on top of it? Or do you want to address the issues?

@ivanvc I have fixed the shellcheck errors

Maybe you can see if this is a good enough quality script to consider now! Thank you!

henrybear327 avatar Sep 22 '24 15:09 henrybear327

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: henrybear327 Once this PR has been reviewed and has the lgtm label, please assign ivanvc 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 avatar Jan 16 '25 21:01 k8s-ci-robot

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.

github-actions[bot] avatar Jul 28 '25 00:07 github-actions[bot]

/retest

henrybear327 avatar Sep 12 '25 22:09 henrybear327

Tested with this 20250915's dependency update.

henrybear327 avatar Sep 15 '25 19:09 henrybear327

/retest

henrybear327 avatar Sep 15 '25 19:09 henrybear327

/retest

henrybear327 avatar Sep 15 '25 20:09 henrybear327

/retest

henrybear327 avatar Sep 16 '25 11:09 henrybear327

/retest

henrybear327 avatar Sep 19 '25 20:09 henrybear327

This is looking like a great improvement. It also works great. I left a minimal suggestion for an improvement :)

Thanks for reviewing it! :)

henrybear327 avatar Oct 08 '25 21:10 henrybear327

@henrybear327: The following tests 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 190eb93c3af7133b32435a9db831b9757389df19 link true /test ci-etcd-robustness-release36-amd64
pull-etcd-coverage-report 340a0bb0e6706d78d57499c99b0cbfcdeaefc288 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.

k8s-ci-robot avatar Oct 08 '25 22:10 k8s-ci-robot