googleapis/python-automl

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

Closed this issue · 2 comments

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


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

Test output
self = 
@vpcsc_config.skip_if_inside_vpcsc
def test_set_weight_and_target_column(self):
    client = automl_v1beta1.TablesClient(project=PROJECT, region=REGION)
    dataset = self.ensure_dataset_ready(client)
    client.set_weight_column(dataset=dataset, column_spec_display_name="Day")
    client.set_target_column(dataset=dataset, column_spec_display_name="Campaign")
    columns = {c.display_name: c for c in client.list_column_specs(dataset=dataset)}
    dataset = client.get_dataset(dataset_name=dataset.name)
    metadata = dataset.tables_dataset_metadata
    assert columns["Day"].name.endswith(
        "/{}".format(metadata.weight_column_spec_id)
    )
  assert columns["Campaign"].name.endswith(
        "/{}".format(metadata.target_column_spec_id)
    )

E assert False
E + where False = <built-in method endswith of str object at 0x7ff865a8ddb0>('/6091391174902284288')
E + where <built-in method endswith of str object at 0x7ff865a8ddb0> = 'projects/1065521786570/locations/us-central1/datasets/TBL6211369883725201408/tableSpecs/3647440709146902528/columnSpecs/615014028019761152'.endswith
E + where 'projects/1065521786570/locations/us-central1/datasets/TBL6211369883725201408/tableSpecs/3647440709146902528/columnSpecs/615014028019761152' = name: "projects/1065521786570/locations/us-central1/datasets/TBL6211369883725201408/tableSpecs/3647440709146902528/col...ue_count: 48\n valid_value_count: 45211\n}\netag: "AB3BwFrlBNdBvHKiAszp_6BrC_Hsz57Fuu0PZmDP-FXHqCQRgMy1C7bpNnM7DWGxKmY="\n.name
E + and '/6091391174902284288' = <built-in method format of str object at 0x7ff874869b70>('6091391174902284288')
E + where <built-in method format of str object at 0x7ff874869b70> = '/{}'.format
E + and '6091391174902284288' = primary_table_spec_id: "3647440709146902528"\ntarget_column_spec_id: "6091391174902284288"\nweight_column_spec_id: "6379...384"\n value {\n cramers_v: 0.01072063304507692\n }\n}\nstats_update_time {\n seconds: 1674230456\n nanos: 536911000\n}\n.target_column_spec_id

tests/system/gapic/v1beta1/test_system_tables_client_v1.py:205: 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 (c81ac42), this test passed in one build (Build Status, Sponge) and failed in another build (Build Status, Sponge).

All tests are passing. Closing as obsolete. Flaky bot will re-open if the test is still flaky.