From 613baac414fab7e9cc18c972dc7982e44cfd8aa6 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Thu, 12 Nov 2026 16:11:45 -0800 Subject: [PATCH] Use cached Python 3.13 in Azure pipelines (#2018) ## Summary - Use Python 3.13 instead of Python 3.9 in both legacy Azure stable and pre-release pipelines. - Preserve build steps, release versions, supported extension Python versions, publication defaults, and manual approval gates. ## Why Monaco release build [496307](https://dev.azure.com/monacotools/Monaco/_build/results?buildId=496307) for `release/1.44.0` failed because Python 3.9 is not cached. The fallback installer downloads Python, but its pip upgrade is blocked by the proxy with HTTP 403. The failing Linux agents already contain Python 3.13. ## Validation - Prettier passes for both pipeline files. - Parsed YAML comparison confirms the only semantic changes are the two Python version selectors. - Executed both actual Python build commands from each pipeline on Python 3.13 against isolated stable `1.44.0` and pre-release `1.45.0` manifests; all pass with versions preserved. - `git diff --check` passes. ## Scope and rollout This PR targets `main`. The existing `release/1.44.0` branch will need the fix backported before its Monaco release is rerun. No pipelines were enabled or queued; DevDiv stable remains disabled. Weekly Azure runtime tracking is not implemented here: the pinned `check-python-versions` action only accepts GitHub Actions test matrices and explicitly excludes build-runtime pins. Adding these Azure YAML files to its `files` input would fail the weekly workflow. Supporting them requires a separate shared-action enhancement and a decision on build-runtime policy rather than reusing newest-RC test coverage. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 956d3afd-ae0b-486c-a60c-3a6276c23213 (cherry picked from commit 7ef5f5a166447aaac9eb4ac44a6d953a1ec4c5b1) --- build/azure-pipeline.pre-release.yml | 2 +- build/azure-pipeline.stable.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build/azure-pipeline.pre-release.yml b/build/azure-pipeline.pre-release.yml index c1142e584..cf9d173cc 100644 --- a/build/azure-pipeline.pre-release.yml +++ b/build/azure-pipeline.pre-release.yml @@ -71,7 +71,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.9' + versionSpec: '3.13' addToPath: true architecture: 'x64' displayName: Select Python version diff --git a/build/azure-pipeline.stable.yml b/build/azure-pipeline.stable.yml index 779bb57c4..2212b58f2 100644 --- a/build/azure-pipeline.stable.yml +++ b/build/azure-pipeline.stable.yml @@ -61,7 +61,7 @@ extends: - task: UsePythonVersion@0 inputs: - versionSpec: '3.9' + versionSpec: '3.13' addToPath: true architecture: 'x64' displayName: Select Python version