Skip to content

google.golang.org/grpc/xds has dependency on "testing" #6015

@aaronbee

Description

@aaronbee

What version of gRPC are you using?

v1.53.0

What version of Go are you using (go version)?

v1.19.5

What operating system (Linux, Windows, …) and version?

N/A

What did you do?

We check for imports of unexpected dependencies for our production binaries. Upgrading to grpc v1.53.0 added an import to the standard library "testing" package.

What did you expect to see?

Production libraries should not depend on "testing".

What did you see instead?

This is one dependency path seen:

google.golang.org/grpc/xds/googledirectpath ->
google.golang.org/grpc/xds ->
google.golang.org/grpc/xds/internal/balancer ->
google.golang.org/grpc/xds/internal/balancer/cdsbalancer ->
google.golang.org/grpc/xds/internal/balancer/clusterresolver ->
google.golang.org/grpc/internal/testutils ->
testing

"google.golang.org/grpc/xds/internal/balancer/clusterresolver" likely is not supposed to depend on "google.golang.org/grpc/internal/testutils". In This #5852 resource_resolver_dns.go added a call to testutils.MustParseURL.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions