Skip to content

Update grpc to v1.3.0 and bump protobuf bindings.#2229

Merged
aaronlehmann merged 1 commit intomoby:masterfrom
ijc:bump-grpc
Jun 9, 2017
Merged

Update grpc to v1.3.0 and bump protobuf bindings.#2229
aaronlehmann merged 1 commit intomoby:masterfrom
ijc:bump-grpc

Conversation

@ijc
Copy link
Copy Markdown
Contributor

@ijc ijc commented Jun 8, 2017

Add google.golang.org/genproto to resolve:

vendor/google.golang.org/grpc/status/status.go:49:2: cannot find package "google.golang.org/genproto/googleapis/rpc/status" in any of:

Update golang.org/x/net to resolve:

vendor/google.golang.org/grpc/transport/http_util.go:417: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)

Newer version of grpc uses the error code names (InvalidArgument, PermissionDenied) instead of the numbers (e.g. 3, 7 respectively), which requires updates to the expected error strings in some test cases.

Signed-off-by: Ian Campbell ian.campbell@docker.com

@GordonTheTurtle
Copy link
Copy Markdown

Please sign your commits following these rules:
https://github.com/moby/moby/blob/master/CONTRIBUTING.md#sign-your-work
The easiest way to do this is to amend the last commit:

$ git clone -b "bump-grpc" git@github.com:ijc25/swarmkit.git somewhere
$ cd somewhere
$ git rebase -i HEAD~842354014976
editor opens
change each 'pick' to 'edit'
save the file and quit
$ git commit --amend -s --no-edit
$ git rebase --continue # and repeat the amend for each commit
$ git push -f

Amending updates the existing PR. You DO NOT need to open a new one.

@ijc
Copy link
Copy Markdown
Contributor Author

ijc commented Jun 8, 2017

Gordon is upset because I forgot the S-o-b when I merged in #2224 and friends, that will go away as they are merged and I rebase.

ijc pushed a commit to ijc/moby that referenced this pull request Jun 8, 2017
and update some dependent packages.

We would like to keep moby/moby and swarmkit somewhat in sync here and
moby/swarmkit#2229 proposes a similar bump to
swarmkit, needed due to moby/swarmkit#1965 which
pulls in containerd which uses some newer features of the grpc package.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 8, 2017

Codecov Report

Merging #2229 into master will increase coverage by 0.54%.
The diff coverage is n/a.

@@            Coverage Diff            @@
##           master   #2229      +/-   ##
=========================================
+ Coverage   60.16%   60.7%   +0.54%     
=========================================
  Files         124     124              
  Lines       20156   20156              
=========================================
+ Hits        12126   12236     +110     
+ Misses       6669    6550     -119     
- Partials     1361    1370       +9

@ijc
Copy link
Copy Markdown
Contributor Author

ijc commented Jun 8, 2017

FYI I have raised a similar PR against Moby engine in moby/moby#33590. Probably some discussion is needed around sequencing.

@aaronlehmann
Copy link
Copy Markdown
Collaborator

The actual changes here look good. Once the dependencies are merged and this is rebased, I think it can go in, assuming CI for the moby PR is passing at that point. I don't think there are any significant sequencing issues since there aren't major code changes that need to take place in either repository. If we have a moby change ready to go in, we can merge this one first and then coordinate the moby change with the revendoring.

Add google.golang.org/genproto to resolve:
    vendor/google.golang.org/grpc/status/status.go:49:2: cannot find package "google.golang.org/genproto/googleapis/rpc/status" in any of:

Update golang.org/x/net to resolve:
    vendor/google.golang.org/grpc/transport/http_util.go:417: f.fr.SetReuseFrames undefined (type *http2.Framer has no field or method SetReuseFrames)

Newer version of grpc uses the error code names (InvalidArgument,
PermissionDenied) instead of the numbers (e.g. 3, 7 respectively), which
requires updates to the expected error strings in some test cases.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
@ijc ijc changed the title [DO NOT MERGE] Update grpc to v1.3.0 and bump protobuf bindings. Update grpc to v1.3.0 and bump protobuf bindings. Jun 9, 2017
@ijc
Copy link
Copy Markdown
Contributor Author

ijc commented Jun 9, 2017

Prereqs are in so rebased and edited description/title.

@ijc
Copy link
Copy Markdown
Contributor Author

ijc commented Jun 9, 2017

@aaronlehmann you CI rerun on moby/moby#33590 passed, but I see this has now failed. Integration tests failed with:

--- FAIL: TestNodeRejoins (68.43s)
	<autogenerated>:12: 
                        
	Error Trace:	integration_test.go:774
		
	Error:		"node did not ready in time" does not contain "certificate signed by unknown authority"

which was also seen in #2222.

@aaronlehmann
Copy link
Copy Markdown
Collaborator

aaronlehmann commented Jun 9, 2017 via email

@aaronlehmann
Copy link
Copy Markdown
Collaborator

LGTM

@aaronlehmann aaronlehmann merged commit 43b657a into moby:master Jun 9, 2017
@ijc ijc deleted the bump-grpc branch June 12, 2017 10:03
alyyousuf7 added a commit to alyyousuf7/swarmkit that referenced this pull request Jun 22, 2017
Signed-off-by: Ali Yousuf <aly.yousuf7@gmail.com>
alyyousuf7 added a commit to alyyousuf7/swarmkit that referenced this pull request Jun 22, 2017
Signed-off-by: Ali Yousuf <aly.yousuf7@gmail.com>
alyyousuf7 added a commit to alyyousuf7/swarmkit that referenced this pull request Jun 22, 2017
Signed-off-by: Ali Yousuf <aly.yousuf7@gmail.com>
andrewhsu pushed a commit to docker-archive/docker-ce that referenced this pull request Jun 24, 2017
and update some dependent packages.

We would like to keep moby/moby and swarmkit somewhat in sync here and
moby/swarmkit#2229 proposes a similar bump to
swarmkit, needed due to moby/swarmkit#1965 which
pulls in containerd which uses some newer features of the grpc package.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Upstream-commit: 379557a
Component: engine
silvin-lubecki pushed a commit to silvin-lubecki/engine-extract that referenced this pull request Mar 16, 2020
and update some dependent packages.

We would like to keep moby/moby and swarmkit somewhat in sync here and
moby/swarmkit#2229 proposes a similar bump to
swarmkit, needed due to moby/swarmkit#1965 which
pulls in containerd which uses some newer features of the grpc package.

Signed-off-by: Ian Campbell <ian.campbell@docker.com>
Upstream-commit: 379557a
Component: engine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants