Skip to content

[release/dev17.11] Migrate VS insertion authentication to WIF - #13222

Merged
JoeRobich merged 3 commits into
release/dev17.11from
backport/dev17.11-insertion-wif
Aug 18, 2026
Merged

JoeRobich merged 3 commits into
release/dev17.11from
backport/dev17.11-insertion-wif

Conversation

@JoeRobich

@JoeRobich JoeRobich commented Aug 15, 2026 •

Copy link
Copy Markdown
Member

Backports the VS insertion authentication changes from #13010 and #13201.

Build 3031662 failed during YAML validation because DotNet-Roslyn-Insertion-Variables no longer exists. That group supplied expired PAT credentials.

This change:

  • migrates VS insertion from RIT/PAT authentication to roslyn-tools with the DncEng Insertion: Roslyn and Razor WIF service connection
  • explicitly acquires the Azure DevOps token from the WIF-authenticated Azure CLI context
  • reuses that token for both dnceng and devdiv
  • removes only the obsolete DotNet-Roslyn-Insertion-Variables dependency
  • preserves the monthly scheduled build
  • preserves the manually triggered VS insertion stage

Validation: YAML syntax parsed successfully, git diff --check passed, and the release-only schedule and trigger: manual insertion configuration remain present.

Test Run

Replace the expired PAT-based VS insertion flow with roslyn-tools and the existing WIF service connection. Preserve the release branch's scheduled official build and manually triggered insertion stage.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: cba3eeb8-8fd8-4a68-8c93-688679824fea
@JoeRobich
JoeRobich requested a review from a team August 15, 2026 23:07
@JoeRobich
JoeRobich requested a review from a team as a code owner August 15, 2026 23:07
Backport the intent of #13157 so runtime reference assembly resolution uses the approved repository package sources instead of nuget.org.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: ec59e386-5d01-4ea8-9edd-050525aeed23
The reference assembly configuration uses the helper available on newer release branches to locate NuGet.config.

Co-authored-by: Copilot <[email protected]>

Copilot-Session: ec59e386-5d01-4ea8-9edd-050525aeed23
@JoeRobich

Copy link
Copy Markdown
Member Author

Updated this PR with the reference-assembly source fix from #13224, adapted for release/dev17.11 by adding the TestProject.GetRepoRoot() helper already present on newer release branches. This addresses the two Linux failures in official build 3048999, which were caused by runtime reference resolution attempting to access blocked api.nuget.org.

Validated both affected Release test projects locally:

  • Razor.Diagnostics.Analyzers.Test
  • Microsoft.AspNetCore.Razor.LanguageServer.Test

@JoeRobich
JoeRobich merged commit e9ef90f into release/dev17.11 Aug 18, 2026
11 checks passed
@JoeRobich
JoeRobich deleted the backport/dev17.11-insertion-wif branch August 18, 2026 11:48
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.

2 participants