googleapis/python-automl

samples.tables.dataset_test: test_dataset_update failed

flaky-bot opened this issue · 0 comments

This test failed!

To configure my behavior, see the Flaky Bot documentation.

If I'm commenting on this issue too often, add the flakybot: quiet label and
I will stop commenting.


commit: 788a1b3
buildURL: Build Status, Sponge
status: failed

Test output
args = (parent: "projects/1012616486416/locations/us-central1/datasets/TBL8127498693055086592/tableSpecs/5798740762006913024"
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/1012616486416/locations/us-central1/datasets/TBL8127498693055...006913024'), ('x-goog-api-client', 'automl-tables-wrapper/2.4.0 gl-python/3.7.10 grpc/1.38.1 gax/1.31.0 gapic/2.4.0')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
    try:
      return callable_(*args, **kwargs)

.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:67:


self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7fede4371990>
request = parent: "projects/1012616486416/locations/us-central1/datasets/TBL8127498693055086592/tableSpecs/5798740762006913024"

timeout = None
metadata = [('x-goog-request-params', 'parent=projects/1012616486416/locations/us-central1/datasets/TBL8127498693055086592/tableS...2006913024'), ('x-goog-api-client', 'automl-tables-wrapper/2.4.0 gl-python/3.7.10 grpc/1.38.1 gax/1.31.0 gapic/2.4.0')]
credentials = None, wait_for_ready = None, compression = None

def __call__(self,
             request,
             timeout=None,
             metadata=None,
             credentials=None,
             wait_for_ready=None,
             compression=None):
    state, call, = self._blocking(request, timeout, metadata, credentials,
                                  wait_for_ready, compression)
  return _end_unary_response_blocking(state, call, False, None)

.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:946:


state = <grpc._channel._RPCState object at 0x7fede5cc1d50>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7fede5c9ecd0>
with_call = False, deadline = None

def _end_unary_response_blocking(state, call, with_call, deadline):
    if state.code is grpc.StatusCode.OK:
        if with_call:
            rendezvous = _MultiThreadedRendezvous(state, call, None, deadline)
            return state.response, rendezvous
        else:
            return state.response
    else:
      raise _InactiveRpcError(state)

E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.UNAUTHENTICATED
E details = "Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project."
E debug_error_string = "{"created":"@1626170935.431998858","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":1066,"grpc_message":"Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}"
E >

.nox/py-3-7/lib/python3.7/site-packages/grpc/_channel.py:849: _InactiveRpcError

The above exception was the direct cause of the following exception:

capsys = <_pytest.capture.CaptureFixture object at 0x7fede43055d0>

def test_dataset_update(capsys):
    dataset = ensure_dataset_ready()
    automl_tables_dataset.update_dataset(
        PROJECT,
        REGION,
        dataset.display_name,
        target_column_spec_name="Deposit",
      weight_column_spec_name="Balance",
    )

dataset_test.py:92:


automl_tables_dataset.py:204: in update_dataset
column_spec_display_name=weight_column_spec_name,
../../google/cloud/automl_v1beta1/services/tables/tables_client.py:1786: in set_weight_column
region=region,
../../google/cloud/automl_v1beta1/services/tables/tables_client.py:425: in __column_spec_name_from_args
region=region,
../../google/cloud/automl_v1beta1/services/tables/tables_client.py:1234: in list_column_specs
return self.auto_ml_client.list_column_specs(request=request, **method_kwargs)
../../google/cloud/automl_v1beta1/services/auto_ml/client.py:1560: in list_column_specs
response = rpc(request, retry=retry, timeout=timeout, metadata=metadata,)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:290: in retry_wrapped_func
on_error=on_error,
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/retry.py:188: in retry_target
return target()
.nox/py-3-7/lib/python3.7/site-packages/google/api_core/grpc_helpers.py:69: in error_remapped_callable
six.raise_from(exceptions.from_grpc_error(exc), exc)


value = None
from_value = <_InactiveRpcError of RPC that terminated with:
status = StatusCode.UNAUTHENTICATED
details = "Request had invalid a...entication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.","grpc_status":16}"

???
E google.api_core.exceptions.Unauthenticated: 401 Request had invalid authentication credentials. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.

:3: Unauthenticated