Skip to content

Commit e40e73d

Browse files
authored
[ML] Add Team Ownership Markers to Test Classes (#26957)
* Add markers to test classes * add untracked changes
1 parent 5e7092c commit e40e73d

File tree

140 files changed

+156
-26
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

140 files changed

+156
-26
lines changed

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from devtools_testutils import AzureRecordedTestCase, is_live
2323

2424

25-
@pytest.mark.automle2etest
25+
@pytest.mark.automl_test
2626
@pytest.mark.usefixtures("recorded_test")
2727
@pytest.mark.skipif(
2828
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_classification_multilabel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from devtools_testutils import AzureRecordedTestCase, is_live
2323

2424

25-
@pytest.mark.automle2etest
25+
@pytest.mark.automl_test
2626
@pytest.mark.usefixtures(
2727
"recorded_test",
2828
"mock_asset_name",

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_object_detection.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from devtools_testutils import AzureRecordedTestCase, is_live
2323

2424

25-
@pytest.mark.automle2etest
25+
@pytest.mark.automl_test
2626
@pytest.mark.usefixtures("recorded_test")
2727
@pytest.mark.skipif(
2828
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_automl_image_segmentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from devtools_testutils import AzureRecordedTestCase, is_live
2222

2323

24-
@pytest.mark.automle2etest
24+
@pytest.mark.automl_test
2525
@pytest.mark.usefixtures("recorded_test")
2626
@pytest.mark.skipif(
2727
condition=not is_live() or platform.python_implementation() == "PyPy",

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from devtools_testutils import AzureRecordedTestCase, is_live
1818

1919

20-
@pytest.mark.automle2etest
20+
@pytest.mark.automl_test
2121
@pytest.mark.usefixtures("recorded_test")
2222
@pytest.mark.skipif(
2323
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_forecasting.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from devtools_testutils import AzureRecordedTestCase, is_live
1717

1818

19-
@pytest.mark.automle2etest
19+
@pytest.mark.automl_test
2020
@pytest.mark.usefixtures("recorded_test")
2121
@pytest.mark.skipif(
2222
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_regression.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from devtools_testutils import AzureRecordedTestCase, is_live
1717

1818

19-
@pytest.mark.automle2etest
19+
@pytest.mark.automl_test
2020
@pytest.mark.usefixtures("recorded_test")
2121
@pytest.mark.skipif(
2222
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_text_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from devtools_testutils import AzureRecordedTestCase, is_live
1717

1818

19-
@pytest.mark.automle2etest
19+
@pytest.mark.automl_test
2020
@pytest.mark.usefixtures("recorded_test")
2121
@pytest.mark.skipif(
2222
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_text_classification_multilabel.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from devtools_testutils import AzureRecordedTestCase, is_live
1717

1818

19-
@pytest.mark.automle2etest
19+
@pytest.mark.automl_test
2020
@pytest.mark.usefixtures("recorded_test")
2121
@pytest.mark.skipif(
2222
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/e2etests/test_remote_text_ner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from devtools_testutils import AzureRecordedTestCase, is_live
1717

1818

19-
@pytest.mark.automle2etest
19+
@pytest.mark.automl_test
2020
@pytest.mark.usefixtures("recorded_test")
2121
@pytest.mark.skipif(
2222
condition=not is_live(),

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_classification.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
2525

2626

27+
@pytest.mark.automl_test
2728
@pytest.mark.unittest
2829
class TestAutoMLImageClassification:
2930
@pytest.mark.parametrize("run_type", ["single", "sweep", "automode"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_classification_multilabel.py

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
2525

2626

27+
@pytest.mark.automl_test
2728
@pytest.mark.unittest
2829
class TestAutoMLImageClassificationMultilabel:
2930
@pytest.mark.parametrize("run_type", ["single", "sweep", "automode"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_instance_segmentation.py

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
2727

2828

29+
@pytest.mark.automl_test
2930
@pytest.mark.unittest
3031
class TestAutoMLImageInstanceSegmentation:
3132
@pytest.mark.parametrize("run_type", ["single", "sweep", "automode"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_object_detection.py

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
2727

2828

29+
@pytest.mark.automl_test
2930
@pytest.mark.unittest
3031
class TestAutoMLImageObjectDetection:
3132
@pytest.mark.parametrize("run_type", ["single", "sweep", "automode"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_image_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,7 @@ def loaded_image_instance_segmentation_job(
446446
return job
447447

448448

449+
@pytest.mark.automl_test
449450
@pytest.mark.unittest
450451
class TestAutoMLImageSchema:
451452
@pytest.mark.parametrize("run_type", ["single", "sweep", "automode"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_nlp_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,7 @@ def _load_automl_job_from_path(
299299
return job
300300

301301

302+
@pytest.mark.automl_test
302303
@pytest.mark.unittest
303304
class TestAutoMLNLPSchema:
304305
@pytest.mark.parametrize("run_type", ["single", "sweep"])

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_automl_tabular_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,7 @@ def loaded_regression_job_auto_fields(mock_machinelearning_client) -> AutoMLJob:
343343
return job
344344

345345

346+
@pytest.mark.automl_test
346347
@pytest.mark.unittest
347348
class TestAutoMLTabularSchema:
348349
def _validate_automl_tabular_job(self, automl_job):

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_classification_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
from azure.ai.ml.entities._job.automl.tabular import ClassificationJob
1515

1616

17+
@pytest.mark.automl_test
1718
@pytest.mark.unittest
1819
class TestAutoMLClassification:
1920
def test_classification_task(self):

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_forecasting_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from azure.ai.ml.entities._job.automl.tabular import ForecastingJob
1919

2020

21+
@pytest.mark.automl_test
2122
@pytest.mark.unittest
2223
class TestAutoMLForecasting:
2324
def test_forecasting_task(self):

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_forecasting_settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
from azure.ai.ml.entities._job.automl.tabular.forecasting_settings import ForecastingSettings
1818

1919

20+
@pytest.mark.automl_test
2021
@pytest.mark.unittest
2122
class TestForecastingSettings:
2223
@pytest.mark.parametrize(

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_regression_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from azure.ai.ml.entities._job.automl.tabular import RegressionJob
1414

1515

16+
@pytest.mark.automl_test
1617
@pytest.mark.unittest
1718
class TestAutoMLRegression:
1819
def test_regression_task(self):

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_setsearchspace.py

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from azure.ai.ml.exceptions import ValidationException
99

1010

11+
@pytest.mark.automl_test
1112
@pytest.mark.parametrize(
1213
"task_name, expected_type",
1314
[(image_classification, ImageClassificationSearchSpace), (image_object_detection, ImageObjectDetectionSearchSpace)],
@@ -54,6 +55,7 @@ def test_searchspace(task_name, expected_type):
5455
assert len(automl_job.search_space) == 2
5556

5657

58+
@pytest.mark.automl_test
5759
@pytest.mark.parametrize(
5860
"task_name",
5961
[

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_tabular_featurization_settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
from azure.ai.ml.entities._job.automl.tabular import ColumnTransformer, TabularFeaturizationSettings
88

99

10+
@pytest.mark.automl_test
1011
@pytest.mark.unittest
1112
class TestFeaturizationSettings:
1213
def test_to_rest(self) -> None:

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_tabular_limit_settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from azure.ai.ml.entities._job.automl.tabular import TabularLimitSettings
55

66

7+
@pytest.mark.automl_test
78
@pytest.mark.unittest
89
class TestLimitSettings:
910
def test_limit_from_rest(self):

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_tabular_n_cross_validation_settings.py

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from azure.ai.ml.entities._job.automl.tabular.regression_job import RegressionJob
1313

1414

15+
@pytest.mark.automl_test
1516
@pytest.mark.unittest
1617
class TestNCrossValidationSettings:
1718
JOBS = [classification, regression, forecasting]

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_text_classification_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
2828

2929

30+
@pytest.mark.automl_test
3031
@pytest.mark.unittest
3132
class TestAutoMLTextClassificationJob:
3233
"""Tests for AutoML NLP Text Classification Job."""

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_text_classification_multilabel_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
3131

3232

33+
@pytest.mark.automl_test
3334
@pytest.mark.unittest
3435
class TestAutoMLTextClassificationMultilabelJob:
3536
"""Tests for AutoML NLP Text Classification Multilabel Job."""

sdk/ml/azure-ai-ml/tests/automl_job/unittests/test_text_ner_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from azure.ai.ml.sweep import BanditPolicy, Choice, Uniform
3030

3131

32+
@pytest.mark.automl_test
3233
@pytest.mark.unittest
3334
class TestAutoMLTextNerJob:
3435
"""Tests for AutoML NLP Text NER Job."""

sdk/ml/azure-ai-ml/tests/batch_online_common/unittests/test_code_configuration.py

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from azure.ai.ml.entities import CodeConfiguration
44

55

6+
@pytest.mark.production_experience_test
67
@pytest.mark.unittest
78
class TestCodeConfiguration:
89
def test_scoring_script_missing_throw(self) -> None:

sdk/ml/azure-ai-ml/tests/batch_online_common/unittests/test_deployment_entity.py

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from azure.ai.ml.entities._job.resource_configuration import ResourceConfiguration
2626

2727

28+
@pytest.mark.production_experience_test
2829
@pytest.mark.unittest
2930
class TestDeploymentSanity:
3031
def test_instantiate_OnlineEndpoint_fail(self) -> None:

sdk/ml/azure-ai-ml/tests/batch_online_common/unittests/test_endpoint_entity.py

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from azure.ai.ml.entities import BatchEndpoint, Endpoint, ManagedOnlineDeployment, OnlineEndpoint
77

88

9+
@pytest.mark.production_experience_test
910
@pytest.mark.unittest
1011
class TestOnlineEndpointYAML:
1112
SIMPLE_ENDPOINT_WITH_BLUE_BAD = "tests/test_configs/endpoints/online/online_endpoint_create_aks_bad.yml"

sdk/ml/azure-ai-ml/tests/batch_services/e2etests/test_batch_deployment.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def deployEndpointAndDeployment(client: MLClient, endpoint: BatchEndpoint, deplo
4040
reason="Tests failing in internal automation due to lack of quota. Cannot record or run in live mode."
4141
)
4242
@pytest.mark.usefixtures("recorded_test")
43+
@pytest.mark.production_experience_test
4344
class TestBatchDeployment(AzureRecordedTestCase):
4445
@pytest.mark.e2etest
4546
@pytest.mark.skip(reason="TODO (1546262): Test failing constantly, so disabling it")

sdk/ml/azure-ai-ml/tests/batch_services/e2etests/test_batch_endpoint.py

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212

1313
@pytest.mark.e2etest
14+
@pytest.mark.production_experience_test
1415
class TestBatchEndpoint(AzureRecordedTestCase):
1516
@pytest.mark.skip(
1617
reason="Tests failing in internal automation due to lack of quota. Cannot record or run in live mode."

sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_deployment.py

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def mock_batch_deployment_operations(
7676

7777

7878
@pytest.mark.unittest
79+
@pytest.mark.production_experience_test
7980
class TestBatchDeploymentOperations:
8081
def test_batch_deployment_create(
8182
self,

sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_deployment_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def load_batch_deployment_entity_from_yaml(path: str, context={}) -> BatchDeploy
2020

2121

2222
@pytest.mark.unittest
23+
@pytest.mark.production_experience_test
2324
class TestBatchDeploymentSchema:
2425
def test_serialize_batch_deployment(self) -> None:
2526
test_path = "./tests/test_configs/deployments/batch/batch_deployment_1.yaml"

sdk/ml/azure-ai-ml/tests/batch_services/unittests/test_batch_endpoints.py

+1
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ def mock_batch_endpoint_operations(
159159

160160

161161
@pytest.mark.unittest
162+
@pytest.mark.production_experience_test
162163
class TestBatchEndpointOperations:
163164
def test_batch_endpoint_create(
164165
self,

sdk/ml/azure-ai-ml/tests/code_asset/e2etests/test_code.py

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ def code_asset_path(tmp_path: Path) -> str:
2020

2121
@pytest.mark.e2etest
2222
@pytest.mark.usefixtures("recorded_test", "mock_code_hash")
23+
@pytest.mark.core_sdk_test
2324
class TestCode(AzureRecordedTestCase):
2425
def test_create_and_get(self, client: MLClient, code_asset_path: str, randstr: Callable[[], str]) -> None:
2526
name = randstr("name")

sdk/ml/azure-ai-ml/tests/code_asset/unittests/test_code_operations.py

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ def mock_code_operation(
3939

4040

4141
@pytest.mark.unittest
42+
@pytest.mark.core_sdk_test
4243
class TestCodeOperations:
4344
def test_create(
4445
self,

sdk/ml/azure-ai-ml/tests/command_job/e2etests/test_command_job.py

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ def bodiless_matching(test_proxy):
4040
"mock_asset_name",
4141
"enable_environment_id_arm_expansion",
4242
)
43+
@pytest.mark.training_experiences_test
4344
class TestCommandJob(AzureRecordedTestCase):
4445
@pytest.mark.skip(
4546
"Investigate The network connectivity issue encountered for 'Microsoft.MachineLearningServices'; cannot fulfill the request."

sdk/ml/azure-ai-ml/tests/command_job/unittests/test_command_job_entity.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919

2020
@pytest.mark.unittest
21+
@pytest.mark.training_experiences_test
2122
class TestCommandJobEntity:
2223
def test_job_name_generator(self):
2324
job1 = generate_job_name()

sdk/ml/azure-ai-ml/tests/command_job/unittests/test_command_job_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121

2222

2323
@pytest.mark.unittest
24+
@pytest.mark.training_experiences_test
2425
class TestCommandJob:
2526
def test_deserialize(self):
2627
test_path = "./tests/test_configs/command_job/command_job_test.yml"

sdk/ml/azure-ai-ml/tests/component/e2etests/test_component.py

+1
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ def assert_component_basic_workflow(
132132
"mock_component_hash",
133133
"enable_environment_id_arm_expansion",
134134
)
135+
@pytest.mark.pipeline_test
135136
class TestComponent(AzureRecordedTestCase):
136137
def test_command_component(self, client: MLClient, randstr: Callable[[str], str]) -> None:
137138
expected_dict = {

sdk/ml/azure-ai-ml/tests/component/unittests/test_automl_component.py

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313

1414
@pytest.mark.timeout(_COMPONENT_TIMEOUT_SECOND)
1515
@pytest.mark.unittest
16+
@pytest.mark.pipeline_test
1617
class TestAutoMLComponent:
1718
def test_serialize_deserialize_automl_component(self, mock_machinelearning_client: MLClient):
1819
test_path = "./tests/test_configs/components/automl/classification.yaml"

sdk/ml/azure-ai-ml/tests/component/unittests/test_command_component_entity.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
@pytest.mark.timeout(_COMPONENT_TIMEOUT_SECOND)
2020
@pytest.mark.unittest
21+
@pytest.mark.pipeline_test
2122
class TestCommandComponentEntity:
2223
def test_component_load(self):
2324
# code is specified in yaml, value is respected

sdk/ml/azure-ai-ml/tests/component/unittests/test_component_operations.py

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def mock_component_operation(
3333

3434
@pytest.mark.timeout(_COMPONENT_TIMEOUT_SECOND)
3535
@pytest.mark.unittest
36+
@pytest.mark.pipeline_test
3637
class TestComponentOperation:
3738
def test_create(self, mock_component_operation: ComponentOperations) -> None:
3839
component = CommandComponent(

sdk/ml/azure-ai-ml/tests/component/unittests/test_component_schema.py

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def load_component_entity_from_rest_json(path) -> Component:
9393

9494
@pytest.mark.timeout(_COMPONENT_TIMEOUT_SECOND)
9595
@pytest.mark.unittest
96+
@pytest.mark.pipeline_test
9697
class TestCommandComponent:
9798
def test_serialize_deserialize_basic(self, mock_machinelearning_client: MLClient):
9899
test_path = "./tests/test_configs/components/helloworld_component.yml"

sdk/ml/azure-ai-ml/tests/component/unittests/test_component_validate.py

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
@pytest.mark.timeout(_COMPONENT_TIMEOUT_SECOND)
2020
@pytest.mark.unittest
21+
@pytest.mark.pipeline_test
2122
class TestComponentValidate:
2223
def test_component_name_validate(self):
2324
invalid_component_names = [

0 commit comments

Comments
 (0)