From f0f2a1f61f79b44d28c960ec7dcd698a899bf9f5 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Tue, 21 Jul 2026 10:37:24 -0500 Subject: [PATCH 1/4] move pip authenticate to first step for all pipelines --- eng/pack/templates/macos_64_env_gen.yml | 8 ++++---- eng/pack/templates/nix_arm64_env_gen.yml | 8 ++++---- eng/pack/templates/nix_env_gen.yml | 8 ++++---- eng/pack/templates/win_env_gen.yml | 8 ++++---- eng/templates/jobs/ci-dependency-check.yml | 6 +++--- eng/templates/jobs/ci-emulator-tests.yml | 8 ++++---- eng/templates/jobs/ci-library-unit-tests.yml | 6 +++--- eng/templates/jobs/ci-unit-tests.yml | 8 ++++---- eng/templates/official/jobs/build-library.yml | 6 +++--- eng/templates/official/jobs/ci-core-tools-tests.yml | 8 ++++---- eng/templates/official/jobs/ci-custom-image-tests.yml | 6 +++--- .../official/jobs/ci-docker-dedicated-tests.yml | 6 +++--- eng/templates/official/jobs/ci-e2e-tests.yml | 8 ++++---- eng/templates/official/jobs/ci-fc-tests.yml | 8 ++++---- eng/templates/official/release/build-artifacts.yml | 10 +++++----- eng/templates/official/release/bump-version.yml | 2 +- eng/templates/shared/build-steps.yml | 6 +++--- 17 files changed, 60 insertions(+), 60 deletions(-) diff --git a/eng/pack/templates/macos_64_env_gen.yml b/eng/pack/templates/macos_64_env_gen.yml index 725d97127..de3c65fa5 100644 --- a/eng/pack/templates/macos_64_env_gen.yml +++ b/eng/pack/templates/macos_64_env_gen.yml @@ -4,15 +4,15 @@ parameters: grpcBuild: '' steps: +- task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UsePythonVersion@0 inputs: versionSpec: ${{ parameters.pythonVersion }} allowUnstable: true addToPath: true -- task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - powershell: | # Parse the Python minor version $PY_VER = "$(pythonVersion)" diff --git a/eng/pack/templates/nix_arm64_env_gen.yml b/eng/pack/templates/nix_arm64_env_gen.yml index b1993d98a..ef68cae43 100644 --- a/eng/pack/templates/nix_arm64_env_gen.yml +++ b/eng/pack/templates/nix_arm64_env_gen.yml @@ -4,15 +4,15 @@ parameters: grpcBuild: '' steps: +- task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UsePythonVersion@0 inputs: versionSpec: ${{ parameters.pythonVersion }} allowUnstable: true addToPath: true -- task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - powershell: | # Parse the Python minor version $PY_VER = "$(pythonVersion)" diff --git a/eng/pack/templates/nix_env_gen.yml b/eng/pack/templates/nix_env_gen.yml index 468aecfd3..4f5278fb4 100644 --- a/eng/pack/templates/nix_env_gen.yml +++ b/eng/pack/templates/nix_env_gen.yml @@ -4,15 +4,15 @@ parameters: grpcBuild: '' steps: +- task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UsePythonVersion@0 inputs: versionSpec: ${{ parameters.pythonVersion }} allowUnstable: true addToPath: true -- task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - powershell: | # Parse the Python minor version $PY_VER = "$(pythonVersion)" diff --git a/eng/pack/templates/win_env_gen.yml b/eng/pack/templates/win_env_gen.yml index 32470a01a..1027cc85a 100644 --- a/eng/pack/templates/win_env_gen.yml +++ b/eng/pack/templates/win_env_gen.yml @@ -4,16 +4,16 @@ parameters: grpcBuild: '' steps: +- task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UsePythonVersion@0 inputs: versionSpec: ${{ parameters.pythonVersion }} allowUnstable: true architecture: ${{ parameters.architecture }} addToPath: true -- task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - powershell: | # Parse the Python minor version $PY_VER = "$(pythonVersion)" diff --git a/eng/templates/jobs/ci-dependency-check.yml b/eng/templates/jobs/ci-dependency-check.yml index 36115a7bc..a3bdaa54e 100644 --- a/eng/templates/jobs/ci-dependency-check.yml +++ b/eng/templates/jobs/ci-dependency-check.yml @@ -25,13 +25,13 @@ jobs: Python314: PYTHON_VERSION: '3.14' steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: $(PYTHON_VERSION) - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: ${{ parameters.ArtifactFeed }} + - task: UsePythonVersion@0 + inputs: + versionSpec: $(PYTHON_VERSION) - powershell: | $PY_VER = "$(PYTHON_VERSION)" Write-Host "Python version: $PY_VER" diff --git a/eng/templates/jobs/ci-emulator-tests.yml b/eng/templates/jobs/ci-emulator-tests.yml index ea91f8eda..10d563fa7 100644 --- a/eng/templates/jobs/ci-emulator-tests.yml +++ b/eng/templates/jobs/ci-emulator-tests.yml @@ -27,6 +27,10 @@ jobs: Python314: PYTHON_VERSION: '3.14' steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: ${{ parameters.ArtifactFeed }} - bash: | echo "Disk space before cleanup:" df -h @@ -68,10 +72,6 @@ jobs: - task: UsePythonVersion@0 inputs: versionSpec: $(PYTHON_VERSION) - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: ${{ parameters.ArtifactFeed }} - task: UseDotNet@2 displayName: 'Install .NET 10' inputs: diff --git a/eng/templates/jobs/ci-library-unit-tests.yml b/eng/templates/jobs/ci-library-unit-tests.yml index e8ac0823c..d7d0a1a6e 100644 --- a/eng/templates/jobs/ci-library-unit-tests.yml +++ b/eng/templates/jobs/ci-library-unit-tests.yml @@ -19,13 +19,13 @@ jobs: PYTHON_VERSION: '3.13' steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: $(PYTHON_VERSION) - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: ${{ parameters.ArtifactFeed }} + - task: UsePythonVersion@0 + inputs: + versionSpec: $(PYTHON_VERSION) - task: UseDotNet@2 displayName: 'Install .NET 10' inputs: diff --git a/eng/templates/jobs/ci-unit-tests.yml b/eng/templates/jobs/ci-unit-tests.yml index 42ecbd4f1..6db168801 100644 --- a/eng/templates/jobs/ci-unit-tests.yml +++ b/eng/templates/jobs/ci-unit-tests.yml @@ -27,6 +27,10 @@ jobs: Python314: PYTHON_VERSION: '3.14' steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: ${{ parameters.ArtifactFeed }} - bash: | echo "Disk space before cleanup:" df -h @@ -71,10 +75,6 @@ jobs: - task: UsePythonVersion@0 inputs: versionSpec: $(PYTHON_VERSION) - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: ${{ parameters.ArtifactFeed }} - task: UseDotNet@2 displayName: 'Install .NET 10' inputs: diff --git a/eng/templates/official/jobs/build-library.yml b/eng/templates/official/jobs/build-library.yml index 9fe9503c1..7d1400836 100644 --- a/eng/templates/official/jobs/build-library.yml +++ b/eng/templates/official/jobs/build-library.yml @@ -20,13 +20,13 @@ jobs: artifactName: "${{ parameters.ARTIFACT_NAME }}" steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: "3.13" - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: 'public/PythonWorker_PublicPackages' + - task: UsePythonVersion@0 + inputs: + versionSpec: "3.13" - bash: | python --version displayName: 'Check python version' diff --git a/eng/templates/official/jobs/ci-core-tools-tests.yml b/eng/templates/official/jobs/ci-core-tools-tests.yml index e20564355..61a723aab 100644 --- a/eng/templates/official/jobs/ci-core-tools-tests.yml +++ b/eng/templates/official/jobs/ci-core-tools-tests.yml @@ -8,15 +8,15 @@ jobs: os: linux steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UsePythonVersion@0 displayName: 'Install Python' inputs: versionSpec: "3.10" addToPath: true - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UseDotNet@2 displayName: 'Install DotNet 3' inputs: diff --git a/eng/templates/official/jobs/ci-custom-image-tests.yml b/eng/templates/official/jobs/ci-custom-image-tests.yml index 2db57e9c9..9592d9b1c 100644 --- a/eng/templates/official/jobs/ci-custom-image-tests.yml +++ b/eng/templates/official/jobs/ci-custom-image-tests.yml @@ -11,13 +11,13 @@ jobs: os: linux steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: $(CUSTOM_PYTHON_VERSION) - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' + - task: UsePythonVersion@0 + inputs: + versionSpec: $(CUSTOM_PYTHON_VERSION) - bash: | chmod +x eng/scripts/install-dependencies.sh diff --git a/eng/templates/official/jobs/ci-docker-dedicated-tests.yml b/eng/templates/official/jobs/ci-docker-dedicated-tests.yml index 86e218d0a..8e875ce4e 100644 --- a/eng/templates/official/jobs/ci-docker-dedicated-tests.yml +++ b/eng/templates/official/jobs/ci-docker-dedicated-tests.yml @@ -38,13 +38,13 @@ jobs: EVENTGRID_CONNECTION: $(LinuxEventGridConnectionKeyString312) steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: $(PYTHON_VERSION) - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' + - task: UsePythonVersion@0 + inputs: + versionSpec: $(PYTHON_VERSION) - bash: | chmod +x eng/scripts/install-dependencies.sh diff --git a/eng/templates/official/jobs/ci-e2e-tests.yml b/eng/templates/official/jobs/ci-e2e-tests.yml index 89ea0776c..0ab7381c3 100644 --- a/eng/templates/official/jobs/ci-e2e-tests.yml +++ b/eng/templates/official/jobs/ci-e2e-tests.yml @@ -50,6 +50,10 @@ jobs: EVENTGRID_URI: $(LinuxEventGridTopicUriString38) EVENTGRID_CONNECTION: $(LinuxEventGridConnectionKeyString38) steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - bash: | echo "Disk space before cleanup:" df -h @@ -80,10 +84,6 @@ jobs: - task: UsePythonVersion@0 inputs: versionSpec: $(PYTHON_VERSION) - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - task: UseDotNet@2 displayName: 'Install .NET 10' inputs: diff --git a/eng/templates/official/jobs/ci-fc-tests.yml b/eng/templates/official/jobs/ci-fc-tests.yml index d792bac84..f85c389e3 100644 --- a/eng/templates/official/jobs/ci-fc-tests.yml +++ b/eng/templates/official/jobs/ci-fc-tests.yml @@ -23,6 +23,10 @@ jobs: Python314: PYTHON_VERSION: '3.14' steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - bash: | echo "Disk space before cleanup:" df -h @@ -44,10 +48,6 @@ jobs: - task: UsePythonVersion@0 inputs: versionSpec: $(PYTHON_VERSION) - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - bash: | # Start Azurite storage emulator in the background diff --git a/eng/templates/official/release/build-artifacts.yml b/eng/templates/official/release/build-artifacts.yml index 7b49a145a..e3834b815 100644 --- a/eng/templates/official/release/build-artifacts.yml +++ b/eng/templates/official/release/build-artifacts.yml @@ -34,7 +34,7 @@ jobs: pool: name: 1es-pool-azfunc - image: 1es-ubuntu-22.04 + image: 1es-ubuntu-24.04-min os: linux templateContext: @@ -45,6 +45,10 @@ jobs: artifactName: ${{ parameters.artifactName }} steps: + - task: PipAuthenticate@1 + displayName: 'Pip Authenticate' + inputs: + artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - ${{ if ne(parameters.libraryVersion, '') }}: - checkout: none - bash: | @@ -58,10 +62,6 @@ jobs: - bash: | python --version displayName: 'Check python version' - - task: PipAuthenticate@1 - displayName: 'Pip Authenticate' - inputs: - artifactFeeds: 'internal/PythonWorker_Internal_PublicPackages' - bash: | python -m pip install -U pip python -m pip install build diff --git a/eng/templates/official/release/bump-version.yml b/eng/templates/official/release/bump-version.yml index 031278e6f..9af318ca5 100644 --- a/eng/templates/official/release/bump-version.yml +++ b/eng/templates/official/release/bump-version.yml @@ -46,7 +46,7 @@ jobs: displayName: 'Create Release Branch' pool: name: 1es-pool-azfunc - image: 1es-ubuntu-22.04 + image: 1es-ubuntu-24.04-min os: linux steps: - powershell: | diff --git a/eng/templates/shared/build-steps.yml b/eng/templates/shared/build-steps.yml index 2ca962aa7..5fcb66b75 100644 --- a/eng/templates/shared/build-steps.yml +++ b/eng/templates/shared/build-steps.yml @@ -5,13 +5,13 @@ parameters: ArtifactFeed: '' steps: - - task: UsePythonVersion@0 - inputs: - versionSpec: ${{ parameters.PYTHON_VERSION }} - task: PipAuthenticate@1 displayName: 'Pip Authenticate' inputs: artifactFeeds: ${{ parameters.ArtifactFeed }} + - task: UsePythonVersion@0 + inputs: + versionSpec: ${{ parameters.PYTHON_VERSION }} - bash: | python --version displayName: 'Check python version' From d91d5cc4ad9702a1711317b3e84f96263ce40c87 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Tue, 21 Jul 2026 11:03:25 -0500 Subject: [PATCH 2/4] fix release pipeline - remove min images --- eng/templates/official/release/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/official/release/publish-release.yml b/eng/templates/official/release/publish-release.yml index dd79d0b71..6e1bce22c 100644 --- a/eng/templates/official/release/publish-release.yml +++ b/eng/templates/official/release/publish-release.yml @@ -186,7 +186,7 @@ jobs: pool: name: 1es-pool-azfunc - image: 1es-ubuntu-24.04-min + image: 1es-ubuntu-22.04 os: linux steps: From b2028a5a7649beecc5f8901e0426500b186c9e73 Mon Sep 17 00:00:00 2001 From: Victoria Hall Date: Tue, 21 Jul 2026 14:40:01 -0500 Subject: [PATCH 3/4] update to 24 image --- eng/templates/official/release/build-artifacts.yml | 2 +- eng/templates/official/release/bump-version.yml | 2 +- eng/templates/official/release/publish-release.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/eng/templates/official/release/build-artifacts.yml b/eng/templates/official/release/build-artifacts.yml index e3834b815..647f74a9b 100644 --- a/eng/templates/official/release/build-artifacts.yml +++ b/eng/templates/official/release/build-artifacts.yml @@ -34,7 +34,7 @@ jobs: pool: name: 1es-pool-azfunc - image: 1es-ubuntu-24.04-min + image: 1es-ubuntu-24.04 os: linux templateContext: diff --git a/eng/templates/official/release/bump-version.yml b/eng/templates/official/release/bump-version.yml index 9af318ca5..726216c69 100644 --- a/eng/templates/official/release/bump-version.yml +++ b/eng/templates/official/release/bump-version.yml @@ -46,7 +46,7 @@ jobs: displayName: 'Create Release Branch' pool: name: 1es-pool-azfunc - image: 1es-ubuntu-24.04-min + image: 1es-ubuntu-24.04 os: linux steps: - powershell: | diff --git a/eng/templates/official/release/publish-release.yml b/eng/templates/official/release/publish-release.yml index 6e1bce22c..d2cc44120 100644 --- a/eng/templates/official/release/publish-release.yml +++ b/eng/templates/official/release/publish-release.yml @@ -236,7 +236,7 @@ jobs: pool: name: 1es-pool-azfunc - image: 1es-ubuntu-22.04 + image: 1es-ubuntu-24.04 os: linux steps: From 66360b5c46a8976851193071ba5a5ef6430abd26 Mon Sep 17 00:00:00 2001 From: hallvictoria <59299039+hallvictoria@users.noreply.github.com> Date: Wed, 22 Jul 2026 10:29:00 -0500 Subject: [PATCH 4/4] Update Ubuntu image version for release pipeline --- eng/templates/official/release/publish-release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eng/templates/official/release/publish-release.yml b/eng/templates/official/release/publish-release.yml index d2cc44120..6e327d12a 100644 --- a/eng/templates/official/release/publish-release.yml +++ b/eng/templates/official/release/publish-release.yml @@ -186,7 +186,7 @@ jobs: pool: name: 1es-pool-azfunc - image: 1es-ubuntu-22.04 + image: 1es-ubuntu-24.04 os: linux steps: