fix: bump Python 3.8 → 3.10 and drop redundant az cli install#2545
fix: bump Python 3.8 → 3.10 and drop redundant az cli install#2545BrendanWalsh wants to merge 1 commit intomasterfrom
Conversation
Python 3.8 is not pre-installed on the ubuntu-22.04 agent image (toolcache only has 3.10-3.14). Every job was downloading 3.8 from GitHub at runtime, which is fragile — build 213983677 hit a 502. Also removes the pip install azure-cli==2.60.0 step. The AzureCLI@2 task uses the agent's pre-installed az (currently 2.84.0), so this was actually downgrading it and wasting ~30s per job.
|
Hey @BrendanWalsh 👋! We use semantic commit messages to streamline the release process. Examples of commit messages with semantic prefixes:
To test your commit locally, please follow our guild on building from source. |
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Snapshot WarningsEnsure that dependencies are being submitted on PR branches and consider enabling retry-on-snapshot-warnings. See the documentation for more information and troubleshooting advice. Scanned FilesNone |
There was a problem hiding this comment.
Pull request overview
Updates the shared Azure DevOps pipeline template to better align with the Ubuntu 22.04 hosted agent toolset by avoiding fragile runtime downloads and redundant installs.
Changes:
- Bump
UsePythonVersionfrom Python 3.8 to 3.10 (uses preinstalled agent Python instead of downloading 3.8). - Remove the
pip install azure-cli==2.60.0step soAzureCLI@2uses the agent’s preinstalledazCLI.
Show a summary per file
| File | Description |
|---|---|
templates/update_cli.yml |
Switches Python selection to 3.10 and removes the pinned azure-cli pip install to reduce job overhead and failures. |
Copilot's findings
- Files reviewed: 1/1 changed files
- Comments generated: 0
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2545 +/- ##
==========================================
- Coverage 84.70% 84.66% -0.04%
==========================================
Files 335 335
Lines 17753 17753
Branches 1615 1615
==========================================
- Hits 15037 15031 -6
- Misses 2716 2722 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Problem
templates/update_cli.ymlpins Python 3.8, which is no longer pre-installed on theubuntu-22.04agent image (toolset-2204.json only includes 3.10-3.14). Every job downloads 3.8 from GitHub at runtime viaUsePythonVersion, which is fragile — build #213983677 hit a 502 and therecommendationjob failed.The template also
pip install azure-cli==2.60.0, which actually downgrades the agent's pre-installed az CLI (currently 2.84.0) and wastes ~30s per job.Changes
pip install azure-cli==2.60.0: TheAzureCLI@2task already uses the agent's pre-installed az CLIImpact
This template is used by every major job (UnitTests, PythonTests, RTests, Publish, Databricks E2E, Fabric E2E, WebsiteSamples, Release). The change eliminates a runtime download and ~30s of az cli installation across all of them.
Audit
Checked all other build dependencies against the agent image toolset. No other wasteful downloads found — Java 8 uses
PreInstalled, conda env creation is necessary (isolated env), and other downloads (graphviz, ffmpeg, Spark tarball) are not on the image.