Skip to content
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

[3.5] make: Include tools/mod when checking dependency versions #18284

Merged
merged 7 commits into from
Jul 9, 2024

Conversation

thedtripp
Copy link
Member

@thedtripp thedtripp commented Jul 4, 2024

Backport of ba4b2bf

Related issue: #18180

@ivanvc
I'm not sure how/if to do the version bump for genproto as in: ddfa70f.
Please advise on how/if to do this. Thanks!

Backport of etcd-io@ba4b2bf

Related issue: etcd-io#18180

As tools/mod is not part of the test library's modules, the check to verify
consistent dependency versions ignored it. Explicitly get the dependencies from
this module when running verify-dep.

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

Hi @thedtripp. Thanks for your PR.

I'm waiting for a etcd-io 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.

@henrybear327
Copy link
Contributor

/ok-to-test

@ivanvc
Copy link
Member

ivanvc commented Jul 4, 2024

@ivanvc
I'm not sure how/if to do the version bump for genproto as in: ddfa70f.
Please advise on how/if to do this. Thanks!

We need to update the following dependencies (refer to https://github.com/etcd-io/etcd/actions/runs/9800578072/job/27062635624):

FAIL: inconsistent versions for depencency: github.com/grpc-ecosystem/grpc-gateway
  ...
  - github.com/grpc-ecosystem/[email protected] from: go.etcd.io/etcd/tests/v3
  - github.com/grpc-ecosystem/[email protected] from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/mattn/go-colorable
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/mattn/go-runewidth
  ...
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/olekukonko/tablewriter
  ...
  - github.com/olekukonko/[email protected] from: go.etcd.io/etcd/etcdutl/v3
  - github.com/olekukonko/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/spf13/cobra
  ...
  - github.com/spf13/[email protected] from: go.etcd.io/etcd/v3
  - github.com/spf13/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: google.golang.org/genproto
  ...
  - google.golang.org/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - google.golang.org/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: gopkg.in/yaml.v2
  ...
  - gopkg.in/[email protected] from: go.etcd.io/etcd/tests/v3
  - gopkg.in/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent dependencies

The versions specified in tools/mod need to match the versions used in the rest of the project.

i.e.,

  • bump tools/mod's github.com/grpc-ecosystem/grpc-gateway from v1.14.0 to v1.16.0
  • bump tools/mod's github.com/mattn/go-colorable from v0.1.7 to v0.1.11
  • bump tools/mod's google.golang.org/genproto to @v0.0.0-20230822172742-b8732ec3820d
  • etc

@thedtripp
Copy link
Member Author

@ivanvc
I'm not sure how/if to do the version bump for genproto as in: ddfa70f.
Please advise on how/if to do this. Thanks!

We need to update the following dependencies (refer to https://github.com/etcd-io/etcd/actions/runs/9800578072/job/27062635624):

FAIL: inconsistent versions for depencency: github.com/grpc-ecosystem/grpc-gateway
  ...
  - github.com/grpc-ecosystem/[email protected] from: go.etcd.io/etcd/tests/v3
  - github.com/grpc-ecosystem/[email protected] from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/mattn/go-colorable
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/mattn/go-runewidth
  ...
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - github.com/mattn/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/olekukonko/tablewriter
  ...
  - github.com/olekukonko/[email protected] from: go.etcd.io/etcd/etcdutl/v3
  - github.com/olekukonko/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: github.com/spf13/cobra
  ...
  - github.com/spf13/[email protected] from: go.etcd.io/etcd/v3
  - github.com/spf13/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: google.golang.org/genproto
  ...
  - google.golang.org/[email protected] (indirect) from: go.etcd.io/etcd/v3
  - google.golang.org/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent versions for depencency: gopkg.in/yaml.v2
  ...
  - gopkg.in/[email protected] from: go.etcd.io/etcd/tests/v3
  - gopkg.in/[email protected] (indirect) from: go.etcd.io/etcd/tools/v3
FAIL: inconsistent dependencies

The versions specified in tools/mod need to match the versions used in the rest of the project.

i.e.,

* bump `tools/mod`'s `github.com/grpc-ecosystem/grpc-gateway` from v1.14.0 to v1.16.0

* bump `tools/mod`'s `github.com/mattn/go-colorable` from v0.1.7 to v0.1.11

* **bump `tools/mod`'s `google.golang.org/genproto` to `@v0.0.0-20230822172742-b8732ec3820d`**

* etc

Nice. I think I've got it working. Thanks!

@ivanvc
Copy link
Member

ivanvc commented Jul 4, 2024

I suggest not to squash the dependency bumps into a single commit but do one commit per dependency per our dependency management guide. Refer to https://github.com/etcd-io/etcd/pull/18205/commits, https://github.com/etcd-io/etcd/pull/18207/commits

@thedtripp
Copy link
Member Author

I suggest not to squash the dependency bumps into a single commit but do one commit per dependency per our dependency management guide. Refer to https://github.com/etcd-io/etcd/pull/18205/commits, https://github.com/etcd-io/etcd/pull/18207/commits

Ok. I'll read those docs and split each dependency into a separate commit.

@thedtripp
Copy link
Member Author

/retest

@thedtripp thedtripp force-pushed the check-tools-mod-in-verify-deps branch from ebdca47 to 5727c64 Compare July 4, 2024 23:56
to v1.16.0.

Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
to v0.1.11

github.com/mattn/go-isatty v0.0.12 to v0.0.14

Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
to v0.0.9.

Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
bump honnef.co/go/tools to v0.0.1-2019.2.3

bump gopkg.in/yaml.v2 to v2.4.0

Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
to v0.0.0-20230822172742-b8732ec3820d

bump tools/mod google.golang.org/genproto/googleapis/api

to v0.0.0-20230822172742-b8732ec3820d

Use the same version across all the modules from the project.

Signed-off-by: D Tripp <[email protected]>
@thedtripp thedtripp force-pushed the check-tools-mod-in-verify-deps branch from 0531747 to 35a9140 Compare July 5, 2024 00:21
@thedtripp thedtripp marked this pull request as ready for review July 8, 2024 20:39
@thedtripp
Copy link
Member Author

/cc @ivanvc @ahrtr @jmhbnz

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

Copy link
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, @thedtripp

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: ahrtr, ivanvc, jmhbnz, thedtripp

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

@ahrtr ahrtr merged commit 2b2473c into etcd-io:release-3.5 Jul 9, 2024
25 checks passed
@thedtripp thedtripp deleted the check-tools-mod-in-verify-deps branch July 10, 2024 00:32
@ivanvc ivanvc mentioned this pull request Jul 15, 2024
4 tasks
aneesh1 pushed a commit to DataDog/etcd that referenced this pull request Sep 24, 2024
…rify-deps

[3.5] make: Include tools/mod when checking dependency versions
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.

6 participants