From f84523bf067b82975c984b015c97fcd20864b879 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 11:05:36 -0700 Subject: [PATCH 1/9] Align pipeline npm registry with .npmrc feed Update AZURE_ARTIFACTS_FEED to use the azure-public/python-environments feed to match the .npmrc configuration, fixing E401 auth errors during vsce package in CI. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 2 +- build/azure-devdiv-pipeline.pre-release.yml | 2 +- build/azure-devdiv-pipeline.stable.yml | 2 +- build/azure-pipeline.validation.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.npmrc b/.npmrc index 8e6d7620..414d096c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ # Force public npm registry to avoid CI auth (E401) when no token is provided registry=https://registry.npmjs.org/ # Do not require auth for public installs diff --git a/build/azure-devdiv-pipeline.pre-release.yml b/build/azure-devdiv-pipeline.pre-release.yml index 0a70f544..78d82d04 100644 --- a/build/azure-devdiv-pipeline.pre-release.yml +++ b/build/azure-devdiv-pipeline.pre-release.yml @@ -27,7 +27,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' + value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' parameters: - name: publishExtension diff --git a/build/azure-devdiv-pipeline.stable.yml b/build/azure-devdiv-pipeline.stable.yml index d6799f46..c36fc4da 100644 --- a/build/azure-devdiv-pipeline.stable.yml +++ b/build/azure-devdiv-pipeline.stable.yml @@ -24,7 +24,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' + value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' parameters: - name: publishExtension diff --git a/build/azure-pipeline.validation.yml b/build/azure-pipeline.validation.yml index f18090d6..e3a4e5ff 100644 --- a/build/azure-pipeline.validation.yml +++ b/build/azure-pipeline.validation.yml @@ -34,7 +34,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' + value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' parameters: - name: buildSteps From 4ab5df994ac88bd5b73d22178e0b95c1ea8f39fb Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 11:31:56 -0700 Subject: [PATCH 2/9] Revert .npmrc change Keep .npmrc pointing to the public python-environments feed for local dev. Only the pipeline YAML files should use msft_consumption. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 414d096c..8e6d7620 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ # Force public npm registry to avoid CI auth (E401) when no token is provided registry=https://registry.npmjs.org/ # Do not require auth for public installs From 046fca7b5c0d3c432b551914ce030ad1955bc9bb Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 11:40:37 -0700 Subject: [PATCH 3/9] Update .npmrc to use msft_consumption feed Align .npmrc with pipeline YAML files to use the same msft_consumption feed for @vscode scoped packages. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 8e6d7620..414d096c 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ # Force public npm registry to avoid CI auth (E401) when no token is provided registry=https://registry.npmjs.org/ # Do not require auth for public installs From 62e180b5870dc2101327656f62eb9ab1e8f75eaf Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 12:14:13 -0700 Subject: [PATCH 4/9] Revert .npmrc to python-environments feed The msft_consumption feed requires auth in CI pipelines, causing E401 during npm ci. Keep .npmrc on the public python-environments feed for both local dev and CI compatibility. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 414d096c..8e6d7620 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ # Force public npm registry to avoid CI auth (E401) when no token is provided registry=https://registry.npmjs.org/ # Do not require auth for public installs From 91ac7c37f9f5d17f7232d27a6e266720730e9175 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 12:46:18 -0700 Subject: [PATCH 5/9] Update .npmrc to msft_consumption with no-auth flag Switch @vscode scoped registry to msft_consumption feed and explicitly disable auth for it, preventing E401 in CI where npmAuthenticate sets always-auth=true for a different feed. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.npmrc b/.npmrc index 8e6d7620..1afdea40 100644 --- a/.npmrc +++ b/.npmrc @@ -1,5 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ -# Force public npm registry to avoid CI auth (E401) when no token is provided +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ +//pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/:always-auth=false registry=https://registry.npmjs.org/ -# Do not require auth for public installs -always-auth=false +always-auth=false \ No newline at end of file From 26965eb18290a20bb257b1273d3a93493c2f0568 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 12:57:10 -0700 Subject: [PATCH 6/9] Update .npmrc to msft_consumption with always-auth=false Explicitly disable auth for the msft_consumption scoped registry to prevent CI's npmAuthenticate from sending an invalid token to this public feed, fixing E401 during vsce package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 1afdea40..ca369e6a 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ @vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ //pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/:always-auth=false registry=https://registry.npmjs.org/ -always-auth=false \ No newline at end of file +always-auth=false From fe06ec3b2f3b82e26e7f84ad2aece53e645a722d Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Wed, 11 Mar 2026 13:32:19 -0700 Subject: [PATCH 7/9] Revert pipelines to Pylance feed, add no-auth for .npmrc registry Revert AZURE_ARTIFACTS_FEED to Pylance_PublicPackages (same org as pipeline, auth works). Keep .npmrc on public python-environments feed but add per-registry always-auth=false to prevent CI's npmAuthenticate from sending the wrong auth token during vsce package. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 4 ++-- build/azure-devdiv-pipeline.pre-release.yml | 2 +- build/azure-devdiv-pipeline.stable.yml | 2 +- build/azure-pipeline.validation.yml | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.npmrc b/.npmrc index ca369e6a..eac54b78 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,4 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/ -//pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/:always-auth=false +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ +//pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/:always-auth=false registry=https://registry.npmjs.org/ always-auth=false diff --git a/build/azure-devdiv-pipeline.pre-release.yml b/build/azure-devdiv-pipeline.pre-release.yml index 78d82d04..0a70f544 100644 --- a/build/azure-devdiv-pipeline.pre-release.yml +++ b/build/azure-devdiv-pipeline.pre-release.yml @@ -27,7 +27,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' + value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' parameters: - name: publishExtension diff --git a/build/azure-devdiv-pipeline.stable.yml b/build/azure-devdiv-pipeline.stable.yml index c36fc4da..d6799f46 100644 --- a/build/azure-devdiv-pipeline.stable.yml +++ b/build/azure-devdiv-pipeline.stable.yml @@ -24,7 +24,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' + value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' parameters: - name: publishExtension diff --git a/build/azure-pipeline.validation.yml b/build/azure-pipeline.validation.yml index e3a4e5ff..f18090d6 100644 --- a/build/azure-pipeline.validation.yml +++ b/build/azure-pipeline.validation.yml @@ -34,7 +34,7 @@ variables: - name: VsixName value: mypy.vsix - name: AZURE_ARTIFACTS_FEED - value: 'https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry/' + value: 'https://devdiv.pkgs.visualstudio.com/DevDiv/_packaging/Pylance_PublicPackages/npm/registry/' parameters: - name: buildSteps From 3ab4f346a5c711ff65441bb850e1c2cc5294a729 Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Fri, 13 Mar 2026 12:50:51 -0700 Subject: [PATCH 8/9] Switch @vscode registry to msft_consumption, remove validation triggers Update .npmrc to use msft_consumption feed for @vscode scoped packages and remove trigger/PR sections from azure-pipeline.validation.yml. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .npmrc | 6 ++++-- build/azure-pipeline.validation.yml | 19 ------------------- 2 files changed, 4 insertions(+), 21 deletions(-) diff --git a/.npmrc b/.npmrc index eac54b78..e79897d4 100644 --- a/.npmrc +++ b/.npmrc @@ -1,4 +1,6 @@ -@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/ -//pkgs.dev.azure.com/azure-public/vside/_packaging/python-environments/npm/registry/:always-auth=false +# Force public npm registry to avoid CI auth (E401) when no token is provided registry=https://registry.npmjs.org/ +# For python-environments, we need to use the Azure Artifacts registry for @vscode packages +@vscode:registry=https://pkgs.dev.azure.com/azure-public/vside/_packaging/msft_consumption/npm/registry +# Do not require auth for public installs always-auth=false diff --git a/build/azure-pipeline.validation.yml b/build/azure-pipeline.validation.yml index f18090d6..e875a0c4 100644 --- a/build/azure-pipeline.validation.yml +++ b/build/azure-pipeline.validation.yml @@ -1,22 +1,3 @@ -# PR and Push validation pipeline - -trigger: - branches: - include: - - main - - release - - release/* - - release-* - -pr: - branches: - include: - - main - - release - - release/* - - release-* - drafts: false - resources: repositories: - repository: MicroBuildTemplate From a90481a70e3a1ddf62184ed1bc7eec074308210a Mon Sep 17 00:00:00 2001 From: Eduardo Villalpando Mello Date: Fri, 13 Mar 2026 13:22:39 -0700 Subject: [PATCH 9/9] Update validation pipeline triggers to wildcard branches Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- build/azure-pipeline.validation.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/build/azure-pipeline.validation.yml b/build/azure-pipeline.validation.yml index e875a0c4..7bab9a8b 100644 --- a/build/azure-pipeline.validation.yml +++ b/build/azure-pipeline.validation.yml @@ -1,3 +1,14 @@ +trigger: + branches: + include: + - '*' + +pr: + branches: + include: + - '*' + drafts: false + resources: repositories: - repository: MicroBuildTemplate