Skip to content
This repository has been archived by the owner on Dec 19, 2023. It is now read-only.

Missing ./system-tests/ #5

Closed
beccasaurus opened this issue Mar 24, 2018 · 10 comments
Closed

Missing ./system-tests/ #5

beccasaurus opened this issue Mar 24, 2018 · 10 comments
Assignees
Labels
api: texttospeech Issues related to the googleapis/nodejs-text-to-speech API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@beccasaurus
Copy link
Contributor

There are no system tests!

IIUC these are authored in the gapic YAML file?

Needed urgently.

@beccasaurus
Copy link
Contributor Author

/cc @lukesneeringer @jmdobry

@beccasaurus
Copy link
Contributor Author

beccasaurus commented Mar 24, 2018

FYI I'm not sure how these system tests are authored/generated/run

All I know for sure is that nodejs-text-to-speech has no ./system-tests/ directory, but every other nodejs-* repo does 😄

@beccasaurus
Copy link
Contributor Author

/cc @dizcology (re: lib generation)

@alexander-fenster
Copy link
Contributor

Not every - some still don't (see https://github.com/googleapis/nodejs-os-login/tree/master/system-test). Generator can generate a very basic smoke test if defined in config yaml, but it's not the case for text-to-speech. Good system tests must be written manually, and in fact I'm not sure who is responsible for that. @lukesneeringer, who should write system tests for the autogen'd libraries - is it me or someone else, or is auto-gen'd smoke test enough?

@alexander-fenster
Copy link
Contributor

@remi For fully autogen'd libraries like this one smoke test should be generated automatically as well, if GAPIC configuration file allows it (see example here: https://github.com/googleapis/googleapis/blob/6cb47db389b1670310a8d323658eb3d7148f7da1/google/cloud/vision/v1p1beta1/vision_gapic.yaml#L26) In this particular case there is no smoke test defined, hence no smoke test is generated. Even if the test is an auto-generated smoke test, we often place it into system-tests directory to make the directory layout similar across libraries.

Given that we have system tests for samples that verify that the API and client library work, I don't see a big problem in releasing this library with no auto-generated smoke test for now, especially if it's alpha.

Adding smoke tests in GAPIC config should be a responsibility of API owners, I'll be happy to regen the code after they are added.

@beccasaurus
Copy link
Contributor Author

I'll keep this bug but unblock the merge & launch

$0.02 We really should do this and I would personally vote to block all new client libraries from going out until they have smoke tests, even through you're right about the samples, it seems irresponsible not to add a test via the YAML 🤷🏼

@beccasaurus
Copy link
Contributor Author

Thanks for tracking down info about these

@beccasaurus beccasaurus changed the title [URGENT] Missing ./system-tests/ Missing ./system-tests/ Apr 27, 2018
@JustinBeckwith JustinBeckwith added type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. labels Jun 1, 2018
@JustinBeckwith JustinBeckwith added the 🚨 This issue needs some love. label Jun 8, 2018
@jkwlui
Copy link
Member

jkwlui commented Dec 14, 2018

@beccasaurus who should I contact in the product team to get some system-tests in the protos?

@beccasaurus
Copy link
Contributor Author

I filed a Feature Request to add the smoke test configuration

@alexander-fenster @kinwa91 Do y'all this is important enough to warrant a bug & GitHub issue

I'd say that... for APIs which have no samples+system tests alongside the client library, which are part of the client library's CI tests... Smoke Tests are important. But for client libraries where integration samples are inside the client library repository and run alongside the general client library test suite, they are not particularly important.

If samples were embedded alongside client libraries in all languages, I'd say the smoke tests aren't very critical

As that's not the case today... they're important IMO!

@JustinBeckwith
Copy link
Contributor

Good news - the smoke test landed!
0bf9140#diff-af5d09d72c5ecdc41020800a346fa78c

I think we're good here :)

@google-cloud-label-sync google-cloud-label-sync bot added the api: texttospeech Issues related to the googleapis/nodejs-text-to-speech API. label Jan 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: texttospeech Issues related to the googleapis/nodejs-text-to-speech API. priority: p1 Important issue which blocks shipping the next release. Will be fixed prior to next release. 🚨 This issue needs some love. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

No branches or pull requests

4 participants