Skip to content

Commit 1380cc4

Browse files
Fixed environment-scenario and component-scenario tests (#9882)
* Bump version to 2.43.0 in setup.py * Add release notes for version 2.43.0 Update CHANGELOG with release date and version for Azure Machine Learning CLI. * Update azure-ai-ml version to 1.33.0 * Fixed environment-scenario and component-scenario tests to point to correct registry and updated assertions based on current state of registry. * Update requirements.txt * Change version to 'Unreleased' in CHANGELOG Updated the changelog to mark the version as unreleased. * Downgrade version from 2.43.0 to 2.42.0 * updated the nvironment show registry test to use a different registry and environment that we know exists, and updated the assertions accordingly. Also updated the component list registry and component container list registry tests to reflect the expected number of components in the registry.
1 parent 7c393c5 commit 1380cc4

14 files changed

Lines changed: 1614 additions & 52394 deletions

src/machinelearningservices/azext_mlv2/tests/latest/recordings/test_component.yaml

Lines changed: 565 additions & 995 deletions
Large diffs are not rendered by default.

src/machinelearningservices/azext_mlv2/tests/latest/recordings/test_component_archive_registry.yaml

Lines changed: 63 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -9,43 +9,46 @@ interactions:
99
Connection:
1010
- keep-alive
1111
User-Agent:
12-
- azureml-cli-v2/0.0.139 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.8
13-
(Windows-10-10.0.22621-SP0)
12+
- azureml-cli-v2/2.38.1 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.11.9
13+
(Windows-10-10.0.26200-SP0)
1414
method: GET
15-
uri: https://eastus.api.azureml.ms/registrymanagement/v1.0/registries/bani-reg-wentral/discovery
15+
uri: https://eastus.api.azureml.ms/registrymanagement/v1.0/registries/dsvm-test/discovery
1616
response:
1717
body:
18-
string: '{"registryId": "77a4b826-8bce-49fa-9c04-7f84598c474f", "registryName":
19-
"bani-reg-wentral", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "primaryRegion":
20-
"westcentralus", "regions": ["westcentralus"], "subscriptionId": "2d385bf4-0756-4a76-aa95-28bf9ed3b625",
21-
"resourceGroup": "bani-reg-ws", "workspaceName": null, "primaryRegionResourceProviderUri":
22-
"https://cert-westcentralus.experiments.azureml.net/", "registryFqdns": {"westcentralus":
23-
{"uri": "https://77a4b826-8bce-49fa-9c04-7f84598c474f.registry.westcentralus.privatelink.api.azureml.ms"}}}'
18+
string: '{"registryId": "93595ad9-6099-4324-a067-a21a6c3fa6ba", "registryName":
19+
"dsvm-test", "tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47", "primaryRegion":
20+
"eastus", "regions": ["eastus"], "subscriptionId": "00000000-0000-0000-0000-000000000000",
21+
"resourceGroup": "testrg", "workspaceName": null, "primaryRegionResourceProviderUri":
22+
"https://cert-eastus.experiments.azureml.net/", "registryFqdns": {"eastus":
23+
{"uri": "https://eastus.api.azureml.ms"}}, "intellectualPropertyPublisher":
24+
null, "isTradeRestricted": false}'
2425
headers:
26+
azureml-served-by-cluster:
27+
- vienna-eastus-01
2528
connection:
2629
- keep-alive
2730
content-length:
28-
- '553'
31+
- '515'
2932
content-type:
3033
- application/json; charset=utf-8
3134
date:
32-
- Tue, 06 Dec 2022 21:14:50 GMT
35+
- Tue, 19 May 2026 06:41:50 GMT
36+
mise-correlation-id:
37+
- 959dd0ef-db6d-4f60-a1f2-f8bc4e79f2c7
3338
request-context:
3439
- appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d
3540
strict-transport-security:
36-
- max-age=15724800; includeSubDomains; preload
41+
- max-age=31536000; includeSubDomains; preload
3742
transfer-encoding:
3843
- chunked
3944
vary:
4045
- Accept-Encoding
41-
x-aml-cluster:
42-
- vienna-eastus-02
4346
x-content-type-options:
4447
- nosniff
4548
x-ms-response-type:
4649
- standard
4750
x-request-time:
48-
- '0.589'
51+
- '0.234'
4952
status:
5053
code: 200
5154
message: OK
@@ -59,84 +62,66 @@ interactions:
5962
Connection:
6063
- keep-alive
6164
User-Agent:
62-
- azureml-cli-v2/0.0.139 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.8
63-
(Windows-10-10.0.22621-SP0)
65+
- azureml-cli-v2/2.38.1 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.11.9
66+
(Windows-10-10.0.26200-SP0)
6467
method: GET
65-
uri: https://cert-westcentralus.experiments.azureml.net/mferp/managementfrontend/subscriptions/2d385bf4-0756-4a76-aa95-28bf9ed3b625/resourceGroups/000000000000000/providers/Microsoft.MachineLearningServices/registries/bani-reg-wentral/components/000000000000000/versions/1.0.12?api-version=0000-00-00
68+
uri: https://cert-eastus.experiments.azureml.net/mferp/managementfrontend/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/000000000000000/providers/Microsoft.MachineLearningServices/registries/dsvm-test/components/000000000000000/versions/1.0.12?api-version=0000-00-00
6669
response:
6770
body:
68-
string: '{"id": "azureml://registries/bani-reg-wentral/components/batchscore/versions/1.0.12",
71+
string: '{"id": "azureml://registries/dsvm-test/components/batchscore/versions/1.0.12",
6972
"name": "1.0.12", "type": "Microsoft.MachineLearningServices/registries/components/versions",
70-
"properties": {"description": null, "tags": {}, "properties": {}, "isArchived":
71-
true, "isAnonymous": false, "componentSpec": {"name": "batchscore", "version":
72-
"1.0.12", "display_name": "Batch scoring component", "is_deterministic": "False",
73-
"type": "parallel", "description": "A parallel component for batch scroing",
74-
"inputs": {"job_data_path": {"type": "mltable", "optional": "False", "description":
75-
"The data to be split and scored in parallel."}, "online_endpoint_url": {"type":
76-
"string", "optional": "False"}, "azureml_model_deployment": {"type": "string",
77-
"optional": "False"}, "debug_mode": {"type": "boolean", "optional": "False",
78-
"default": "False"}}, "outputs": {"job_out_path": {"type": "uri_file"}}, "task":
79-
{"code": "azureml://registries/bani-reg-wentral/codes/e5d984a2-a1d5-4838-836e-ef0405655615/versions/1",
80-
"environment": "azureml://registries/bani-reg-wentral/environments/my-env/versions/1",
81-
"program_arguments": "--debug_mode ${{inputs.debug_mode}} --online_endpoint_url
82-
${{inputs.online_endpoint_url}} --azureml_model_deployment ${{inputs.azureml_model_deployment}}",
83-
"entry_script": "parallel_score.py", "type": "run_function", "append_row_to":
84-
"${{outputs.job_out_path}}"}, "input_data": "${{inputs.job_data_path}}", "error_threshold":
85-
"-1", "logging_level": "DEBUG", "max_concurrency_per_instance": "16", "mini_batch_error_threshold":
86-
"5", "mini_batch_size": "3072", "retry_settings": {"max_retries": "2", "timeout":
87-
"600"}, "$schema": "http://azureml/sdk-2-0/ParallelComponent.json"}}, "systemData":
88-
{"createdAt": "2022-11-21T22:42:49.1292965+00:00", "createdBy": "Banibrata
89-
De", "createdByType": "User", "lastModifiedAt": "2022-12-06T21:08:57.7750625+00:00",
90-
"lastModifiedBy": "Banibrata De", "lastModifiedByType": "User"}}'
73+
"properties": {"description": null, "tags": {}, "properties": {"client_component_hash":
74+
"bbaf8f9b-3037-523c-4a56-7ca6d8a2a04e"}, "isArchived": false, "isAnonymous":
75+
false, "componentSpec": {"$schema": "https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json",
76+
"name": "batchscore", "version": "1.0.12", "display_name": "batchscore", "is_deterministic":
77+
"True", "type": "command", "description": "Test component", "outputs": {"component_out_path":
78+
{"type": "uri_folder"}}, "inputs": {"component_in_number": {"type": "number",
79+
"optional": "True", "default": "10.99", "description": "A number"}}, "environment":
80+
"azureml://registries/azureml/environments/sklearn-1.5/versions/45", "resources":
81+
{"instance_count": "1"}, "command": "echo Hello World"}}, "systemData": {"createdAt":
82+
"2026-05-19T03:10:24.6266905+00:00", "createdBy": "Lava Kumar Repala", "createdByType":
83+
"User", "lastModifiedAt": "2026-05-19T05:41:58.2662119+00:00", "lastModifiedBy":
84+
"Lava Kumar Repala", "lastModifiedByType": "User"}}'
9185
headers:
86+
azureml-served-by-cluster:
87+
- vienna-eastus-01
9288
connection:
9389
- keep-alive
9490
content-length:
95-
- '1929'
91+
- '1187'
9692
content-type:
9793
- application/json; charset=utf-8
9894
date:
99-
- Tue, 06 Dec 2022 21:14:51 GMT
95+
- Tue, 19 May 2026 06:41:51 GMT
96+
mise-correlation-id:
97+
- f25c380c-5ebf-4d14-89b0-239b9752cc21
10098
request-context:
10199
- appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d
102-
server-timing:
103-
- traceparent;desc="00-a126dc9c0dd5add0bd9c60c8c9f9a656-b737085e631898e9-00"
104100
strict-transport-security:
105-
- max-age=15724800; includeSubDomains; preload
101+
- max-age=31536000; includeSubDomains; preload
106102
transfer-encoding:
107103
- chunked
108104
vary:
109105
- Accept-Encoding
110-
x-aml-cluster:
111-
- vienna-westcentralus-01
112106
x-content-type-options:
113107
- nosniff
114-
- nosniff
115108
x-ms-response-type:
116109
- standard
117110
x-request-time:
118-
- '0.904'
111+
- '0.259'
119112
status:
120113
code: 200
121114
message: OK
122115
- request:
123-
body: '{"properties": {"properties": {}, "tags": {}, "isAnonymous": false, "isArchived":
124-
true, "componentSpec": {"name": "batchscore", "version": "1.0.12", "display_name":
125-
"Batch scoring component", "is_deterministic": "False", "type": "parallel",
126-
"description": "A parallel component for batch scroing", "inputs": {"job_data_path":
127-
{"type": "mltable", "optional": "False", "description": "The data to be split
128-
and scored in parallel."}, "online_endpoint_url": {"type": "string", "optional":
129-
"False"}, "azureml_model_deployment": {"type": "string", "optional": "False"},
130-
"debug_mode": {"type": "boolean", "optional": "False", "default": "False"}},
131-
"outputs": {"job_out_path": {"type": "uri_file"}}, "task": {"code": "azureml://registries/bani-reg-wentral/codes/e5d984a2-a1d5-4838-836e-ef0405655615/versions/1",
132-
"environment": "azureml://registries/bani-reg-wentral/environments/my-env/versions/1",
133-
"program_arguments": "--debug_mode ${{inputs.debug_mode}} --online_endpoint_url
134-
${{inputs.online_endpoint_url}} --azureml_model_deployment ${{inputs.azureml_model_deployment}}",
135-
"entry_script": "parallel_score.py", "type": "run_function", "append_row_to":
136-
"${{outputs.job_out_path}}"}, "input_data": "${{inputs.job_data_path}}", "error_threshold":
137-
"-1", "logging_level": "DEBUG", "max_concurrency_per_instance": "16", "mini_batch_error_threshold":
138-
"5", "mini_batch_size": "3072", "retry_settings": {"max_retries": "2", "timeout":
139-
"600"}, "$schema": "http://azureml/sdk-2-0/ParallelComponent.json"}}}'
116+
body: '{"properties": {"properties": {"client_component_hash": "bbaf8f9b-3037-523c-4a56-7ca6d8a2a04e"},
117+
"tags": {}, "isAnonymous": false, "isArchived": true, "componentSpec": {"$schema":
118+
"https://azuremlschemas.azureedge.net/latest/commandComponent.schema.json",
119+
"name": "batchscore", "version": "1.0.12", "display_name": "batchscore", "is_deterministic":
120+
"True", "type": "command", "description": "Test component", "outputs": {"component_out_path":
121+
{"type": "uri_folder"}}, "inputs": {"component_in_number": {"type": "number",
122+
"optional": "True", "default": "10.99", "description": "A number"}}, "environment":
123+
"azureml://registries/azureml/environments/sklearn-1.5/versions/45", "resources":
124+
{"instance_count": "1"}, "command": "echo Hello World"}}}'
140125
headers:
141126
Accept:
142127
- application/json
@@ -145,81 +130,44 @@ interactions:
145130
Connection:
146131
- keep-alive
147132
Content-Length:
148-
- '1490'
133+
- '744'
149134
Content-Type:
150135
- application/json
151136
User-Agent:
152-
- azureml-cli-v2/0.0.139 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.8
153-
(Windows-10-10.0.22621-SP0)
137+
- azureml-cli-v2/2.38.1 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.11.9
138+
(Windows-10-10.0.26200-SP0)
154139
method: PUT
155-
uri: https://cert-westcentralus.experiments.azureml.net/mferp/managementfrontend/subscriptions/2d385bf4-0756-4a76-aa95-28bf9ed3b625/resourceGroups/000000000000000/providers/Microsoft.MachineLearningServices/registries/bani-reg-wentral/components/000000000000000/versions/1.0.12?api-version=0000-00-00
140+
uri: https://cert-eastus.experiments.azureml.net/mferp/managementfrontend/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/000000000000000/providers/Microsoft.MachineLearningServices/registries/dsvm-test/components/000000000000000/versions/1.0.12?api-version=0000-00-00
156141
response:
157142
body:
158143
string: 'null'
159144
headers:
145+
azureml-served-by-cluster:
146+
- vienna-eastus-02
160147
connection:
161148
- keep-alive
162149
content-length:
163150
- '4'
164151
content-type:
165152
- application/json; charset=utf-8
166153
date:
167-
- Tue, 06 Dec 2022 21:14:53 GMT
154+
- Tue, 19 May 2026 06:41:53 GMT
168155
location:
169-
- https://westcentralus.api.azureml.ms/assetstore/v1.0/operations/RCxLxfdWsDMb5HLgwXSfotuM_-dAtZ7Iiv62D3DCjw4
156+
- https://eastus.api.azureml.ms/assetstore/v1.0/operations/plehAJZmdj8SBaSvvKkepBA_sjIcKOy85D5N0A1GDlQ
157+
mise-correlation-id:
158+
- f5124ad5-8b88-4814-8d4e-123ac1a1c8ab
170159
request-context:
171160
- appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d
172161
strict-transport-security:
173-
- max-age=15724800; includeSubDomains; preload
174-
x-aml-cluster:
175-
- vienna-westcentralus-01
162+
- max-age=31536000; includeSubDomains; preload
176163
x-content-type-options:
177164
- nosniff
178165
x-ms-async-operation-timeout:
179166
- PT1H
180167
x-ms-response-type:
181168
- standard
182169
x-request-time:
183-
- '1.841'
184-
status:
185-
code: 202
186-
message: Accepted
187-
- request:
188-
body: null
189-
headers:
190-
Accept:
191-
- '*/*'
192-
Accept-Encoding:
193-
- gzip, deflate
194-
Connection:
195-
- keep-alive
196-
User-Agent:
197-
- azureml-cli-v2/0.0.139 azsdk-python-mgmt-machinelearningservices/0.1.0 Python/3.10.8
198-
(Windows-10-10.0.22621-SP0)
199-
method: GET
200-
uri: https://westcentralus.api.azureml.ms/assetstore/v1.0/operations/RCxLxfdWsDMb5HLgwXSfotuM_-dAtZ7Iiv62D3DCjw4
201-
response:
202-
body:
203-
string: ''
204-
headers:
205-
connection:
206-
- keep-alive
207-
content-length:
208-
- '0'
209-
date:
210-
- Tue, 06 Dec 2022 21:14:53 GMT
211-
request-context:
212-
- appId=cid-v1:2d2e8e63-272e-4b3c-8598-4ee570a0e70d
213-
strict-transport-security:
214-
- max-age=15724800; includeSubDomains; preload
215-
x-aml-cluster:
216-
- vienna-westcentralus-02
217-
x-content-type-options:
218-
- nosniff
219-
x-ms-response-type:
220-
- standard
221-
x-request-time:
222-
- '0.036'
170+
- '1.091'
223171
status:
224172
code: 202
225173
message: Accepted

0 commit comments

Comments
 (0)