Skip to content

Fix grpc withdialer deprecation warning#40032

Merged
cpuguy83 merged 1 commit intomoby:masterfrom
jmartin84:fix-grpc-withdialer-deprecation-warning
Nov 5, 2019
Merged

Fix grpc withdialer deprecation warning#40032
cpuguy83 merged 1 commit intomoby:masterfrom
jmartin84:fix-grpc-withdialer-deprecation-warning

Conversation

@jmartin84
Copy link
Contributor

closes #39928

- What I did
Removed deprecation warning for grpc.WithDialer

- How I did it
Replaced WithDialer with WithContextDialer, that change required me to pull in a newer version of containerd which ended up requiring a newer version of buildkit

- How to verify it
Ran unit tests

- Description for the changelog
Bumped buildkit and containerd, fixed deprecation warning for WithDialer

- A picture of a cute animal (not mandatory but encouraged)

150902_WILD_CutePenguins jpg CROP cq5dam_web_1280_1280_jpeg

@thaJeztah
Copy link
Member

Thanks! I see there's a failure in the vendor check; https://ci.docker.com/public/job/moby/job/PR-40032/1/execution/node/260/log/

00:21:10.129  The result of vndr differs
00:21:10.129  
00:21:10.129   D vendor/golang.org/x/sync/singleflight/singleflight.go
00:21:10.129  
00:21:10.129  Please vendor your package with github.com/LK4D4/vndr.

Interestingly, I just saw the same failure in #39713 (#39713 (comment)), which also updates the containerd dependency

@jmartin84 Curious; were the buildkit and containerd bumps necessary to fix the issue? I haven't looked in-depth into the changes, but if they're not, perhaps it would be better to keep that change out.

If they are necessary, I think we should wait with merging this one, until after #39713 is merged (then rebase this PR to get rid of the containerd and buildkit bumps)

@thaJeztah
Copy link
Member

ok, this is weird; I just tried running vndr golang.org/x/sync on this branch, and it did not produce a diff;

On branch fix-grpc-withdialer-deprecation-warning
nothing to commit, working tree clean

Also double checked if the base image hasn't been updated on Docker Hub (which doesn't seem to be the case); https://hub.docker.com/_/golang?tab=tags&page=1&name=stretch

Screenshot 2019-10-03 at 13 59 12

@jmartin84
Copy link
Contributor Author

@thaJeztah unfortunately the containerd bump was necessary dialer.ContextDialer wasn't available in the version of containerd that is currently in master. Buildkit wasn't directly required but I did get some errors after bumping containerd that resolved once I brought in buildkit.

I'm more than happy to wait for the other pr to get merged.

@jmartin84 jmartin84 force-pushed the fix-grpc-withdialer-deprecation-warning branch from 83b77b3 to 15d9f71 Compare October 3, 2019 15:59
@thaJeztah
Copy link
Member

unfortunately the containerd bump was necessary dialer.ContextDialer wasn't available in the version of containerd that is currently in master. Buildkit wasn't directly required but I did get some errors after bumping containerd that resolved once I brought in buildkit.

Thanks for explaining!

@thaJeztah
Copy link
Member

OK, looks like the vendor failure is a problem on master; the reason it worked for me locally, was that I did not do a rebase of your PR, unlike Jenkins, which does a merge before running, which likely explains the different.

I opened a PR to fix the vendoring #40037

@thaJeztah thaJeztah added the kind/refactor PR's that refactor, or clean-up code label Oct 10, 2019
@jmartin84 jmartin84 force-pushed the fix-grpc-withdialer-deprecation-warning branch from 15d9f71 to 3b49bd1 Compare October 10, 2019 20:35
@jmartin84
Copy link
Contributor Author

@thaJeztah looks like the dependent prs got merged so I went ahead and rebased.

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM

@thaJeztah
Copy link
Member

ping @kolyshkin @cpuguy83 PTAL

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

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

LGTM

@cpuguy83 cpuguy83 merged commit 47c5c67 into moby:master Nov 5, 2019
@thaJeztah thaJeztah added this to the 20.03.0 milestone Apr 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing kind/refactor PR's that refactor, or clean-up code status/2-code-review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fixme: SA1019: grpc.WithDialer is deprecated

3 participants