Skip to content

[6.1.5] Fix symbols publishing variables for release/6.1 pipelines#4231

Closed
paulmedynski wants to merge 5 commits intorelease/6.1from
dev/paul/release/6.1/symbols-fix
Closed

[6.1.5] Fix symbols publishing variables for release/6.1 pipelines#4231
paulmedynski wants to merge 5 commits intorelease/6.1from
dev/paul/release/6.1/symbols-fix

Conversation

@paulmedynski
Copy link
Copy Markdown
Contributor

Summary

This updates the release/6.1 pipeline variable wiring so the MDS symbols publishing flow uses the same symbols publishing variables as the AKV pipeline.

Changes

  • add the akv-variables-v2 variable group to the shared pipeline common variables
  • add SymbolServer and SymbolTokenUri aliases backed by the AKV symbols publishing variables
  • remove the now-obsolete mds-variables.yml template and its references

Validation

  • verified all mds-variables.yml references were removed
  • verified the branch contains only the two intended pipeline commits

Notes

  • tests were not run; this change only updates Azure DevOps pipeline YAML and variable wiring

- Add akv-variables-v2 group to common-variables.yml to provide all symbols publishing variables
- Add alias variables (SymbolServer, SymbolTokenUri) to map akv-variables-v2 names
- Remove redundant Release Variables group reference from mds-variables.yml

This ensures the main MDS pipeline has access to all symbols variables (SymbolsAzureSubscription, SymbolsPublishProjectName, SymbolsPublishServer, SymbolsPublishTokenUri, SymbolsUploadAccount) similar to the AKV pipeline.

Related to build failure 148990 where symbols publishing was missing variable definitions.
- Remove mds-variables.yml template reference from build-variables.yml
- Remove mds-variables.yml template reference from mds-validation-variables.yml
- Delete mds-variables.yml file

The file is no longer needed since its content (symbols publishing variables)
is now consolidated in common-variables.yml via the akv-variables-v2 group.
Copilot AI review requested due to automatic review settings April 23, 2026 10:37
@github-project-automation github-project-automation Bot moved this to To triage in SqlClient Board Apr 23, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 updates the release/6.1 “libraries” pipeline variable wiring so the MDS symbols publishing flow uses the same ADO variable group inputs as the AKV pipeline, and removes the now-obsolete MDS-specific variable template.

Changes:

  • Remove the mds-variables.yml template usage (and delete the template file).
  • Import akv-variables-v2 into eng/pipelines/libraries/common-variables.yml.
  • Add SymbolServer / SymbolTokenUri aliases that map to SymbolsPublishServer / SymbolsPublishTokenUri for compatibility with existing symbols publishing steps.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
eng/pipelines/libraries/mds-variables.yml Removed obsolete variable template (Release Variables group indirection).
eng/pipelines/libraries/mds-validation-variables.yml Drops reference to removed mds-variables.yml; relies on common-variables.yml.
eng/pipelines/libraries/common-variables.yml Adds akv-variables-v2 variable group + defines SymbolServer/SymbolTokenUri aliases.
eng/pipelines/libraries/build-variables.yml Drops reference to removed mds-variables.yml; relies on common-variables.yml.

@paulmedynski paulmedynski changed the title Fix symbols publishing variables for release/6.1 pipelines [6.1.5] Fix symbols publishing variables for release/6.1 pipelines Apr 23, 2026
@paulmedynski paulmedynski added the Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems. label Apr 23, 2026
@paulmedynski paulmedynski moved this from To triage to In progress in SqlClient Board Apr 23, 2026
@paulmedynski paulmedynski added this to the 6.1.5 milestone Apr 23, 2026
@paulmedynski paulmedynski marked this pull request as ready for review April 23, 2026 10:57
@paulmedynski paulmedynski requested a review from a team as a code owner April 23, 2026 10:57
Copilot AI review requested due to automatic review settings April 23, 2026 13:59
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Comment on lines +109 to 111
$azureSubscription = "Symbols publishing Workload Identity federation service-ADO.Net"
$publishToInternalServer = "${{parameters.publishToServers.internal }}".ToLower()
$publishToPublicServer = "${{parameters.publishToServers.public }}".ToLower()
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the AzureCLI inline script, $azureSubscription is assigned but never used (the task already sets azureSubscription via inputs). This adds noise and can be misleading when troubleshooting—consider removing the unused variable, or use it to validate/log the configured subscription consistently.

Copilot uses AI. Check for mistakes.
Comment on lines +121 to +122
$requestNameRegistrationBody = "{'requestName': '$requestName'}"
$publishSymbolsBody = "{'publishToInternalServer': $publishToInternalServer, 'publishToPublicServer': $publishToPublicServer}"
Copy link

Copilot AI Apr 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$requestNameRegistrationBody and $publishSymbolsBody are built using single quotes and string interpolation. Single quotes are not valid JSON and this approach won’t escape special characters in $requestName, which can cause hard-to-diagnose REST failures. Consider constructing a PowerShell hashtable/object and using ConvertTo-Json for the request bodies.

Copilot uses AI. Check for mistakes.
@paulmedynski
Copy link
Copy Markdown
Contributor Author

I proved that the old pipeline in ADO.Net, using these changes, just couldn't communicate with the symbols publishing server. Creating a new ADO.Net pipeline, and using these same changes, works fine.

No need for this work though. #4230 adopts our newer OneBranch style and avoids a bunch of the old baggage here.

@github-project-automation github-project-automation Bot moved this from In progress to Done in SqlClient Board Apr 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area\Engineering Use this for issues that are targeted for changes in the 'eng' folder or build systems.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants