|
| 1 | +parameters: |
| 2 | + steps: [] # optional -- any additional steps that need to happen before pulling down the jitutils repo and sending the jitutils to helix (ie building your repo) |
| 3 | + variables: [] # optional -- list of additional variables to send to the template |
| 4 | + jobName: '' # required -- job name |
| 5 | + displayName: '' # optional -- display name for the job. Will use jobName if not passed |
| 6 | + pool: '' # required -- name of the Build pool |
| 7 | + container: '' # required -- name of the container |
| 8 | + buildConfig: '' # required -- build configuration |
| 9 | + archType: '' # required -- targeting CPU architecture |
| 10 | + osGroup: '' # required -- operating system for the job |
| 11 | + osSubgroup: '' # optional -- operating system subgroup |
| 12 | + continueOnError: 'false' # optional -- determines whether to continue the build if the step errors |
| 13 | + dependsOn: '' # optional -- dependencies of the job |
| 14 | + timeoutInMinutes: 120 # optional -- timeout for the job |
| 15 | + enableTelemetry: false # optional -- enable for telemetry |
| 16 | + liveLibrariesBuildConfig: '' # optional -- live-live libraries configuration to use for the run |
| 17 | + helixQueues: '' # required -- Helix queues |
| 18 | + dependOnEvaluatePaths: false |
| 19 | + |
| 20 | +jobs: |
| 21 | +- template: xplat-pipeline-job.yml |
| 22 | + parameters: |
| 23 | + dependsOn: ${{ parameters.dependsOn }} |
| 24 | + buildConfig: ${{ parameters.buildConfig }} |
| 25 | + archType: ${{ parameters.archType }} |
| 26 | + osGroup: ${{ parameters.osGroup }} |
| 27 | + osSubgroup: ${{ parameters.osSubgroup }} |
| 28 | + liveLibrariesBuildConfig: ${{ parameters.liveLibrariesBuildConfig }} |
| 29 | + enableTelemetry: ${{ parameters.enableTelemetry }} |
| 30 | + enablePublishBuildArtifacts: true |
| 31 | + continueOnError: ${{ parameters.continueOnError }} |
| 32 | + dependOnEvaluatePaths: ${{ parameters.dependOnEvaluatePaths }} |
| 33 | + timeoutInMinutes: ${{ parameters.timeoutInMinutes }} |
| 34 | + |
| 35 | + ${{ if ne(parameters.displayName, '') }}: |
| 36 | + displayName: '${{ parameters.displayName }}' |
| 37 | + ${{ if eq(parameters.displayName, '') }}: |
| 38 | + displayName: '${{ parameters.jobName }}' |
| 39 | + |
| 40 | + variables: |
| 41 | + |
| 42 | + - ${{ each variable in parameters.variables }}: |
| 43 | + - ${{ if ne(variable.name, '') }}: |
| 44 | + - name: ${{ variable.name }} |
| 45 | + value: ${{ variable.value }} |
| 46 | + - ${{ if ne(variable.group, '') }}: |
| 47 | + - group: ${{ variable.group }} |
| 48 | + |
| 49 | + - name: PythonScript |
| 50 | + value: 'py -3' |
| 51 | + - name: PipScript |
| 52 | + value: 'py -3 -m pip' |
| 53 | + - name: SpmiCollectionLocation |
| 54 | + value: '$(Build.SourcesDirectory)\artifacts\spmi\' |
| 55 | + - name: SpmiLogsLocation |
| 56 | + value: '$(Build.SourcesDirectory)\artifacts\spmi_logs\' |
| 57 | + - name: SpmiAsmdiffsLocation |
| 58 | + value: '$(Build.SourcesDirectory)\artifacts\spmi_asmdiffs\' |
| 59 | + - name: HelixResultLocation |
| 60 | + value: '$(Build.SourcesDirectory)\artifacts\helixresults\' |
| 61 | + |
| 62 | + workspace: |
| 63 | + clean: all |
| 64 | + pool: |
| 65 | + ${{ parameters.pool }} |
| 66 | + container: ${{ parameters.container }} |
| 67 | + steps: |
| 68 | + - ${{ parameters.steps }} |
| 69 | + |
| 70 | + - script: | |
| 71 | + mkdir $(SpmiCollectionLocation) |
| 72 | + mkdir $(SpmiLogsLocation) |
| 73 | + mkdir $(SpmiAsmdiffsLocation) |
| 74 | + displayName: Create directories |
| 75 | +
|
| 76 | + - script: $(PythonScript) $(Build.SourcesDirectory)/src/coreclr/scripts/superpmi_asmdiffs_setup.py -source_directory $(Build.SourcesDirectory) -product_directory $(buildProductRootFolderPath) -arch $(archType) |
| 77 | + displayName: ${{ format('SuperPMI asmdiffs setup ({0})', parameters.archType) }} |
| 78 | + |
| 79 | + # Run superpmi asmdiffs in helix |
| 80 | + - template: /eng/pipelines/common/templates/runtimes/send-to-helix-step.yml |
| 81 | + parameters: |
| 82 | + displayName: 'Send job to Helix' |
| 83 | + helixBuild: $(Build.BuildNumber) |
| 84 | + helixSource: $(_HelixSource) |
| 85 | + helixType: 'build/tests/' |
| 86 | + helixQueues: ${{ join(',', parameters.helixQueues) }} |
| 87 | + creator: dotnet-bot |
| 88 | + WorkItemTimeout: 2:00 # 2 hours |
| 89 | + WorkItemDirectory: '$(WorkItemDirectory)' |
| 90 | + CorrelationPayloadDirectory: '$(CorrelationPayloadDirectory)' |
| 91 | + helixProjectArguments: '$(Build.SourcesDirectory)/src/coreclr/scripts/superpmi-asmdiffs.proj' |
| 92 | + BuildConfig: ${{ parameters.buildConfig }} |
| 93 | + osGroup: ${{ parameters.osGroup }} |
| 94 | + archType: ${{ parameters.archType }} |
| 95 | + shouldContinueOnError: true # Run the future step i.e. upload superpmi logs |
| 96 | + |
| 97 | + # Always upload the available logs for diagnostics |
| 98 | + - task: CopyFiles@2 |
| 99 | + displayName: Copying superpmi.log of all partitions |
| 100 | + inputs: |
| 101 | + sourceFolder: '$(HelixResultLocation)' |
| 102 | + contents: '**/superpmi_*.log' |
| 103 | + targetFolder: '$(SpmiLogsLocation)' |
| 104 | + condition: always() |
| 105 | + |
| 106 | + - task: CopyFiles@2 |
| 107 | + displayName: Copying superpmi.md of all partitions |
| 108 | + inputs: |
| 109 | + sourceFolder: '$(HelixResultLocation)' |
| 110 | + contents: '**/superpmi_*.md' |
| 111 | + targetFolder: '$(SpmiAsmdiffsLocation)' |
| 112 | + condition: always() |
| 113 | + |
| 114 | + - script: $(PythonScript) $(Build.SourcesDirectory)/src/coreclr/scripts/superpmi_asmdiffs_summarize.py -diff_summary_dir $(SpmiAsmdiffsLocation) -arch $(archType) |
| 115 | + displayName: ${{ format('Summarize ({0})', parameters.archType) }} |
| 116 | + condition: always() |
| 117 | + |
| 118 | + - task: PublishPipelineArtifact@1 |
| 119 | + displayName: Publish SuperPMI logs |
| 120 | + inputs: |
| 121 | + targetPath: $(SpmiLogsLocation) |
| 122 | + artifactName: 'SuperPMI_Logs_$(archType)_$(buildConfig)' |
| 123 | + condition: always() |
| 124 | + |
| 125 | + - task: PublishPipelineArtifact@1 |
| 126 | + displayName: Publish SuperPMI asmdiffs files |
| 127 | + inputs: |
| 128 | + targetPath: $(SpmiAsmdiffsLocation) |
| 129 | + artifactName: 'SuperPMI_Asmdiffs_$(archType)_$(buildConfig)' |
| 130 | + condition: always() |
| 131 | + |
| 132 | + - task: PublishPipelineArtifact@1 |
| 133 | + displayName: Publish SuperPMI build logs |
| 134 | + inputs: |
| 135 | + targetPath: $(Build.SourcesDirectory)/artifacts/log |
| 136 | + artifactName: 'SuperPMI_BuildLogs_$(archType)_$(buildConfig)' |
| 137 | + condition: always() |
0 commit comments