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 #1391Activityblowmage commented on Jan 15, 2016 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. dhermes commented 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.) callmehiphop commented on Jan 15, 2016 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. blowmage commented on Jan 15, 2016 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. dhermes commented 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. tmatsuo commented on May 12, 2016 @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. dhermes commented on Aug 11, 2016 ContributorAuthor More actions @tseaver Closing this since our retry stuff has picked up steam
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|