You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The black check failed because test_list_registry_versions_forwards_list_view_type in tests/model/unittests/test_model_operations.py had its method signature wrapped across 3 lines. With the package's configured line_length = 120, the single-line form (112 chars) fits within the limit, so Black requires it on one line.
Change
Unwrapped the method signature in sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.py from:
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch pipeline-fix/pr-48675-b204b36c352becbf3ffe0d1b39db3a00670fb09b/run-32442802703/fix/black-formatting-48675-f096e195cbe63538.
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (89 of 89 lines)
From d2c6223b4dd8c6c74cc4950e3091c586a6d0ef29 Mon Sep 17 00:00:00 2001
From: "Lava Kumar Repala (ALLYIS INC)" <v-rlava@microsoft.com>
Date: Thu, 20 Aug 2026 18:20:24 -0700
Subject: [PATCH 1/2] Fix registry model list view filtering
Forward list_view_type when listing named registry model versions and add regression coverage.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 35b39d20-4548-4d8f-ae87-92cba6b554d9
---
.../azure/ai/ml/operations/_model_operations.py | 1 +
.../tests/model/unittests/test_model_operations.py | 9 +++++++++
2 files changed, 10 insertions(+)
diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_model_operations.py b/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_model_operations.py
index 625aa837fc..d589b945f3 100644
--- a/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_model_operations.py+++ b/sdk/ml/azure-ai-ml/azure/ai/ml/operations/_model_operations.py@@ -629,6 +629,7 @@ class ModelOperations(_ScopeDependentOperations):
self._registry_name,
ArmModelVersion,
Model._from_rest_object,
+ list_view_type=list_view_type,
)
if self._registry_name
else self._model_versions_operation.list(
diff --git a/sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.py b/sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.py
index db6657fc55..6dee26850b 100644
--- a/sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.py+++ b/sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.py@@ -6,6 +6,7 @@ import pytest
from azure.ai.ml import load_model
from azure.ai.ml._restclient.arm_ml_service.models import (
+ ListViewType,
ModelContainer as ModelContainerData,
ModelContainerProperties as ModelContainerDetails,
ModelVersion as ModelVersionData,
@@ -268,6 +269,14 @@ path: ./model.pkl"""
... (truncated)
Summary
Fixes the
blackformatting failure in PR #48675 (commit d2c6223b4d).Diagnosis
The
blackcheck failed becausetest_list_registry_versions_forwards_list_view_typeintests/model/unittests/test_model_operations.pyhad its method signature wrapped across 3 lines. With the package's configuredline_length = 120, the single-line form (112 chars) fits within the limit, so Black requires it on one line.Change
Unwrapped the method signature in
sdk/ml/azure-ai-ml/tests/model/unittests/test_model_operations.pyfrom:to:
Validation
Pending automated checks on this draft PR.
Note
This was originally intended as a pull request, but GitHub Actions is not permitted to create or approve pull requests in this repository.
The changes have been pushed to branch
pipeline-fix/pr-48675-b204b36c352becbf3ffe0d1b39db3a00670fb09b/run-32442802703/fix/black-formatting-48675-f096e195cbe63538.Click here to create the pull request
To fix the permissions issue, go to Settings → Actions → General and enable Allow GitHub Actions to create and approve pull requests. See also: gh-aw FAQ
Show patch preview (89 of 89 lines)