GoogleCloudPlatform / python-docs-samples

Code samples used on cloud.google.com
Apache License 2.0
7.46k stars 6.45k forks source link

healthcare.api-client.v1beta1.fhir.fhir_stores_test: test_create_delete_fhir_store failed #7433

Closed flaky-bot[bot] closed 2 years ago

flaky-bot[bot] commented 2 years ago

Note: #6707 was also for this test, but it was closed more than 10 days ago. So, I didn't mark it flaky.


commit: 8d48cd7a2b6c15a84de1cd7ef2fb72b4550fa799 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 72, in test_create_delete_fhir_store
    create()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 69, in create
    fhir_stores.create_fhir_store(
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores.py", line 106, in create_fhir_store
    response = request.execute()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/http.py", line 937, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: 
flaky-bot[bot] commented 2 years ago

Looks like this issue is flaky. :worried:

I'm going to leave this open and stop commenting.

A human should fix and close this.


When run at the same commit (8d48cd7a2b6c15a84de1cd7ef2fb72b4550fa799), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

parthea commented 2 years ago

Googlers see b/189121491

parthea commented 2 years ago

Similar issue as the one reported in https://github.com/GoogleCloudPlatform/python-docs-samples/issues/5331. Increasing the timeout appears to resolve the issue.

flaky-bot[bot] commented 2 years ago

Oops! Looks like this issue is still flaky. It failed again. :grimacing:

I reopened the issue, but a human will need to close it again.


commit: 9f365f869a4559bc4fdd46398d827f47646c53f9 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 73, in test_create_delete_fhir_store
    create()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 70, in create
    fhir_stores.create_fhir_store(
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores.py", line 106, in create_fhir_store
    response = request.execute()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/http.py", line 937, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: 
busunkim96 commented 2 years ago

@parthea @noerog It looks like this failed even with a more generous retry - were either of you able to hear back from the Healthcare API team on the expected behavior?

parthea commented 2 years ago

No, I haven't heard back. We're waiting on b/189121491. I've added a comment on that bug.

parthea commented 2 years ago

I'm going to close this issue and see if flaky bot re-opens it. I've also bumped the priority of b/189121491.

flaky-bot[bot] commented 2 years ago

Oops! Looks like this issue is still flaky. It failed again. :grimacing:

I reopened the issue, but a human will need to close it again.


commit: a2a338af35718aa8323440b945d73988bf166acc buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 73, in test_create_delete_fhir_store
    create()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/backoff/_sync.py", line 94, in retry
    ret = target(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 70, in create
    fhir_stores.create_fhir_store(
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores.py", line 106, in create_fhir_store
    response = request.execute()
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/_helpers.py", line 131, in positional_wrapper
    return wrapped(*args, **kwargs)
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/googleapiclient/http.py", line 937, in execute
    raise HttpError(resp, content, uri=self.uri)
googleapiclient.errors.HttpError: 
flaky-bot[bot] commented 2 years ago

Oops! Looks like this issue is still flaky. It failed again. :grimacing:

I reopened the issue, but a human will need to close it again.


commit: 5610d84738effe3b200a690406b5426329680628 buildURL: Build Status, Sponge status: failed

Test output
Traceback (most recent call last):
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 62, in test_dataset
    wait_for_operation(operation["name"])
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/google/api_core/retry.py", line 283, in retry_wrapped_func
    return retry_target(
  File "/workspace/healthcare/api-client/v1beta1/fhir/.nox/py-3-10/lib/python3.10/site-packages/google/api_core/retry.py", line 190, in retry_target
    return target()
  File "/workspace/healthcare/api-client/v1beta1/fhir/fhir_stores_test.py", line 51, in wait_for_operation
    if not operation["done"]:
KeyError: 'done'
busunkim96 commented 2 years ago

This will probably be re-opened by flaky-bot in the next few days.

The exception message should contain the full operation name, which can be looked up through https://cloud.google.com/healthcare-api/docs/reference/rest/v1/projects.locations.datasets.operations/get to determine the final status of the operation. Did it take >10 minutes to run? Did it wind up in an error state?