-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Update update_dep.sh #18609
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
base: main
Are you sure you want to change the base?
Update update_dep.sh #18609
Conversation
3976754 to
c0ba3eb
Compare
|
@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! |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted filessee 21 files with indirect coverage changes @@ Coverage Diff @@
## main #18609 +/- ##
==========================================
+ Coverage 68.44% 68.51% +0.07%
==========================================
Files 429 429
Lines 35203 35203
==========================================
+ Hits 24093 24121 +28
+ Misses 9709 9682 -27
+ Partials 1401 1400 -1 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
c0ba3eb to
4691dfc
Compare
@ivanvc I have fixed the Maybe you can see if this is a good enough quality script to consider now! |
4691dfc to
f94117c
Compare
967bc31 to
f892b05
Compare
ivanvc
left a comment
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.
Thanks for the pull request, Henry. I haven't had a chance to check it before. I left some comments ✌️
f892b05 to
d26e944
Compare
1e47ce2 to
97d9610
Compare
401bceb to
612ca28
Compare
8af5f84 to
340a0bb
Compare
Thanks for reviewing it! :) |
ivanvc
left a comment
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.
Hi Henry. Thanks for putting this together. I used your script to do this week's dependency management. After enabling the workspace, as we mentioned before, it's not required to run make fix for each module. Running it at the end should be enough.
Also, ./scripts/fix.sh doesn't exist anymore. I left as suggestions the local edits I did to make it work.
c6a84c8 to
2b5ddcc
Compare
68d11d2 to
d1ad187
Compare
9d079a4 to
61c1af3
Compare
|
/retest |
1 similar comment
|
/retest |
61c1af3 to
d92d722
Compare
|
/retest |
ivanvc
left a comment
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.
LGTM. I used to do the dependencies bump from #21049.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: henrybear327, ivanvc The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/cc @ahrtr |
d92d722 to
05ee831
Compare
|
@henrybear327: 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. DetailsInstructions 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. |
|
/retest |
|
Please ensure the script works on both Mac OS and Linux. The following is the output from my Mac OS. Minor comment: Also I do not see the |
|
Please also update https://github.com/etcd-io/etcd/blob/main/Documentation/contributor-guide/dependency_management.md to clarify how this script should be used. Please keep the existing manual steps to bump each dependency, just add an alternative way to bump dependency using this script. |
|
Thanks for the feedback @ahrtr ^_^ Sorry that I didn't test it on MacOS at all since I wasn't aware we need to support that, too (the |
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 Signed-off-by: Chun-Hung Tseng <henrybear327@gmail.com>
05ee831 to
08decca
Compare
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:
Please read https://github.com/etcd-io/etcd/blob/main/CONTRIBUTING.md#contribution-flow.