Skip to content

Commit

Permalink
SPMI: Add a public test version of the superpmi-collect pipeline (#10…
Browse files Browse the repository at this point in the history
…6960)

This one does all the collection steps except it does not upload the collection.
Helpful when testing CI changes that impact superpmi-collect and to give
contributors access to the logs as well.
  • Loading branch information
jakobbotsch committed Aug 29, 2024
1 parent 1b136d5 commit d756692
Show file tree
Hide file tree
Showing 7 changed files with 476 additions and 77 deletions.
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

0 comments on commit d756692

Please sign in to comment.