Skip to content

Implement script to fix dependency version mismatches - #22224

Open
ivanvc wants to merge 1 commit into
etcd-io:mainfrom
ivanvc:add-fix-dep
Open

ivanvc wants to merge 1 commit into
etcd-io:mainfrom
ivanvc:add-fix-dep

Conversation

@ivanvc

@ivanvc ivanvc commented Jul 30, 2026

Copy link
Copy Markdown
Member

This PR implements a fix-dep Makefile target that ensures dependencies across the repository match the same (latest defined) version.

@kubernetes-prow

Copy link
Copy Markdown

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ivanvc

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:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@codecov

codecov Bot commented Jul 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 72.99%. Comparing base (11c633a) to head (803963f).
⚠️ Report is 198 commits behind head on main.

Additional details and impacted files

see 447 files with indirect coverage changes

@@            Coverage Diff             @@
##             main   #22224      +/-   ##
==========================================
+ Coverage   69.74%   72.99%   +3.25%     
==========================================
  Files         449      448       -1     
  Lines       38207    31821    -6386     
==========================================
- Hits        26646    23228    -3418     
+ Misses      10133     8590    -1543     
+ Partials     1428        3    -1425     

Continue to review full report in Codecov by Harness.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 11c633a...803963f. Read the comment docs.

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

@ivanvc

ivanvc commented Sep 11, 2026

Copy link
Copy Markdown
Member Author

cc. @fuweid, you partially reviewed this in my manual dependency update for this week. Can we discuss it here? I've been using this script when I need to fix verify-dep, as it is a manual process right now.

I'm also aiming to automate dependency version bumps, and this is a prerequisite.

Thanks!

Comment thread scripts/fix/dep.sh Outdated
Comment thread scripts/fix/dep.sh Outdated
Comment thread scripts/fix/dep.sh

@fuweid fuweid left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just left comment to add dep for fix-dep.

Comment thread Makefile Outdated
PASSES="dep" ./scripts/test.sh

.PHONY: fix-dep
fix-dep:

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
fix-dep:
fix-dep: fix-mod-tidy

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.

Good point. I'll also swap them in the fix target to make it explicit.

Comment thread scripts/fix/dep.sh
# shellcheck disable=SC2317 # invoked indirectly via run_for_workspace_modules
function dump_module_deps {
local mod_dir
mod_dir=$(realpath --relative-to="${ETCD_ROOT_DIR}" .)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't use macos to update the deps. so --relative-to works to me.

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.

I don't either, but I try to test these scripts in MacOS, too :)

Signed-off-by: Ivan Valdes <ivan@vald.es>
@kubernetes-prow

Copy link
Copy Markdown

@ivanvc: 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
pull-etcd-e2e-arm64 803963f link true /test pull-etcd-e2e-arm64
pull-etcd-e2e-amd64 803963f link true /test pull-etcd-e2e-amd64

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.

Details

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.

This branch has not been deployed

No deployments
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.

2 participants