diff --git a/eng/tools/azure-sdk-tools/ci_tools/functions.py b/eng/tools/azure-sdk-tools/ci_tools/functions.py index 09295b829000..2d6a2b338fc7 100644 --- a/eng/tools/azure-sdk-tools/ci_tools/functions.py +++ b/eng/tools/azure-sdk-tools/ci_tools/functions.py @@ -55,7 +55,7 @@ "sdk/textanalytics/azure-ai-textanalytics", ] -TEST_COMPATIBILITY_MAP = {"azure-ai-ml": ">=3.7"} +TEST_COMPATIBILITY_MAP = {"azure-ai-ml": ">=3.7, !=3.14.*"} TEST_PYTHON_DISTRO_INCOMPATIBILITY_MAP = { "azure-storage-blob": "pypy", "azure-storage-queue": "pypy", diff --git a/sdk/ml/ci.yml b/sdk/ml/ci.yml index 82c4f5a25c82..060a9cc19baf 100644 --- a/sdk/ml/ci.yml +++ b/sdk/ml/ci.yml @@ -32,6 +32,13 @@ extends: ServiceDirectory: ml TestTimeoutInMinutes: 75 TestProxy: true + MatrixConfigs: + - Name: ai_ci_matrix + Path: sdk/ml/platform-matrix.json + Selection: sparse + GenerateVMJobs: true + MatrixFilters: + - PythonVersion=^(?!3\.14) # This is a short term solution to create API review for python azure-ml package only when running pipeline manually # Long term solution should be to have different versions on main branch and release branch for python package so APIView can have different revisions for each version. # Tracking issue: https://github.com/Azure/azure-sdk-for-python/issues/29196 diff --git a/sdk/ml/platform-matrix.json b/sdk/ml/platform-matrix.json new file mode 100644 index 000000000000..5729efe0ad67 --- /dev/null +++ b/sdk/ml/platform-matrix.json @@ -0,0 +1,64 @@ +{ + "displayNames": { + "--disablecov": "", + "false": "", + "true": "" + }, + "matrix": { + "Agent": { + "macos-latest": { "OSVmImage": "env:MACVMIMAGE", "Pool": "env:MACPOOL" }, + "ubuntu-24.04": { "OSVmImage": "env:LINUXVMIMAGE", "Pool": "env:LINUXPOOL" } + }, + "PythonVersion": [ "3.9", "3.11", "3.10" ], + "CoverageArg": "--disablecov", + "TestSamples": "false" + }, + "include": [ + { + "CoverageConfig": { + "ubuntu2404_39_coverage": { + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", + "PythonVersion": "3.9", + "CoverageArg": "", + "TestSamples": "false" + } + } + }, + { + "Config": { + "Ubuntu2404_312": { + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", + "PythonVersion": "3.12", + "CoverageArg": "--disablecov", + "TestSamples": "false" + } + } + }, + { + "Config": { + "sk_Ubuntu2404_310": { + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", + "PythonVersion": "3.10", + "CoverageArg": "--disablecov", + "TestSamples": "false", + "InjectedPackages": "semantic-kernel", + "UnsupportedToxEnvironments": "sdist,depends,latestdependency,mindependency,whl_no_aio" + } + } + }, + { + "Config": { + "Ubuntu2404_313": { + "OSVmImage": "env:LINUXVMIMAGE", + "Pool": "env:LINUXPOOL", + "PythonVersion": "3.13", + "CoverageArg": "--disablecov", + "TestSamples": "false" + } + } + } + ] +}