Skip to content

Fix the UnGACVSMan parsing on CI + exp insertion pipeline - #12835

Merged
YuliiaKovalova merged 4 commits into
mainfrom
dev/ykovalova/more_pipeline_fixes
Nov 26, 2025
Merged

YuliiaKovalova merged 4 commits into
mainfrom
dev/ykovalova/more_pipeline_fixes

Conversation

@YuliiaKovalova

@YuliiaKovalova YuliiaKovalova commented Nov 26, 2025 •

Copy link
Copy Markdown
Member

We have several issues with CI for VS insertion:

  1. Issue with parsing content of UnGAC - due to network isolation
  2. After disabling package update https://github.com/dotnet/msbuild/pull/12663/files , the important variable was missed and now exp insertions look like this
{EB59EC7B-C431-4CE6-8E79-55AF026D9273}

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

This PR addresses two CI issues with VS insertion pipelines:

  1. Network isolation: Adds networkIsolationPolicy: Permissive,CFSClean to both insertion pipelines to fix UnGAC parsing failures caused by network restrictions
  2. Missing variables: Adds PowerShell task to extract package versions (MSBuild_ExtApisPackageVersion and MicrosoftNETStringToolsPackageVersion) 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.yml and vs-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 displayName and inputs properties. 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 a 1ES.PublishNuGet@1 task 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

@YuliiaKovalova
YuliiaKovalova enabled auto-merge (squash) November 26, 2025 13:46
@YuliiaKovalova YuliiaKovalova changed the title Fix the UnGACVSMan parsing on CI + exp insertion pr Fix the UnGACVSMan parsing on CI + exp insertion pipeline Nov 26, 2025
@YuliiaKovalova
YuliiaKovalova merged commit 3ba1d41 into main Nov 26, 2025
@YuliiaKovalova
YuliiaKovalova deleted the dev/ykovalova/more_pipeline_fixes branch November 26, 2025 15:07
@YuliiaKovalova YuliiaKovalova self-assigned this Dec 2, 2025
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.

3 participants