-
Notifications
You must be signed in to change notification settings - Fork 17
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
Unable to generate FakeIngressServer in diego-logging-client #146
Comments
We were able to remain on v8 and get the subset of the tests that were failing to pass, but this remain to be an issue to upgrade to v9. |
Hey @winkingturtle-vmw, sorry for the late response. Is this still a problem? The reason for the change is a gRPC breaking change allowing generated files to be updated without requiring updates to server implementations. You can find this change discussed in more details here:
You should be able to resolve the diego-logging-client compilation error, and update to go-loggregator v9, by embedding |
Brilliant, thanks for the tip. I am going to close this issue if that solution resolves the error and folks can still re-open if that doesn't work. |
- A change in loggregator v9 requires that the UnimplementedIngressServer be embedded in FakeIngressServer as a result of a breaking change in gRPC. - We used the recommended method from the go-loggregator team found in the following issue. - cloudfoundry/go-loggregator#146 - The command to generate this file is: `counterfeiter -o testhelpers/ vendor/code.cloudfoundry.org/go-loggregator/v9/rpc/loggregator_v2/ingress_grpc.pb.go IngressServer` - After generating the file, loggregator_v2.UnimplementedIngressServer will need to be embedded in the FakeIngressServer struct. Signed-off-by: Marc Paquette <marc.paquette@broadcom.com>
- A change in loggregator v9 requires that the UnimplementedIngressServer be embedded in FakeIngressServer as a result of a breaking change in gRPC. - We used the recommended method from the go-loggregator team found in the following issue. - cloudfoundry/go-loggregator#146 - The command to generate this file is: `counterfeiter -o testhelpers/ vendor/code.cloudfoundry.org/go-loggregator/v9/rpc/loggregator_v2/ingress_grpc.pb.go IngressServer` - After generating the file, loggregator_v2.UnimplementedIngressServer will need to be embedded in the FakeIngressServer struct. Signed-off-by: Marc Paquette <marc.paquette@broadcom.com>
- A change in loggregator v9 requires that the UnimplementedIngressServer be embedded in FakeIngressServer as a result of a breaking change in gRPC. - We used the recommended method from the go-loggregator team found in the following issue. - cloudfoundry/go-loggregator#146 - The command to generate this file is: `counterfeiter -o testhelpers/ vendor/code.cloudfoundry.org/go-loggregator/v9/rpc/loggregator_v2/ingress_grpc.pb.go IngressServer` - After generating the file, loggregator_v2.UnimplementedIngressServer will need to be embedded in the FakeIngressServer struct. Signed-off-by: Marc Paquette <marc.paquette@broadcom.com>
Hello,
We generate FakeIngressServer in diego-logging-client for testing our Send*Log methods in the library. Since the update protobuf PR #81 we see that there is a new private method
mustEmbedUnimplementedIngressServer
that is making our FakeIngressServer implementation no longer valid. Can you please advice how we are suppose to solve this problem so that we can continue generating a FakeIngressServer.Context: We got here because we had to upgrade lager, which meant that we have to upgrade ginkgo to v2 everywhere in diego-release, which then meant we had to upgrade from go-loggregator v8 to v9, which then meant we had to upgrade diego-logging-client, which then meant we can no longer generate FakeIngressServer.
Do you have any suggestion for a workaround or other solution for this problem?
The text was updated successfully, but these errors were encountered: