Skip to content

Commit 979e784

Browse files
authored
fix environment archive and restore (Azure#39818)
* neglect environment.properties.stage from archive * enable environment archive e2e test * update model archive recording
1 parent 3703a8f commit 979e784

File tree

4 files changed

+3
-2
lines changed

4 files changed

+3
-2
lines changed

sdk/ml/azure-ai-ml/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
### Bugs Fixed
55
- #37464 - Allowing to update a component in register with anonymousEnvironment environment.
66
- #39744 - Fixing a serialization issue in RecurrencePattern schedule.
7+
- Fix environment archiving and restore
78

89
## 1.25.0 (2025-02-11)
910

sdk/ml/azure-ai-ml/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/ml/azure-ai-ml",
5-
"Tag": "python/ml/azure-ai-ml_71dd8cba32"
5+
"Tag": "python/ml/azure-ai-ml_8d69a348d2"
66
}

sdk/ml/azure-ai-ml/azure/ai/ml/_utils/_asset_utils.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,6 +1017,7 @@ def _archive_or_restore(
10171017
)
10181018
)
10191019
version_resource.properties.is_archived = is_archived
1020+
version_resource.properties.stage = None
10201021
( # pylint: disable=expression-not-assigned
10211022
version_operation.begin_create_or_update(
10221023
name=name,

sdk/ml/azure-ai-ml/tests/environment/e2etests/test_environment.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ def get_environment_list():
182182
client.environments.restore(name=name, version=version_archived)
183183
assert version_archived in get_environment_list()
184184

185-
@pytest.mark.skip(reason="Task 1791832: Inefficient, possibly causing testing pipeline to time out.")
186185
def test_environment_archive_restore_container(self, client: MLClient, env_name: Callable[[str], str]) -> None:
187186
name = env_name("name")
188187
params_override = [{"name": name}]

0 commit comments

Comments
 (0)