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: 440ca5b
buildURL: Build Status, Sponge
status: failed
Test output
self =
shared_state = {'bucket': , 'staging_bucket_name': 'test-ver...ent-model-955215c8-01d3-4726-a088-25', 'storage_client': }
def test_sklearn_model(self, shared_state):
aiplatform.init(
project=e2e_base._PROJECT,
location=e2e_base._LOCATION,
staging_bucket=shared_state["staging_bucket_name"],
)
train_x = np.array([[1, 1], [1, 2], [2, 2], [2, 3]])
train_y = np.dot(train_x, np.array([1, 2])) + 3
model = LinearRegression()
model.fit(train_x, train_y)
# Test save sklearn model
aiplatform.save_model(model, "sk-model")
tests/system/aiplatform/test_experiment_model.py:53:
google/cloud/aiplatform/metadata/_models.py:508: in save_model
gcs_utils.upload_to_gcs(temp_dir, uri)
google/cloud/aiplatform/utils/gcs_utils.py:78: in upload_to_gcs
destination_blob = storage.Blob.from_string(
cls = <class 'google.cloud.storage.blob.Blob'>
uri = 'test-vertex-sdk-e2e-experiment-model-955215c8-01d3-4726-a088-25/2023-01-24-00-42-27-03ace-sklearn-model/model.pkl'
client = <google.cloud.storage.client.Client object at 0x7f1d63cb5370>
@classmethod
def from_string(cls, uri, client=None):
"""Get a constructor for blob object by URI.
.. code-block:: python
from google.cloud import storage
from google.cloud.storage.blob import Blob
client = storage.Client()
blob = Blob.from_string("gs://bucket/object", client=client)
:type uri: str
:param uri: The blob uri pass to get blob object.
:type client: :class:`~google.cloud.storage.client.Client`
:param client:
(Optional) The client to use. Application code should
*always* pass ``client``.
:rtype: :class:`google.cloud.storage.blob.Blob`
:returns: The blob object created.
"""
from google.cloud.storage.bucket import Bucket
scheme, netloc, path, query, frag = urlsplit(uri)
if scheme != "gs":
raise ValueError("URI scheme must be gs")
E ValueError: URI scheme must be gs
.nox/system-3-8/lib/python3.8/site-packages/google/cloud/storage/blob.py:408: ValueError
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: 440ca5b
buildURL: Build Status, Sponge
status: failed
Test output
self = shared_state = {'bucket': , 'staging_bucket_name': 'test-ver...ent-model-955215c8-01d3-4726-a088-25', 'storage_client': }
tests/system/aiplatform/test_experiment_model.py:53:
google/cloud/aiplatform/metadata/_models.py:508: in save_model
gcs_utils.upload_to_gcs(temp_dir, uri)
google/cloud/aiplatform/utils/gcs_utils.py:78: in upload_to_gcs
destination_blob = storage.Blob.from_string(
cls = <class 'google.cloud.storage.blob.Blob'>
uri = 'test-vertex-sdk-e2e-experiment-model-955215c8-01d3-4726-a088-25/2023-01-24-00-42-27-03ace-sklearn-model/model.pkl'
client = <google.cloud.storage.client.Client object at 0x7f1d63cb5370>
E ValueError: URI scheme must be gs
.nox/system-3-8/lib/python3.8/site-packages/google/cloud/storage/blob.py:408: ValueError