Repository navigation
Fix the UnGACVSMan parsing on CI + exp insertion pipeline - #12835
Merged
Merged
Conversation
YuliiaKovalova
requested review from
JanProvaznik and
Copilot
and removed request for
Copilot
November 26, 2025 13:38
Contributor
There was a problem hiding this comment.
Pull request overview
This PR addresses two CI issues with VS insertion pipelines:
- Network isolation: Adds
networkIsolationPolicy: Permissive,CFSCleanto both insertion pipelines to fix UnGAC parsing failures caused by network restrictions - Missing variables: Adds PowerShell task to extract package versions (
MSBuild_ExtApisPackageVersionandMicrosoftNETStringToolsPackageVersion) that were lost when package update was disabled, which caused experimental insertions to display incorrectly
However, there is a critical YAML syntax error in the experimental pipeline file that will prevent it from running correctly.
Key Changes
- Added network isolation policy settings to both
vs-insertion.ymlandvs-insertion-experimental.yml - Added PowerShell task in experimental pipeline to extract and set package version variables from artifact file names
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| azure-pipelines/vs-insertion.yml | Adds network isolation policy to fix UnGAC parsing issues |
| azure-pipelines/vs-insertion-experimental.yml | Adds network isolation policy and PowerShell task for package version extraction (contains YAML syntax error) |
Comments suppressed due to low confidence (1)
azure-pipelines/vs-insertion-experimental.yml:170
- This PowerShell task has duplicate
displayNameandinputsproperties. Lines 150-163 define the task's displayName and inputs for extracting package versions, but then lines 164-166 redefine displayName and inputs with what appears to be leftover configuration from a1ES.PublishNuGet@1task that was replaced.
The correct structure should only have one displayName and one inputs block. Based on the similar task in vs-insertion.yml (lines 207-262), this should be a standalone PowerShell task followed by a separate 1ES.PublishNuGet@1 task, not a combination of both.
- task: Powershell@2
name: PwshMungeExternalAPIsPkgVersion
displayName: Munge ExternalAPIs package version
inputs:
targetType: inline
script: |
$folder = "$(Build.ArtifactStagingDirectory)/PackageArtifacts/VS.ExternalAPIs.*.nupkg"
$packageFile = Get-ChildItem -Path $folder -Filter VS.ExternalAPIs.*.nupkg | Select-Object -First 1
$packageVersion = $packageFile.BaseName.TrimStart("VS.ExternalAPIs.MSBuild")
Write-Host "Setting MSBuild_ExtApisPackageVersion to '$packageVersion'"
Write-Host "##vso[task.setvariable variable=MSBuild_ExtApisPackageVersion]$($packageVersion)"
$folder = "$(Build.ArtifactStagingDirectory)/PackageArtifacts/Microsoft.NET.StringTools*.nupkg"
$packageFile = Get-ChildItem -Path $folder -Filter Microsoft.NET.StringTools*.nupkg | Select-Object -First 1
$packageVersion = $packageFile.BaseName.TrimStart("Microsoft.NET.StringTools")
Write-Host "Setting MicrosoftNETStringToolsPackageVersion to '$packageVersion'"
Write-Host "##vso[task.setvariable variable=MicrosoftNETStringToolsPackageVersion]$($packageVersion)"
- task: 1ES.PublishNuGet@1
displayName: 'Push MSBuild CoreXT packages'
inputs:
packageParentPath: '$(Build.ArtifactStagingDirectory)'
packagesToPush: $(MSBuildPackagePattern);$(StringToolsPackagePattern);$(ExternalAPIsPackagePattern)
nuGetFeedType: internal
SimaTian
approved these changes
Nov 26, 2025
YuliiaKovalova
enabled auto-merge (squash)
November 26, 2025 13:46
This was referenced Nov 28, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We have several issues with CI for VS insertion: