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 — Adopt common timeout/retry/backoff strategy for system tests. · Issue #1619 · googleapis/google-cloud-python

Adopt common timeout/retry/backoff strategy for system tests. #1619

New issue
Copy link
New issue
Copy link
Closed
Closed
Adopt common timeout/retry/backoff strategy for system tests.#1619
Copy link
Assignees
tseaver
Labels
testing

Description

@tseaver
tseaver
opened on Mar 16, 2016
Issue body actions

From #1609 (comment)

We have a number of sporadic system test failures (#1085, #1089, #1100, #1104) due to "eventual consistency" in the tested APIs. We have adopted a set of ad-hoc (and obviously not 100% reliable) strategies for working around the delays involved.

The point of this issue is to adopt a consistent policy / mechanism across all system tests for addressing delays caused by eventual consistency.

@jonparrott can you comment here, collecting your thoughts expressed elsewhere?

Activity

  1. tseaver
    added
    testing
    on Mar 16, 2016
  2. theacodes commented on Mar 16, 2016

    @theacodes
    theacodes
    on Mar 16, 2016
    Contributor
    More actions

    In python-docs-samples we're using a combination of flaky and not running flaky tests on travis (we have a jenkins instance).

  3. tseaver commented on Mar 16, 2016

    @tseaver
    tseaver
    on Mar 16, 2016
    ContributorAuthor
    More actions

    #1391 is related.

  4. dhermes commented on Mar 16, 2016

    @dhermes
    dhermes
    on Mar 16, 2016
    Contributor
    More actions

    I have an old branch around from #535 when I made the first stab at this.

  5. tseaver commented on Mar 16, 2016

    @tseaver
    tseaver
    on Mar 16, 2016
    ContributorAuthor
    More actions

    Maybe one of the following libraries would be useful:

    • https://pypi.python.org/pypi/retrying
    • https://pypi.python.org/pypi/backoff
  6. daspecster commented on Aug 3, 2016

    @daspecster
    daspecster
    on Aug 3, 2016
    Contributor
    More actions

    So now, in the systems-tests path we have retry.py.

    from retry import Retry
    
    @Retry(SomeException, tries=3, delay=30)
    def method_to_retry():
        ...
  7. tseaver commented on Aug 3, 2016

    @tseaver
    tseaver
    on Aug 3, 2016
    ContributorAuthor
    More actions

    I added classes to handle two other cases in #2050:

    • Retry until method result passes a predicate.
    • Retry until method's __self__ passes a predicate.
  8. dhermes commented on Aug 9, 2016

    @dhermes
    dhermes
    on Aug 9, 2016
    Contributor
    More actions

    @tseaver What about this issue? And the novel failures?

  9. tseaver commented on Aug 9, 2016

    @tseaver
    tseaver
    on Aug 9, 2016
    ContributorAuthor
    More actions

    I think we should create separate issues for the failures we still see, and resolve them one by one as we add backoff/retry for them. E.g., today's BQ failure should be its own issue, rather than reopening #1104. Likewise todays happybase failure should be a separate issue.

  10. dhermes commented on Aug 9, 2016

    @dhermes
    dhermes
    on Aug 9, 2016
    Contributor
    More actions

    @tseaver 500, 502 and 503 are just unavoidable for a general service. gcloud-node just retries them by default

  11. tseaver commented on Aug 9, 2016

    @tseaver
    tseaver
    on Aug 9, 2016
    ContributorAuthor
    More actions

    @dhermes #2075 tracks the BQ failure. #2076 tracks the Happybase one. I assigned the first to me, and the second to you, somewhat arbitrarily.

  12. tseaver
    closed this as completedon Aug 9, 2016
  13. dhermes
    added
    flaky
    on Aug 11, 2016
  14. JustinBeckwith
    assigned
    tseaver
    on Feb 1, 2021
  15. parthea
    added 2 commits that reference this issue on Nov 24, 2025

    chore(deps): update all dependencies (#1619)

    aa8b0d4

    fix: remove base class to avoid type conflict (#1619)

    c03b5f8
  16. parthea
    added a commit that references this issue on Mar 9, 2026

    feat(zb-experimental): implement flush, close and finalize (#1619)

    383b240
  17. parthea
    added a commit that references this issue on Apr 1, 2026

    fix!: make `dataset` and `name` params mandatory in `udf` (#1619)

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

Metadata

Metadata

Assignees

  • @tseaver
    tseaver

Labels

testing

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.