-
Notifications
You must be signed in to change notification settings - Fork 8
CHORE: Publish Symbols Pipeline #105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds a new pipeline task to publish .pdb
symbol files as build artifacts under the name mssql-python-symbols
.
- Introduces a
PublishBuildArtifacts@1
step conditioned on success or failure - Points
PathtoPublish
at$(Build.ArtifactStagingDirectory)\all-pdbs
- Uses
mssql-python-symbols
as the artifact name
Comments suppressed due to low confidence (2)
eng/pipelines/build-whl-pipeline.yml:165
- Use forward slashes for
PathtoPublish
to ensure cross-platform compatibility (e.g.,$(Build.ArtifactStagingDirectory)/all-pdbs
).
PathtoPublish: '$(Build.ArtifactStagingDirectory)\all-pdbs'
eng/pipelines/build-whl-pipeline.yml:161
- [nitpick] Consider adding a preceding step to create or clean the
all-pdbs
directory so that you don’t publish stale or missing artifacts.
# Publish the collected .pdb file(s) as build artifacts
SymbolsProduct: mssql-python | ||
# Have kept the default version as the build ID, which is unique for each build | ||
# This will be used to identify the symbols in the symbol server | ||
SymbolsVersion: $(Build.BuildId) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need to change ID for SymbolsVersion
- perhaps the driver release version?
env: | ||
SymbolServer: '$(SymbolServer)' | ||
SymbolTokenUri: '$(SymbolTokenUri)' | ||
requestName: '$(Build.DefinitionName)-$(Build.BuildId)' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
kept this since requestName needs to be unique for each API call. Might need to change this?
- powershell: 'Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName;]mssql-python"' | ||
displayName: 'Update Symbol.AccountName with mssql-python' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- powershell: 'Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName;]mssql-python"' | |
displayName: 'Update Symbol.AccountName with mssql-python' | |
- powershell: 'Write-Host "##vso[task.setvariable variable=ArtifactServices.Symbol.AccountName;]SqlClientDrivers"' | |
displayName: 'Update Symbol.AccountName with SqlClientDrivers' |
displayName: 'Update Symbol.AccountName with mssql-python' | ||
|
||
- task: PublishSymbols@2 | ||
displayName: 'Upload symbols to mssql-python org' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
displayName: 'Upload symbols to mssql-python org' | |
displayName: 'Upload symbols to SqlClientDrivers org' |
ServiceEndpointUrl: 'https://api.esrp.microsoft.com' | ||
MainPublisher: 'ESRPRELPACMAN' | ||
DomainTenantId: '$(DomainTenantId)' | ||
azureSubscription: 'mssql-python-service' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
azureSubscription: 'mssql-python-service' | |
azureSubscription: 'SymbolsPublishing-msodbcsql-mssql-python' |
ADO Work Item Reference
Summary
This pull request includes a small addition to the build pipeline configuration in
eng/pipelines/build-whl-pipeline.yml
. The change adds a new task to publish.pdb
files as build artifacts under the namemssql-python-symbols
.