Skip to content
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

SPMI: Add a public test version of the superpmi-collect pipeline #106960

Merged
merged 10 commits into from
Aug 29, 2024
41 changes: 21 additions & 20 deletions eng/pipelines/common/templates/runtimes/run-test-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -609,28 +609,29 @@ jobs:
displayName: 'Upload artifacts SuperPMI $(CollectionName)-$(CollectionType) collection'
condition: always()

# Add authenticated pip feed
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: public/dotnet-public-pypi
onlyAddExtraIndex: false
condition: always()
- ${{ if eq(variables['System.TeamProject'], 'internal') }}:
# Add authenticated pip feed
- task: PipAuthenticate@1
displayName: 'Pip Authenticate'
inputs:
artifactFeeds: public/dotnet-public-pypi
onlyAddExtraIndex: false
condition: always()

# Ensure the Python azure-storage-blob package is installed before doing the upload.
- script: $(PipScript) install --upgrade pip && $(PipScript) install azure.storage.blob==12.5.0 --force-reinstall && $(PipScript) install azure.identity==1.16.1 --force-reinstall
displayName: Upgrade Pip to latest and install azure-storage-blob and azure-identity Python packages
condition: always()
# Ensure the Python azure-storage-blob package is installed before doing the upload.
- script: $(PipScript) install --upgrade pip && $(PipScript) install azure.storage.blob==12.5.0 --force-reinstall && $(PipScript) install azure.identity==1.16.1 --force-reinstall
displayName: Upgrade Pip to latest and install azure-storage-blob and azure-identity Python packages
condition: always()

- task: AzureCLI@2
displayName: 'Upload SuperPMI $(CollectionName)-$(CollectionType) collection to Azure Storage'
inputs:
azureSubscription: 'superpmi-collect-rw'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
$(PythonScript) $(Build.SourcesDirectory)/src/coreclr/scripts/superpmi.py upload -log_level DEBUG -arch $(archType) -build_type $(buildConfig) -mch_files $(MergedMchFileLocation)$(CollectionName).$(CollectionType).$(MchFileTag).mch -core_root $(Build.SourcesDirectory)/artifacts/bin/coreclr/$(osGroup).x64.$(buildConfigUpper)
condition: always()
- task: AzureCLI@2
displayName: 'Upload SuperPMI $(CollectionName)-$(CollectionType) collection to Azure Storage'
inputs:
azureSubscription: 'superpmi-collect-rw'
scriptType: 'pscore'
scriptLocation: 'inlineScript'
inlineScript: |
$(PythonScript) $(Build.SourcesDirectory)/src/coreclr/scripts/superpmi.py upload -log_level DEBUG -arch $(archType) -build_type $(buildConfig) -mch_files $(MergedMchFileLocation)$(CollectionName).$(CollectionType).$(MchFileTag).mch -core_root $(Build.SourcesDirectory)/artifacts/bin/coreclr/$(osGroup).x64.$(buildConfigUpper)
condition: always()

- task: CopyFiles@2
displayName: Copying superpmi.log of all partitions
Expand Down
Loading
Loading