From 3983bfc5bc723c1e2bd5d4e85138665e144f8554 Mon Sep 17 00:00:00 2001 From: Rujun Chen Date: Thu, 11 Jun 2026 17:11:19 +0800 Subject: [PATCH] Remove pip install termcolor from spring pipelines for network isolation termcolor is only used in sdk/spring/scripts/log.py, which already falls back gracefully via try/except ImportError when termcolor is absent. Removing the install avoids external PyPI access under the upcoming CI network isolation policy (PyPI access failure). --- sdk/spring/compatibility-tests.yml | 6 ------ sdk/spring/pipeline/compatibility-tests-job.yml | 4 ---- sdk/spring/pipeline/monitor-tests-job.yml | 3 --- sdk/spring/spring-cloud-azure-starter-monitor/tests.yml | 3 --- 4 files changed, 16 deletions(-) diff --git a/sdk/spring/compatibility-tests.yml b/sdk/spring/compatibility-tests.yml index bc2fdc5b3d0d..f829ccb46208 100644 --- a/sdk/spring/compatibility-tests.yml +++ b/sdk/spring/compatibility-tests.yml @@ -21,9 +21,6 @@ stages: - SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION GenerateVMJobs: true PreGenerationSteps: - - script: | - python -m pip install termcolor - displayName: 'Install python module' - script: | python ./sdk/spring/scripts/compatibility_update_supported_version_matrix_json.py --target-version-prefix 4. --use-the-latest-version yes displayName: 'Update supported Spring versions' @@ -44,9 +41,6 @@ stages: - SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION GenerateVMJobs: true PreGenerationSteps: - - script: | - python -m pip install termcolor - displayName: 'Install python module' - script: | python ./sdk/spring/scripts/compatibility_update_supported_version_matrix_json.py --target-version-prefix 4. --use-the-latest-version no displayName: 'Update supported Spring versions' diff --git a/sdk/spring/pipeline/compatibility-tests-job.yml b/sdk/spring/pipeline/compatibility-tests-job.yml index 63354e0c6524..6f931885329f 100644 --- a/sdk/spring/pipeline/compatibility-tests-job.yml +++ b/sdk/spring/pipeline/compatibility-tests-job.yml @@ -78,10 +78,6 @@ jobs: jdkVersionOption: $(JavaTestVersion) jdkArchitectureOption: 'x64' publishJUnitResults: false - - script: | - python -m pip install termcolor - displayName: 'Install python module' - condition: ne(variables['SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION'], '') - bash: | echo "##vso[task.setVariable variable=SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_CLOUD_VERSION]$(python ./sdk/spring/scripts/compatibility_get_spring_cloud_version.py -b $(SPRING_CLOUD_AZURE_TEST_SUPPORTED_SPRING_BOOT_VERSION))" displayName: 'Set supported Spring version to environment variables' diff --git a/sdk/spring/pipeline/monitor-tests-job.yml b/sdk/spring/pipeline/monitor-tests-job.yml index edba8cddba32..8284baed64a6 100644 --- a/sdk/spring/pipeline/monitor-tests-job.yml +++ b/sdk/spring/pipeline/monitor-tests-job.yml @@ -27,9 +27,6 @@ jobs: - 'sdk/tools/linting-extensions' - '.vscode' - template: /eng/pipelines/templates/steps/maven-authenticate.yml - - script: | - python -m pip install termcolor - displayName: 'Python module install' - script: | python ./sdk/spring/scripts/spring_monitor_version_substitution.py -b $(TEST_SPRING_BOOT_VERSION) displayName: 'Replace Spring version' diff --git a/sdk/spring/spring-cloud-azure-starter-monitor/tests.yml b/sdk/spring/spring-cloud-azure-starter-monitor/tests.yml index 6252b1e8d67c..da312418a71c 100644 --- a/sdk/spring/spring-cloud-azure-starter-monitor/tests.yml +++ b/sdk/spring/spring-cloud-azure-starter-monitor/tests.yml @@ -21,9 +21,6 @@ stages: - TEST_SPRING_BOOT_VERSION GenerateVMJobs: true PreGenerationSteps: - - script: | - python -m pip install termcolor - displayName: 'python module install' - script: | python ./sdk/spring/scripts/monitor_update_monitor_matrix_json.py displayName: 'update test version'