Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.63k stars 2.84k forks source link

Env dedup #38590

Closed achauhan-scc closed 1 day ago

achauhan-scc commented 3 days ago

Description

SDK will always try to update the latest version of an existing environment, if try to create a new version only in case of failure. Note - In case of Registry, SDK will continue to auto increment the version, due to temp folder error from API. Testing Results

Host Type Build Type Change Expected Result Actual Result
Workspace Image No environment Exists New environment created with version "1" Env created with version 1
Workspace Image Only description change version "1" description updated No new environment & desc updated
Workspace Image Image change New environment with version "2" & new image Version 2 created
Workspace Build Context No environment Exists New environment created with version "1" Env created with version 1
Workspace Build Context requirement.txt update New environment with version "2" Version 2 created
Workspace Build Context Only description change No new environment & version "2" updated Version 2 updated
Workspace Custom Conda No environment Exists New environment created with version "1" Env created with version 1
Workspace Custom Conda conda yaml update New environment with version "2" Version 2 created
Workspace Custom Conda Only description change No new environment & version "2" updated Version 2 updated
Registry Image No environment Exists New environment created with version "1" Env created with version 1
Registry Image Only description change New environment created New environment created
Registry Image Image change New environment created New environment created
Registry Build Context No environment Exists New environment created with version "1" Env created with version 1
Registry Build Context requirement.txt update New environment with version "2" Version 2 created
Registry Build Context Only description change New environment created New environment created
Registry Custom Conda No environment Exists New environment created with version "1" Env created with version 1
Registry Custom Conda conda yaml update New environment created Version 2 created
Registry Custom Conda Only description change New environment created New environment created

All SDK Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

azure-sdk commented 3 days ago

API change check

APIView has identified API level changes in this PR and created following API reviews.

azure-ai-ml