GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Missing system tests after pubsub redesign · Issue #4031 · googleapis/google-cloud-python

Missing system tests after pubsub redesign #4031

New issue
Copy link
New issue
Copy link
Closed
#8277
Closed
Missing system tests after pubsub redesign#4031
#8277
Copy link
Assignees
plamut
Labels
api: pubsubIssues related to the Pub/Sub API.testingtriaged for GAtype: processA process-related concern. May include testing, release, or the like.

Description

@tseaver
tseaver
opened on Sep 22, 2017
Issue body actions

The 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.

Activity

Next
  1. tseaver
    added
    api: pubsubIssues related to the Pub/Sub API.
    testing
    on Sep 22, 2017
  2. tseaver
    added
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Nov 2, 2017
  3. danoscarmike commented on Jan 3, 2018

    @danoscarmike
    danoscarmike
    on Jan 3, 2018
    Contributor
    More actions

    @tseaver could you please update the status of this? Have new tests been added? What is current coverage of the tests you enumerated here?

  4. theacodes commented on Jan 3, 2018

    @theacodes
    theacodes
    on Jan 3, 2018
    Contributor
    More actions

    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.

  5. dhermes commented on Jan 3, 2018

    @dhermes
    dhermes
    on Jan 3, 2018
    Contributor
    More actions

    @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?

  6. danoscarmike commented on Jan 3, 2018

    @danoscarmike
    danoscarmike
    on Jan 3, 2018
    Contributor
    More actions

    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?

  7. tseaver commented on Jan 4, 2018

    @tseaver
    tseaver
    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.

  8. dhermes
    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, 2018
  9. danoscarmike commented on Jan 4, 2018

    @danoscarmike
    danoscarmike
    on Jan 4, 2018
    Contributor
    More actions

    Fair. Thanks Tres.

  10. chemelnucfin
    added
    type: processA process-related concern. May include testing, release, or the like.
    on Jan 9, 2018
  11. chemelnucfin
    assigned
    tseaver
    ,
    dhermes
    and
    chemelnucfin
    on Jan 15, 2018
  12. 1 remaining item

  13. lukesneeringer
    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, 2018
  14. lukesneeringer commented on Feb 8, 2018

    @lukesneeringer
    lukesneeringer
    on Feb 8, 2018
    Contributor
    More actions

    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).
  15. tseaver
    assigned
    lukesneeringer
    and unassigned
    dhermes
    ,
    chemelnucfin
    and
    tseaver
    on Apr 10, 2018
  16. JustinBeckwith
    added
    🚨This issue needs some love.
    on Jun 8, 2018
  17. tseaver commented on Jul 20, 2018

    @tseaver
    tseaver
    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.

  18. tseaver
    removed
    🚨This issue needs some love.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Aug 28, 2018
  19. sduskis
    unassigned
    lukesneeringer
    on May 8, 2019
  20. sduskis
    assigned
    plamut
    on Jun 4, 2019
  21. plamut
    closed this as completedin #8277on Jun 21, 2019
  22. parthea
    added a commit that references this issue on Sep 22, 2023

    chore: move samples from python-docs-sample (#33)

    69c4425
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @plamut
    plamut

Labels

api: pubsubIssues related to the Pub/Sub API.testingtriaged for GAtype: processA process-related concern. May include testing, release, or the like.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.