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 — Determine a more appropriate sleep time for BigQuery system tests · Issue #1391 · googleapis/google-cloud-python

Determine a more appropriate sleep time for BigQuery system tests #1391

New issue
Copy link
New issue
Copy link
Closed
Closed
Determine a more appropriate sleep time for BigQuery system tests#1391
Copy link
Assignees
dhermes
Labels
api: bigqueryIssues related to the BigQuery API.

Description

@dhermes
dhermes
opened on Jan 15, 2016
Issue body actions

We sleep for 90 seconds but we get lots of failures when the job state is not done. This makes the BigQuery system tests fail quite often.

@tmatsuo Is there a better number of seconds we could sleep for? @stephenplusplus @callmehiphop @blowmage have you guys run into any issues with your own system tests?


Some more (collected in #1104)

  1. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/77509799
  2. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/78073572
  3. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/95718525
  4. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/95827336
  5. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/97283623
  6. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/98448630
  7. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/100920167
  8. https://travis-ci.org/GoogleCloudPlatform/gcloud-python/builds/100929401

Activity

  1. dhermes
    added
    api: bigqueryIssues related to the BigQuery API.
    on Jan 15, 2016
  2. blowmage commented on Jan 15, 2016

    @blowmage
    blowmage
    on Jan 15, 2016
    Contributor
    More actions

    In gcloud-ruby we do a couple things. First, we have an incremental backoff that waits for a job to complete. The other thing we do is retry failed acceptance tests, which has been a huge win for us. BigQuery has many hiccups, and we used to restart failed tests manually, but this has all but eliminated manual restarts.

  3. dhermes commented on Jan 15, 2016

    @dhermes
    dhermes
    on Jan 15, 2016
    ContributorAuthor
    More actions

    We toyed with retries in #535 but dismissed, I suppose this may be a reason to bring it back.

    (That'd also fix our flaky "eventual consistency" errors with storage API queries.)

  4. callmehiphop commented on Jan 15, 2016

    @callmehiphop
    callmehiphop
    on Jan 15, 2016
    More actions

    If I had to guess I would say we have a 60%ish success rate on system tests, BigQuery being a frequent offender of failures. When I first started we would timeout after 30 seconds and have since upped that to 60, which has helped a lot, but failures are still pretty common for us.

  5. blowmage commented on Jan 15, 2016

    @blowmage
    blowmage
    on Jan 15, 2016
    Contributor
    More actions

    Retrying tests has been super huge for us. It has saved us so much time. Many services have problems, not just BigQuery and Storage.

    But the incremental backoff seems to be more of what this issue is about. We don't limit how long it blocks. The CI build will eventually time out if it takes too long, but we've never seen a job in our tests take that long. We occasionally see 2+ minutes for a job to complete though.

  6. dhermes commented on Jan 15, 2016

    @dhermes
    dhermes
    on Jan 15, 2016
    ContributorAuthor
    More actions

    👍 I like it. @tseaver WDYT?

    @tmatsuo I'm still curious if there is a magic number > 90 seconds.

  7. tmatsuo commented on May 12, 2016

    @tmatsuo
    tmatsuo
    on May 12, 2016
    Contributor
    More actions

    @dhermes
    I don't know, but if it's an eventual consistency issue, I would just have longer deadline.

    Do you run the test on other place than travis? Do you run nightly builds?

    I'm asking because if you're running nightly builds, you can usually treat the test in question as flaky and run the test in nightly builds with much longer timeout.

  8. dhermes
    added
    flaky
    on Aug 11, 2016
  9. dhermes commented on Aug 11, 2016

    @dhermes
    dhermes
    on Aug 11, 2016
    ContributorAuthor
    More actions

    @tseaver Closing this since our retry stuff has picked up steam

  10. dhermes
    closed this as completedon Aug 11, 2016
  11. JustinBeckwith
    assigned
    dhermes
    on Feb 1, 2021
  12. parthea
    added a commit that references this issue on Nov 26, 2025

    chore(main): release 2.23.2 (#1391)

    f438f4c
  13. parthea
    added a commit that references this issue on Mar 9, 2026

    tests: update default runtime used for tests (#1391)

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

Metadata

Metadata

Assignees

  • @dhermes
    dhermes

Labels

api: bigqueryIssues related to the BigQuery API.

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.