Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Node: generated unused mockSimpleGrpcMethod() in tests #2120

Closed
jkwlui opened this issue Jun 27, 2018 · 13 comments
Closed

Node: generated unused mockSimpleGrpcMethod() in tests #2120

jkwlui opened this issue Jun 27, 2018 · 13 comments
Assignees
Labels
lang: nodejs Issues specific to JavaScript or TypeScript. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. yoshi

Comments

@jkwlui
Copy link
Member

jkwlui commented Jun 27, 2018

Generating the latest video-intelligence library result in tests that failed npm run lint. It complains mockSimpleGrpcMethod() is defined but not used.

googleapis/nodejs-video-intelligence#51

@jkwlui jkwlui added priority: p0 Highest priority. Critical issue. P0 implies highest priority. yoshi labels Jun 27, 2018
@michaelbausor
Copy link
Contributor

Ping @alexander-fenster

@alexander-fenster
Copy link
Contributor

Here, we need to include mockSimpleGrpcMethod() in the output only if the API has simple gRPC methods (and video-intelligence is one rare example of an API with all methods being long running). I'm not sure if there is an easy way to write this condition in the snip file. Looking.

@jkwlui
Copy link
Member Author

jkwlui commented Sep 17, 2018

We are still experiencing this issue in video-intelligence. Not blocking, but good to get it fixed :)

@landrito
Copy link
Contributor

@alexander-fenster any updates on this?

@vchudnov-g
Copy link
Contributor

@alexander-fenster Any updates? This issue is out of SLO. Is it prioritized correctly?

@alexander-fenster alexander-fenster added lang: nodejs Issues specific to JavaScript or TypeScript. priority: p2 Moderately-important priority. Fix may not be included in next release. and removed priority: p0 Highest priority. Critical issue. P0 implies highest priority. labels Nov 7, 2018
@alexander-fenster
Copy link
Contributor

I guess it must not be a P0. Yoshi team has a workaround for that in their synth script for this library, and video intelligence is the only library affected (it does not have non-long-running methods).

I will decrease the priority of this issue. Having that said, it should be a quick fix anyway.

@jkwlui
Copy link
Member Author

jkwlui commented Nov 7, 2018

I'm okay with that. Thanks Alex!

@evaogbe
Copy link
Contributor

evaogbe commented Feb 13, 2019

@alexander-fenster Any updates?

@evaogbe evaogbe added the type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. label Feb 13, 2019
@noahdietz
Copy link
Contributor

@alexander-fenster any update here? Is there a quick fix that can be detailed here for another person to pick up? Thanks

@alexander-fenster
Copy link
Contributor

I'd like not to fix it now in gapic-generator since it's something that can be taken care of by Yoshi in synth tool and it never affects end users' experience. We can try taking care of that in scope of TypeScript micro generator (let's leave this open here for now and I'll move it to that repo when it's alive).

@JustinBeckwith JustinBeckwith added the 🚨 This issue needs some love. label Jun 27, 2019
@vchudnov-g vchudnov-g added priority: p3 Desirable enhancement or fix. May not be included in next release. and removed priority: p2 Moderately-important priority. Fix may not be included in next release. labels Aug 5, 2019
@vchudnov-g
Copy link
Contributor

Deprioritizing as per last comment.

@vchudnov-g
Copy link
Contributor

@alexander-fenster Could you update this issue? Was this fixed in gapic-generator (in which case, feel free to close this) or addressed some other way elsewhere (in which case feel free to leave a note why this will not be fixed here). Thanks!

@alexander-fenster
Copy link
Contributor

@vchudnov-g It's fixed in googleapis/gapic-generator-typescript#155 (for the TypeScript generator). I'll close this issue here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lang: nodejs Issues specific to JavaScript or TypeScript. priority: p3 Desirable enhancement or fix. May not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. yoshi
Projects
None yet
Development

No branches or pull requests

9 participants