Test output
args = (parent: "projects/ucaip-sample-tests/locations/us-central1"
study {
display_name: "temp_vertex_sdk_e2e_vizier_test"... values: "experimental"
}
}
algorithm: RANDOM_SEARCH
decay_curve_stopping_spec {
}
}
}
,)
kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/ucaip-sample-tests/locations/us-central1'), ('x-goog-api-client', 'model-builder/1.17.1 gl-python/3.8.13 grpc/1.47.0 gax/1.32.0 gapic/1.17.1')]}
@six.wraps(callable_)
def error_remapped_callable(*args, **kwargs):
try:
return callable_(*args, **kwargs)
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f081110aeb0>
request = parent: "projects/ucaip-sample-tests/locations/us-central1"
study {
display_name: "temp_vertex_sdk_e2e_vizier_test"
...
values: "experimental"
}
}
algorithm: RANDOM_SEARCH
decay_curve_stopping_spec {
}
}
}
timeout = None
metadata = [('x-goog-request-params', 'parent=projects/ucaip-sample-tests/locations/us-central1'), ('x-goog-api-client', 'model-builder/1.17.1 gl-python/3.8.13 grpc/1.47.0 gax/1.32.0 gapic/1.17.1')]
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/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:
state = <grpc._channel._RPCState object at 0x7f0812498700>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f0812659740>
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.FAILED_PRECONDITION
E details = "The request has violated one or more Org Policies: violations {
E description: "The project 580378083368 failed the org policy enforcement check for constraints/gcp.resourceLocations."
E }
E "
E debug_error_string = "{"created":"@1663399966.811397129","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"The request has violated one or more Org Policies: violations {\n description: "The project 580378083368 failed the org policy enforcement check for constraints/gcp.resourceLocations."\n}\n","grpc_status":9}"
E >
.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
self = <tests.system.aiplatform.test_vizier.TestVizier object at 0x7f0813d79d30>
shared_state = {'resources': [<google.cloud.aiplatform.vizier.study.Study object at 0x7f08111da670>
resource name: projects/580378083368/locations/us-central1/studies/205796158758]}
def test_vizier_study_deletion(self, shared_state):
aiplatform.init(
project=e2e_base._PROJECT,
location=e2e_base._LOCATION,
)
sc = pyvizier.StudyConfig()
sc.algorithm = pyvizier.Algorithm.RANDOM_SEARCH
sc.metric_information.append(
pyvizier.MetricInformation(
name="pr-auc", goal=pyvizier.ObjectiveMetricGoal.MAXIMIZE
)
)
root = sc.search_space.select_root()
root.add_float_param(
"learning_rate", 0.00001, 1.0, scale_type=pyvizier.ScaleType.LINEAR
)
root.add_categorical_param("optimizer", ["adagrad", "adam", "experimental"])
sc.automated_stopping_config = (
pyvizier.AutomatedStoppingConfig.decay_curve_stopping_config(use_steps=True)
)
study = Study.create_or_load(display_name=self._temp_prefix, problem=sc)
tests/system/aiplatform/test_vizier.py:74:
google/cloud/aiplatform/base.py:807: in wrapper
return method(*args, **kwargs)
google/cloud/aiplatform/vizier/study.py:143: in create_or_load
study = api_client.create_study(
google/cloud/aiplatform_v1/services/vizier_service/client.py:598: in create_study
response = rpc(
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/system-3-8/lib/python3.8/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.FAILED_PRECONDITION
details = "The request has v...80378083368 failed the org policy enforcement check for constraints/gcp.resourceLocations."\n}\n","grpc_status":9}"
???
E google.api_core.exceptions.FailedPrecondition: 400 The request has violated one or more Org Policies: violations {
E description: "The project 580378083368 failed the org policy enforcement check for constraints/gcp.resourceLocations."
E }
:3: FailedPrecondition
This test failed!
To configure my behavior, see the Flaky Bot documentation.
If I'm commenting on this issue too often, add the
flakybot: quietlabel andI will stop commenting.
commit: 9a506ee
buildURL: Build Status, Sponge
status: failed
Test output
args = (parent: "projects/ucaip-sample-tests/locations/us-central1" study { display_name: "temp_vertex_sdk_e2e_vizier_test"... values: "experimental" } } algorithm: RANDOM_SEARCH decay_curve_stopping_spec { } } } ,) kwargs = {'metadata': [('x-goog-request-params', 'parent=projects/ucaip-sample-tests/locations/us-central1'), ('x-goog-api-client', 'model-builder/1.17.1 gl-python/3.8.13 grpc/1.47.0 gax/1.32.0 gapic/1.17.1')]}
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/grpc_helpers.py:67:
self = <grpc._channel._UnaryUnaryMultiCallable object at 0x7f081110aeb0>
request = parent: "projects/ucaip-sample-tests/locations/us-central1"
study {
display_name: "temp_vertex_sdk_e2e_vizier_test"
...
values: "experimental"
}
}
algorithm: RANDOM_SEARCH
decay_curve_stopping_spec {
}
}
}
timeout = None
metadata = [('x-goog-request-params', 'parent=projects/ucaip-sample-tests/locations/us-central1'), ('x-goog-api-client', 'model-builder/1.17.1 gl-python/3.8.13 grpc/1.47.0 gax/1.32.0 gapic/1.17.1')]
credentials = None, wait_for_ready = None, compression = None
.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:946:
state = <grpc._channel._RPCState object at 0x7f0812498700>
call = <grpc._cython.cygrpc.SegregatedCall object at 0x7f0812659740>
with_call = False, deadline = None
E grpc._channel._InactiveRpcError: <_InactiveRpcError of RPC that terminated with:
E status = StatusCode.FAILED_PRECONDITION
E details = "The request has violated one or more Org Policies: violations {
E description: "The project 580378083368 failed the org policy enforcement check for
constraints/gcp.resourceLocations."E }
E "
E debug_error_string = "{"created":"@1663399966.811397129","description":"Error received from peer ipv4:74.125.195.95:443","file":"src/core/lib/surface/call.cc","file_line":966,"grpc_message":"The request has violated one or more Org Policies: violations {\n description: "The project 580378083368 failed the org policy enforcement check for
constraints/gcp.resourceLocations."\n}\n","grpc_status":9}"E >
.nox/system-3-8/lib/python3.8/site-packages/grpc/_channel.py:849: _InactiveRpcError
The above exception was the direct cause of the following exception:
self = <tests.system.aiplatform.test_vizier.TestVizier object at 0x7f0813d79d30>
shared_state = {'resources': [<google.cloud.aiplatform.vizier.study.Study object at 0x7f08111da670>
resource name: projects/580378083368/locations/us-central1/studies/205796158758]}
tests/system/aiplatform/test_vizier.py:74:
google/cloud/aiplatform/base.py:807: in wrapper
return method(*args, **kwargs)
google/cloud/aiplatform/vizier/study.py:143: in create_or_load
study = api_client.create_study(
google/cloud/aiplatform_v1/services/vizier_service/client.py:598: in create_study
response = rpc(
.nox/system-3-8/lib/python3.8/site-packages/google/api_core/gapic_v1/method.py:145: in call
return wrapped_func(*args, **kwargs)
.nox/system-3-8/lib/python3.8/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.FAILED_PRECONDITION
details = "The request has v...80378083368 failed the org policy enforcement check for
constraints/gcp.resourceLocations."\n}\n","grpc_status":9}":3: FailedPrecondition