GeezerVison is showing github.com — Missing system tests after pubsub redesign · Issue #4031 · googleapis/google-cloud-python
Missing system tests after pubsub redesign #4031DescriptionThe redesign effort (#3859) left behind only very minimal system tests. The older implementation had much broader system test coverage:
- Listing topics and subscriptions in the client's project.
- Creating subscriptions with non-default settings.
- Listing subscriptions bound to a topic.
- Setting / getting IAM policy for topics and subscriptions
- Creating / seeking snapshots.
I noticed the missing tests today when I went looking for examples of updating a topic's IAM policy. Activitydanoscarmike commented on Jan 3, 2018 @tseaver could you please update the status of this? Have new tests been added? What is current coverage of the tests you enumerated here? theacodes commented on Jan 3, 2018 The samples are likely a good starting place for system tests.
I mean, if anyone wants to take on moving the samples wholesale here I'd be cool with that. dhermes commented on Jan 3, 2018 @danoscarmike No new tests have been added or are planned to be added.
As I identified bugs I made reproducible cases at https://github.com/dhermes/google-cloud-pubsub-performance and some of them may be worth turning into tests, but they run for too long to make that feasible.
What is current coverage of the tests you enumerated here?
Can you be more specific? Do you mean line coverage? danoscarmike commented on Jan 3, 2018
Can you be more specific? Do you mean line coverage?
I meant which of the following points (per original issue post) have tests?
Listing topics and subscriptions in the client's project.
Creating subscriptions with non-default settings.
Listing subscriptions bound to a topic.
Setting / getting IAM policy for topics and subscriptions
Creating / seeking snapshot
If we are satisfied that behavior and performance are tested (one way or another) can we close this issue? tseaver commented on Jan 4, 2018 ContributorAuthor More actions I would say we should not close the issue until we have added those system tests: we can mark it as non-release-blocking, but the fact that we are missing tests which exercise what should be important use cases against the back-end should not be swept under the carpet. added priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. and removed priority: p2Moderately-important priority. Fix may not be included in next release. on Jan 4, 2018danoscarmike commented on Jan 4, 2018 added priority: p2Moderately-important priority. Fix may not be included in next release. and removed priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release. on Feb 8, 2018lukesneeringer commented on Feb 8, 2018 Reverting this to P2 (in a triage meeting) on the basis that:
- These are auto-generated methods.
- We have sample tests (unfortunately in a different repo).
tseaver commented on Jul 20, 2018 ContributorAuthor More actions If the triaged for GA label means that we judge this issue not a blocker for the GA release, I'd like to re-litigate that choice. ISTM that releasing this library as GA without good system test coverage would be a mistake.
The notion that "generated methods, no worries" is clearly wrong: the generator has bugs, too.
Having the snippets maintained elsewhere give us no visibility to any regressions which occur. If they are our canaries in the mine for the broader surface, then they should be maintained here, and run as part of our CI.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|