Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Flaky System Tests #1796

Closed
daspecster opened this issue May 16, 2016 · 6 comments
Closed

Flaky System Tests #1796

daspecster opened this issue May 16, 2016 · 6 comments
Assignees
Labels

Comments

@daspecster
Copy link
Contributor

@dhermes and I talked briefly about this issue. It seems like the tests are failing pretty consistently now.

What can we do to make this library or the tests more resilient?

Some of the issues seem to be account related?.

gcloud.exceptions.Forbidden: 403 Exceeded rate limits: Your dataset exceeded quota for dataset.insert or dataset.update per table. For more information, see https://cloud.google.com/bigquery/troubleshooting-errors (POST https://www.googleapis.com/bigquery/v2/projects/precise-truck-742/datasets)

Maybe @jgeewax knows?

I think this is what @dhermes and I talked about last week. Is this where you were talking about adding/changing the retrying/exponential backoff?

@dhermes dhermes changed the title Systems tests failing Flaky System Tests May 16, 2016
@dhermes
Copy link
Contributor

dhermes commented May 16, 2016

Ouch. I haven't seen a 403 like that before, isn't 429 supposed to be for rate limiting? Exponential backoff would hopefully resolve that.

The majority of the errors we've come across are due to eventual consistency though.

@daspecster
Copy link
Contributor Author

@jgeewax I'm not sure how to move on this?

@dhermes
Copy link
Contributor

dhermes commented May 17, 2016

I plan on tackling this soon.

The plan is to go through #1085, #1089, #1100 and others and take down the errors one by one. I developed a strategy in #535 and will try to resurrect it.

@daspecster
Copy link
Contributor Author

Nice! Let me know if I can help in anyway.

I see in the docs for bigquery as well as for storage that the 403 response code is used for a lot of situations.
https://cloud.google.com/bigquery/troubleshooting-errors

@daspecster
Copy link
Contributor Author

@jgeewax, do we need to up our quota limits? It looks like our normal number of builds is getting close to the limits?

======================================================================
ERROR: test_update_dataset (bigquery.TestBigQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/bigquery.py", line 87, in test_update_dataset
    dataset.create()
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/gcloud/bigquery/dataset.py", line 423, in create
    method='POST', path=path, data=self._build_resource())
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/gcloud/connection.py", line 344, in api_request
    error_info=method + ' ' + url)
gcloud.exceptions.Forbidden: 403 Exceeded rate limits: Your dataset exceeded quota for dataset.insert or dataset.update per table. For more information, see https://cloud.google.com/bigquery/troubleshooting-errors (POST https://www.googleapis.com/bigquery/v2/projects/precise-truck-742/datasets)
======================================================================
ERROR: test_update_table (bigquery.TestBigQuery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/bigquery.py", line 191, in test_update_table
    dataset.create()
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/gcloud/bigquery/dataset.py", line 423, in create
    method='POST', path=path, data=self._build_resource())
  File "/home/travis/build/GoogleCloudPlatform/gcloud-python/gcloud/connection.py", line 344, in api_request
    error_info=method + ' ' + url)
gcloud.exceptions.Forbidden: 403 Exceeded rate limits: Your dataset exceeded quota for dataset.insert or dataset.update per table. For more information, see https://cloud.google.com/bigquery/troubleshooting-errors (POST https://www.googleapis.com/bigquery/v2/projects/precise-truck-742/datasets)
----------------------------------------------------------------------
Ran 11 tests in 28.436s
FAILED (errors=2)
ERROR: InvocationError: '/home/travis/build/GoogleCloudPlatform/gcloud-python/.tox/system-tests/bin/python /home/travis/build/GoogleCloudPlatform/gcloud-python/system_tests/attempt_system_tests.py'
___________________________________ summary ____________________________________
ERROR:   system-tests: commands failed

@tseaver
Copy link
Contributor

tseaver commented Aug 9, 2016

@daspecster Those BigQuery rate limiting issues are fixed via the backoff/retry stuff added in #2050.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants