googleapis/python-automl

tests.system.gapic.v1beta1.test_system_tables_client_v1.TestSystemTablesClient: test_import_data failed

flaky-bot opened this issue · 4 comments

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


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

Test output
self = 
@vpcsc_config.skip_if_inside_vpcsc
def test_import_data(self):
    client = automl_v1beta1.TablesClient(project=PROJECT, region=REGION)
    display_name = _id("t_import")
    dataset = client.create_dataset(display_name)
    op = client.import_data(
        dataset=dataset,
        gcs_input_uris="gs://cloud-ml-tables-data/bank-marketing.csv",
    )
  self.cancel_and_wait(op)

tests/system/gapic/v1beta1/test_system_tables_client_v1.py:98:


self = <test_system_tables_client_v1.TestSystemTablesClient object at 0x7f8bd5e0e970>
op = <google.api_core.operation.Operation object at 0x7f8bd5e47a00>

def cancel_and_wait(self, op):
    op.cancel()
    start = time.time()
    sleep_time = 1
    while time.time() - start < MAX_WAIT_TIME_SECONDS:
        if op.cancelled():
            return
        time.sleep(sleep_time)
        sleep_time = min(sleep_time * 2, MAX_SLEEP_TIME_SECONDS)
  assert op.cancelled()

E assert False
E + where False = <bound method Operation.cancelled of <google.api_core.operation.Operation object at 0x7f8bd5e47a00>>()
E + where <bound method Operation.cancelled of <google.api_core.operation.Operation object at 0x7f8bd5e47a00>> = <google.api_core.operation.Operation object at 0x7f8bd5e47a00>.cancelled

tests/system/gapic/v1beta1/test_system_tables_client_v1.py:59: AssertionError

Looks like this issue is flaky. 😟

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

A human should fix and close this.


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

I'm going to close this issue to see if flaky bot re-opens it. Feel free to re-open this issue if it's still needed.

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

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


commit: 35912a0
buildURL: Build Status, Sponge
status: failed

Test output
self = 
@vpcsc_config.skip_if_inside_vpcsc
def test_import_data(self):
    client = automl_v1beta1.TablesClient(project=PROJECT, region=REGION)
    display_name = _id("t_import")
    dataset = client.create_dataset(display_name)
    op = client.import_data(
        dataset=dataset,
        gcs_input_uris="gs://cloud-ml-tables-data/bank-marketing.csv",
    )
  self.cancel_and_wait(op)

tests/system/gapic/v1beta1/test_system_tables_client_v1.py:98:


self = <test_system_tables_client_v1.TestSystemTablesClient object at 0x7f1bbdae5fa0>
op = <google.api_core.operation.Operation object at 0x7f1bbc298040>

def cancel_and_wait(self, op):
    op.cancel()
    start = time.time()
    sleep_time = 1
    while time.time() - start < MAX_WAIT_TIME_SECONDS:
        if op.cancelled():
            return
        time.sleep(sleep_time)
        sleep_time = min(sleep_time * 2, MAX_SLEEP_TIME_SECONDS)
  assert op.cancelled()

E assert False
E + where False = <bound method Operation.cancelled of <google.api_core.operation.Operation object at 0x7f1bbc298040>>()
E + where <bound method Operation.cancelled of <google.api_core.operation.Operation object at 0x7f1bbc298040>> = <google.api_core.operation.Operation object at 0x7f1bbc298040>.cancelled

tests/system/gapic/v1beta1/test_system_tables_client_v1.py:59: AssertionError

Intermittent service issue. Closing.