Skip to content

[flake] bigquery/cloud-client/natality_tutorial_test.test_natality_tutorial #3882

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

Closed
tmatsuo opened this issue May 26, 2020 · 0 comments · Fixed by #3883
Closed

[flake] bigquery/cloud-client/natality_tutorial_test.test_natality_tutorial #3882

tmatsuo opened this issue May 26, 2020 · 0 comments · Fixed by #3883
Assignees
Labels
api: bigquery Issues related to the BigQuery API. needs-multiple-projects issues needs multiple projects for fundamental fix priority: p2 Moderately-important priority. Fix may not be included in next release. testing type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.

Comments

@tmatsuo
Copy link
Contributor

tmatsuo commented May 26, 2020

build

Log:

Traceback (most recent call last):
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/natality_tutorial_test.py", line 42, in test_natality_tutorial
    natality_tutorial.run_natality_tutorial(override_values)
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/natality_tutorial.py", line 50, in run_natality_tutorial
    dataset = client.create_dataset(dataset)
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/bigquery/client.py", line 461, in create_dataset
    retry, method="POST", path=path, data=data, timeout=timeout
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/bigquery/client.py", line 556, in _call_api
    return call()
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 286, in retry_wrapped_func
    on_error=on_error,
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py", line 184, in retry_target
    return target()
  File "/tmpfs/src/github/python-docs-samples/bigquery/cloud-client/.nox/py-3-7/lib/python3.7/site-packages/google/cloud/_http.py", line 423, in api_request
    raise exceptions.from_http_response(response)
google.api_core.exceptions.PreconditionFailed: 412 POST https://bigquery.googleapis.com/bigquery/v2/projects/python-docs-samples-tests/datasets: IAM setPolicy failed for Dataset python-docs-samples-tests:natality_regression_6f9938f5_60fe_47c0_9424_41d8d1b3db7a: There were concurrent policy changes. Please retry the whole read-modify-write with exponential backoff.

I think we can just use the BUILD_SPECIFIC_CLOUD_PROJECT for this test.

@tmatsuo tmatsuo added testing priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. api: bigquery Issues related to the BigQuery API. labels May 26, 2020
@tmatsuo tmatsuo self-assigned this May 26, 2020
tmatsuo pushed a commit to tmatsuo/python-docs-samples that referenced this issue May 26, 2020
@tmatsuo tmatsuo added the needs-multiple-projects issues needs multiple projects for fundamental fix label May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the BigQuery API. needs-multiple-projects issues needs multiple projects for fundamental fix priority: p2 Moderately-important priority. Fix may not be included in next release. testing type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant