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

Upgrade GRPC dependencies #3342

Merged
merged 5 commits into from May 23, 2018
Merged

Upgrade GRPC dependencies #3342

merged 5 commits into from May 23, 2018

Conversation

gottwald
Copy link
Contributor

@gottwald gottwald commented May 17, 2018

What does this PR do?

Updates specific dependencies to the most recent stable versions and fixes one testing bug that was made visible by the upgrade.

Motivation

We're working internally on integrating stackdriver into traefik (PR will follow). We need newer grpc and protobuf libraries to make it work. While upgrading those we've discovered outdated libs, which some even were in a pre-stable version.

More

  • Upgrade github.com/coreos/etcd from v3.2.9 to v3.3.5
  • Upgrade github.com/ugorji/go from pre-1.1-beta (Nov 20, 2015) to v1.1.1
  • Upgrade cloud.google.com/go from v0.7.0 to v0.22.0
  • Fix grpc_test string stream
  • Upgrade github.com/golang/protobuf from pre-v1 (Nov 9, 2016) to v1.1.0
  • Upgrade google.golang.org/grpc from v1.5.2 to v1.12.0

Additional Notes

Only one test broke with the update which is fixed in 329efa5.
The old protobuf library did not validate string types. The proto3 specifications state that the string type must be encoded as valid UTF-8 and validation was introduced in newer versions of the protobuf library.
This broke this one test in traefik that created a string by creating a random set of bytes and casting it into a string, which yields non-valid UTF-8 characters.

Copy link
Contributor

@m3co-code m3co-code left a comment

Choose a reason for hiding this comment

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

@gottwald is a member of our Team together with @timoreimann and we were working closely together. Therefore, naturally, I can give my LGTM already!

@ldez ldez added this to the 1.7 milestone May 17, 2018
Copy link
Contributor

@timoreimann timoreimann left a comment

Choose a reason for hiding this comment

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

LGTM.

Copy link
Member

@ldez ldez left a comment

Choose a reason for hiding this comment

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

LGTM

Newer protobuf libs check for valid utf-8 chars in a stream of strings.
Random bytes casted to a string will not always yield a valid utf-8
character. This change enforces a valid set of characters used as source
for the random string in the integration test.
@traefiker traefiker merged commit 83e09ac into traefik:master May 23, 2018
@gottwald gottwald deleted the deps-upgrade branch May 23, 2018 15:53
@ldez ldez changed the title Upgrade dependencies Upgrade GRPC dependencies Jun 14, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement a new or improved feature. size/S
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants