Skip to content

ci: use pre-installed Azure CLI in ADO jobs - #2545

Merged
ranadeepsingh merged 1 commit into
masterfrom
brwals/bump-python-build-dep
Aug 1, 2026
Merged

ci: use pre-installed Azure CLI in ADO jobs#2545
ranadeepsingh merged 1 commit into
masterfrom
brwals/bump-python-build-dep

Conversation

@BrendanWalsh

@BrendanWalsh BrendanWalsh commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator

Problem

master now uses cached Python 3.11 in templates/update_cli.yml, so the original Python upgrade in this PR is obsolete. The shared template still runs python -m pip install azure-cli==2.88.0 in every job that includes it, even though the Microsoft-hosted Ubuntu 22.04 image already includes Azure CLI 2.88.0.

Change

  • Rebase onto the latest master
  • Keep the cached Python 3.11 setup from master
  • Remove the per-job Azure CLI pip install

Validation and impact

  • Fresh /azp run build 229176406 passed all 65 jobs with no failed tasks.
  • The refreshed timeline contains zero Install Azure CLI tasks; authenticated AzureCLI@2 tasks succeeded with the hosted CLI.
  • In comparison build 228845851, 62 Install Azure CLI tasks averaged 50.8 seconds each (3,151 seconds / 52.5 agent-minutes total).
  • In the refreshed run, the next setup task started a median 0.0 seconds after JavaToolInstaller, confirming roughly 51 seconds saved per affected job. Because jobs run in parallel, the expected wall-clock critical-path saving is about one minute.

Copilot AI review requested due to automatic review settings April 6, 2026 18:44
@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

Hey @BrendanWalsh 👋!
Thank you so much for contributing to our repository 🙌.
Someone from SynapseML Team will be reviewing this pull request soon.

We use semantic commit messages to streamline the release process.
Before your pull request can be merged, you should make sure your first commit and PR title start with a semantic prefix.
This helps us to create release messages and credit you for your hard work!

Examples of commit messages with semantic prefixes:

  • fix: Fix LightGBM crashes with empty partitions
  • feat: Make HTTP on Spark back-offs configurable
  • docs: Update Spark Serving usage
  • build: Add codecov support
  • perf: improve LightGBM memory usage
  • refactor: make python code generation rely on classes
  • style: Remove nulls from CNTKModel
  • test: Add test coverage for CNTKModel

To test your commit locally, please follow our guild on building from source.
Check out the developer guide for additional guidance on testing your change.

@github-actions

github-actions Bot commented Apr 6, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 UsePythonVersion from Python 3.8 to 3.10 (uses preinstalled agent Python instead of downloading 3.8).
  • Remove the pip install azure-cli==2.60.0 step so AzureCLI@2 uses the agent’s preinstalled az CLI.
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

@BrendanWalsh

Copy link
Copy Markdown
Collaborator Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines successfully started running 1 pipeline(s).

@codecov-commenter

codecov-commenter commented Apr 6, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.79%. Comparing base (e888e2d) to head (562e248).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2545   +/-   ##
=======================================
  Coverage   84.79%   84.79%           
=======================================
  Files         334      334           
  Lines       17806    17806           
  Branches     1623     1623           
=======================================
  Hits        15099    15099           
  Misses       2707     2707           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

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.
@ranadeepsingh
ranadeepsingh force-pushed the brwals/bump-python-build-dep branch from 60a6695 to 562e248 Compare August 1, 2026 06:46
@ranadeepsingh ranadeepsingh changed the title fix: bump Python 3.8 → 3.10 and drop redundant az cli install ci: use pre-installed Azure CLI in ADO jobs Aug 1, 2026
@ranadeepsingh

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@ranadeepsingh ranadeepsingh left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No blocking findings. After rebasing, the diff only removes the redundant Azure CLI 2.88.0 pip install; the hosted Ubuntu 22.04 image already provides the same version. ADO build 229176406 passed all 65 jobs. The removed step averaged 50.8 seconds across 62 jobs in the comparison build, or 52.5 agent-minutes per full run.

@ranadeepsingh
ranadeepsingh merged commit 7d9fabc into master Aug 1, 2026
78 checks passed
@ranadeepsingh
ranadeepsingh deleted the brwals/bump-python-build-dep branch August 1, 2026 08:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants