Fix RAI image builds #3627
Fix RAI image builds #3627
1 errors, 3 fail in 12s
4 tests +1 0 ✅ ±0 12s ⏱️ +4s
4 suites +1 0 💤 ±0
4 files +1 3 ❌ +1 1 🔥 ±0
Results for commit e8bdfb1. ± Comparison against earlier commit 5f8c0c07.
Annotations
Check warning on line 0 in environment/ai-ml-automl.tests.automl_sample_test
github-actions / Test Results for assets-test
test_azure_ai_ml_automl (environment/ai-ml-automl.tests.automl_sample_test) failed
pytest-reports/environment/ai-ml-automl.xml [took 1s]
Raw output
azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
ErrorCode:AuthenticationFailed
def test_azure_ai_ml_automl():
"""Tests a sample job using ai-ml-automl as the environment."""
this_dir = Path(__file__).parent
subscription_id = os.environ.get("subscription_id")
resource_group = os.environ.get("resource_group")
workspace_name = os.environ.get("workspace")
# test
ml_client = MLClient(
AzureCliCredential(), subscription_id, resource_group, workspace_name
)
env_name = "ai-ml-automl"
env_docker_context = Environment(
build=BuildContext(path=this_dir / BUILD_CONTEXT),
name="ai-ml-automl",
description="ai-ml-automl environment created from a Docker context.",
)
> ml_client.environments.create_or_update(env_docker_context)
tests/automl_sample_test.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/operations/_environment_operations.py:157: in create_or_update
raise ex
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/operations/_environment_operations.py:115: in create_or_update
environment = _check_and_upload_env_build_context(environment=environment, operations=self, sas_uri=sas_uri)
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:430: in _check_and_upload_env_build_context
uploaded_artifact = _upload_to_datastore(
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:297: in _upload_to_datastore
artifact = upload_artifact(
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:178: in upload_artifact
artifact_info = storage_client.upload(
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:98: in upload
upload_directory(
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_utils/_asset_utils.py:589: in upload_directory
storage_client.check_blob_exists()
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:193: in check_blob_exists
raise e
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:152: in check_blob_exists
properties = blob_client.get_blob_properties()
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/core/tracing/decorator.py:105: in wrapper_use_tracer
return func(*args, **kwargs)
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/storage/blob/_blob_client.py:1091: in get_blob_properties
process_storage_error(error)
/usr/share/miniconda/envs/isolated_1732740701808/lib/python3.13/site-packages/azure/storage/blob/_shared/response_handlers.py:186: in process_storage_error
exec("raise error from None") # pylint: disable=exec-used # nosec
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
E ErrorCode:AuthenticationFailed
<string>:1: ClientAuthenticationError
Check warning on line 0 in environment/responsibleai-text.tests.responsibleai_text_sample_test
github-actions / Test Results for assets-test
test_responsibleai_text (environment/responsibleai-text.tests.responsibleai_text_sample_test) failed
pytest-reports/environment/responsibleai-text.xml [took 1s]
Raw output
azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
ErrorCode:AuthenticationFailed
def test_responsibleai_text():
"""Tests a sample job using responsibleai text image as the environment."""
this_dir = Path(__file__).parent
subscription_id = os.environ.get("subscription_id")
resource_group = os.environ.get("resource_group")
workspace_name = os.environ.get("workspace")
ml_client = MLClient(
AzureCliCredential(), subscription_id, resource_group, workspace_name
)
env_name = "responsibleai-text"
env_docker_context = Environment(
build=BuildContext(path=this_dir / BUILD_CONTEXT),
name=env_name,
description="ResponsibleAI Text environment created from a Docker context.",
)
> ml_client.environments.create_or_update(env_docker_context)
tests/responsibleai_text_sample_test.py:39:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/operations/_environment_operations.py:205: in create_or_update
raise ex
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/operations/_environment_operations.py:172: in create_or_update
environment = _check_and_upload_env_build_context(
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:538: in _check_and_upload_env_build_context
uploaded_artifact = _upload_to_datastore(
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:243: in upload_artifact
artifact_info = storage_client.upload(
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:122: in upload
upload_directory(
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_utils/_asset_utils.py:661: in upload_directory
storage_client.check_blob_exists()
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:226: in check_blob_exists
raise e
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:184: in check_blob_exists
raise e
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:175: in check_blob_exists
properties = blob_client.get_blob_properties()
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/core/tracing/decorator.py:105: in wrapper_use_tracer
return func(*args, **kwargs)
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/storage/blob/_blob_client.py:1091: in get_blob_properties
process_storage_error(error)
/usr/share/miniconda/envs/isolated_1732740698214/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py:186: in process_storage_error
exec("raise error from None") # pylint: disable=exec-used # nosec
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
E ErrorCode:AuthenticationFailed
<string>:1: ClientAuthenticationError
Check failure on line 0 in environment/responsibleai-tabular
github-actions / Test Results for assets-test
tests.responsibleai_sample_test (environment/responsibleai-tabular) with error
pytest-reports/environment/responsibleai-tabular.xml [took 0s]
Raw output
collection failure
ImportError while importing test module '/home/runner/work/azureml-assets/azureml-assets/assets/responsibleai/environments/responsibleai-tabular/tests/responsibleai_sample_test.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/share/miniconda/envs/isolated_1732740702258/lib/python3.12/importlib/__init__.py:90: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
tests/responsibleai_sample_test.py:10: in <module>
from azure.ai.ml._restclient.models import JobStatus
/usr/share/miniconda/envs/isolated_1732740702258/lib/python3.12/site-packages/azure/ai/ml/_restclient/models.py:12: in <module>
from .v2021_10_01.models import *
E ModuleNotFoundError: No module named 'azure.ai.ml._restclient.v2021_10_01'
Check warning on line 0 in environment/responsibleai-vision.tests.responsibleai_vision_sample_test
github-actions / Test Results for assets-test
test_responsibleai_vision (environment/responsibleai-vision.tests.responsibleai_vision_sample_test) failed
pytest-reports/environment/responsibleai-vision.xml [took 2s]
Raw output
azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
ErrorCode:AuthenticationFailed
def test_responsibleai_vision():
"""Tests a sample job using responsibleai vision image as the environment."""
this_dir = Path(__file__).parent
subscription_id = os.environ.get("subscription_id")
resource_group = os.environ.get("resource_group")
workspace_name = os.environ.get("workspace")
ml_client = MLClient(
AzureCliCredential(), subscription_id, resource_group, workspace_name
)
env_name = "responsibleai-vision"
env_docker_context = Environment(
build=BuildContext(path=this_dir / BUILD_CONTEXT),
name=env_name,
description="ResponsibleAI Vision environment created from a Docker context.",
)
> ml_client.environments.create_or_update(env_docker_context)
tests/responsibleai_vision_sample_test.py:38:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_telemetry/activity.py:292: in wrapper
return f(*args, **kwargs)
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/operations/_environment_operations.py:205: in create_or_update
raise ex
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/operations/_environment_operations.py:172: in create_or_update
environment = _check_and_upload_env_build_context(
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:538: in _check_and_upload_env_build_context
uploaded_artifact = _upload_to_datastore(
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:384: in _upload_to_datastore
artifact = upload_artifact(
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_artifact_utilities.py:243: in upload_artifact
artifact_info = storage_client.upload(
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:122: in upload
upload_directory(
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_utils/_asset_utils.py:661: in upload_directory
storage_client.check_blob_exists()
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:226: in check_blob_exists
raise e
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:184: in check_blob_exists
raise e
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/ai/ml/_artifacts/_blob_storage_helper.py:175: in check_blob_exists
properties = blob_client.get_blob_properties()
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/core/tracing/decorator.py:105: in wrapper_use_tracer
return func(*args, **kwargs)
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/storage/blob/_blob_client.py:1091: in get_blob_properties
process_storage_error(error)
/usr/share/miniconda/envs/isolated_1732740730204/lib/python3.12/site-packages/azure/storage/blob/_shared/response_handlers.py:186: in process_storage_error
exec("raise error from None") # pylint: disable=exec-used # nosec
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E azure.core.exceptions.ClientAuthenticationError: Operation returned an invalid status 'Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.'
E ErrorCode:AuthenticationFailed
<string>:1: ClientAuthenticationError