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 Envoy go-control-plane and fix related changes to the spec #2432

Merged
merged 1 commit into from
Apr 13, 2020

Conversation

stevesloka
Copy link
Member

Fixes #2429

Signed-off-by: Steve Sloka [email protected]

@codecov
Copy link

codecov bot commented Apr 10, 2020

Codecov Report

Merging #2432 into master will increase coverage by 0.00%.
The diff coverage is 58.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #2432   +/-   ##
=======================================
  Coverage   76.85%   76.86%           
=======================================
  Files          67       67           
  Lines        5484     5486    +2     
=======================================
+ Hits         4215     4217    +2     
  Misses       1173     1173           
  Partials       96       96           
Impacted Files Coverage Δ
cmd/contour/contour.go 4.47% <0.00%> (ø)
internal/e2e/e2e.go 95.83% <ø> (ø)
internal/featuretests/featuretests.go 88.44% <ø> (ø)
internal/assert/assert.go 75.00% <100.00%> (+2.27%) ⬆️
internal/contour/cluster.go 100.00% <100.00%> (ø)
internal/contour/endpointstranslator.go 83.03% <100.00%> (ø)
internal/contour/listener.go 92.72% <100.00%> (ø)
internal/contour/route.go 93.06% <100.00%> (ø)
internal/contour/secret.go 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

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

Copy link
Contributor

@jpeach jpeach left a comment

Choose a reason for hiding this comment

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

LGTM!

@@ -17,8 +17,9 @@ import (
"sort"
"sync"

rsrc "github.com/envoyproxy/go-control-plane/pkg/resource/v2"

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we have a standard style for grouping imports?

Copy link
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 know if we have a standard, I copied this from the go-control-plane code.

Copy link
Member Author

Choose a reason for hiding this comment

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

I renamed it to resource. I didn't think the other alias made sense.

@@ -55,6 +55,9 @@ func (a Assert) Equal(want, got interface{}) {
}

func unmarshalAny(a *any.Any) proto.Message {
if a == nil {
return nil
}
Copy link
Contributor

Choose a reason for hiding this comment

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

What happened here? Does this get a nil that it didn't get before?

Copy link
Member Author

Choose a reason for hiding this comment

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

This one was weird, after upgrading the deps, some tests started to fail. The error was the comparison was nil when checking.

Maybe if you could put a set of eyes on it and see if something else jumps out at you.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think that we just got lucky before. Any comparison involving an any.Any could have triggered this, since it makes ptypes.Empty return an error. Looks like RetryPolicyTypedConfig *any.Any was added to a few types, which was probably one trigger.

@stevesloka stevesloka merged commit d1d0d2e into projectcontour:master Apr 13, 2020
@stevesloka stevesloka deleted the upgradeDataPlane branch April 13, 2020 00:41
@jpeach jpeach added this to the 1.5.0 milestone May 5, 2020
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.

Upgrade go-control-plane
2 participants